ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Task]: Improve input stream parser that creates `anydata` values

Open Nadeeshan96 opened this issue 1 year ago • 0 comments

Description

This issues contains to-do items for the feature introduced by https://github.com/ballerina-platform/ballerina-lang/issues/41824.

  • [ ] #42384
  • [x] Improve test coverage of the stream parser - to do this we can generate tests using available cloneWithType and fromJsonWithType tests. (i.e. generate strings from values and print the target types)
  • [x] Remove JsonParser by adding modes to the StreamParser too. (There are modes in Json parser which says to creates decimals and floats in the relevant places)
  • [x] Standardize and edit error messages thrown by stream parser. - We can use stream parser in standard libraries and see what error messages they expect and edit error messages so that we have minimum backward incompatibilities.
  • [x] Refactor Stream parser to remove duplicate code
  • [x] Add validations for subtypes

Describe your task(s)

No response

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

Nadeeshan96 avatar Feb 06 '24 06:02 Nadeeshan96