Support JSON Schema as Output
It would be cool if we could support Json Schema as a language output.
I would be open to implementing this. However, I would like to know if this feature would be allowed in this project.
I like this idea. However, since the JSON schema may vary based on language-specific annotations, I think it would be better to classify this generation method as an intermediate representation of sorts. That is, it would be generated alongside one or more specific languages, instead of being a language in and of itself.
This would be really cool as an intermediate representation. It would immediately extend the capabilities of typeshare to all languages that JSON Schema has generators.
For the time being this isn't a high priority at 1Password but we would welcome community contribution.
Currently typeshare puts all definitions in one file.
Json Schema requires one type definition per file.
My suggestion for a fix would be to add a require_file_per_type function to the Language type. and if it is true. It will treat ARG_OUTPUT_FILE as a direction. And then create a file per type.