You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have many configuration files, and then I generate Json chemas for them, it's more convenient when you have autocompletion in the editor, and it also allow to validate incoming files using packages like JsonSchema (paid) or NJsonSchema (free)
At the moment before deserialization, I replace descriptor like this content.Replace("- type: !", "- !");
Here is a small JSON schema from my project, it uses the constant field to describe different types
In short, is it correct that you want to define the schema definition separately from the data, e.g. in a JSON Schema?
If so, there are currently no plans to support this in VYaml itself.
VYaml is a library that provides serialisation to C#, in which case it would be good to be able to use C# type definitions as schemas.
Also, I personally think that Json Schema itself is prehistoric. It is a schema definition using only what is accepted as a web standard. Alternatives to json schema include Google's cue and Apple's pkl.
I have many configuration files, and then I generate Json chemas for them, it's more convenient when you have autocompletion in the editor, and it also allow to validate incoming files using packages like JsonSchema (paid) or NJsonSchema (free)
At the moment before deserialization, I replace descriptor like this
content.Replace("- type: !", "- !");
Here is a small JSON schema from my project, it uses the constant field to describe different types
and this is my yaml file
The text was updated successfully, but these errors were encountered: