-
Notifications
You must be signed in to change notification settings - Fork 45
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
Auto-generate documentation from schemas #139
Comments
That would lovely! Any concrete examples? |
I don't have examples, I'll see whether I can find some. A first good step might be to present all schemas in a more readable format (a simple table), so people who're not technical can understand what the fields are. An extension might be to allow people to annotate the schema or particular fields (e.g. what is the field supposed to capture?). |
Maybe a way to generate an example from a JSON schema? e.g. {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
} would generate {
"name": "abc"
} It may be harder to get this working for more complex schemas... Also, a single example can't tell you everything about the schema. For example, it can't tell you which fields are optional. |
This is a very interesting idea worth do discover. I don't think it's worth to generate an instance out of Schema because 1) most of Schemas are generated with Schema Guru, so we have real instances; 2) it is really complicated task, I have a code which generates JSON out of Schema, but most of them contains non-sense values. Idea with tables is nice. We're flattening Schemas in One other good option I see now is docson, not very shiny UI, but it can be improved. Also I see an arising idea of manual documentation. JSON Schema provides |
docson is a great find! |
Docson looks good. Longer term, it might indeed make sense to use |
This has been on ice for the past 4 years. Has the feature been abandoned? Is there any reason to expect any traction on the subject any time soon? |
@dashirov-fl we used this tool and added our schemas to a md website generator: https://github.com/adobe/jsonschema2md |
A common request: auto-generate documentation from the schemas, because JSON schemas are hard to read and people don't document them.
The text was updated successfully, but these errors were encountered: