-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It is not possible to distinguish primitive types #50
Comments
In JSON, unquoted values have their semantics, |
So it would be nice to have a flag how a scalar node was represented |
I's really interesting problem. What do you think about a recommendation to use a core scheme by default? https://yaml.org/spec/1.2.2/#103-core-schema
All the parsers that I've used in other languages use the core schema, I think. |
You are right. I agree we should use the Core schema. |
I parse yaml to
YamlElement
and I need a way to differ numbers from strings:In
kotlinx.serialization
there is anisString
property which can be taken into account.Either there could be special wrappers to all supported data types.
The text was updated successfully, but these errors were encountered: