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
Using the CLI to get a schema file from a json file.
Input Format: JSON
Output Language: Schema
Description
I want to make it easy for my team to document their services' message structure with json schema. I am hoping they can use the quicktype cli to do this, given an example message as a json file. However, I want use to use the 2020-12 draft of json schema. We have hundreds of services that each send a few different kinds of messages, so it's quite a bit of work to do manually.
I realize they will need to edit the resulting file anyway, to tweak formats and required fields and such, but I would prefer if they didn't have to remember to update the top-level $schema as well.
Context (Input, Language)
Using the CLI to get a schema file from a json file.
Input Format: JSON
Output Language: Schema
Description
I want to make it easy for my team to document their services' message structure with json schema. I am hoping they can use the quicktype cli to do this, given an example message as a json file. However, I want use to use the 2020-12 draft of json schema. We have hundreds of services that each send a few different kinds of messages, so it's quite a bit of work to do manually.
I realize they will need to edit the resulting file anyway, to tweak formats and required fields and such, but I would prefer if they didn't have to remember to update the top-level
$schema
as well.Current Behaviour / Output
Proposed Behaviour / Output
... or something like that for the option. Maybe it would be better to provide the full URL. I don't know what the possibilities are.
Solution
???
Alternatives
Relying on humans to remember to change it. Humans are not always good at such things.
The text was updated successfully, but these errors were encountered: