Use JSON Schema to define JSON format #51012
Labels
Code: Infrastructure / Style / Static Analysis
Code internal infrastructure and style
<Enhancement / Feature>
New features, or enhancements on existing
[JSON]
Changes (can be) made in JSON
stale
Closed for lack of activity, but still valid.
<Suggestion / Discussion>
Talk it out before implementing
Is your feature request related to a problem? Please describe.
We don't have a portable (that can port to different language) description about what JSON format we accept, it is mostly embedded in the C++ code. And doc about JSON is sometimes incomplete.
And even use C++ to write 3rd party tool, we can't directly use a C++ SDK to speed up the JSON loading part development. Which is the most time-consuming part of tools about CDDA.
Describe the solution you'd like
Use JSON Schema to define the JSON that CDDA accepts, other 3rd party tools can generate code from JSON schema using https://transform.tools/json-schema-to-protobuf this kind of tools.
Describe alternatives you've considered
Or maintain SDK for different languages, but this can also be autogenerated if we have JSON Schema.
Additional context
I'm creating a map editor for CDDA, but adapting its JSON is a hard job, and later maintain it to keep update with experimental is human resource consuming.
The text was updated successfully, but these errors were encountered: