Skip to content
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

Feature request: Generate documentation from schema #181

Open
4 tasks
l0b0 opened this issue Nov 23, 2021 · 0 comments
Open
4 tasks

Feature request: Generate documentation from schema #181

l0b0 opened this issue Nov 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@l0b0
Copy link
Contributor

l0b0 commented Nov 23, 2021

Is your feature request related to a problem? Please describe.

Each extension defines properties which are documented in the closest readme file. This is useful when getting a high-level understanding of the schema, for example to evaluate whether it's suitable for a particular use case. It's less useful when trying to understand the implementation of the schema itself. It would be good if it were possible to understand the schema without having to repeatedly cross-reference the readme file. At the same time it would be good if the documentation in the readme file and the schema were not duplicated, which would add to the maintenance burden and could easily be missed when implementing a change, resulting in a documentation bug. Finally, it would be good if the documentation was close to the schema, so that any mismatch between the documentation and schema were easy to spot.

Describe the solution you'd like

One way to solve this would be to move the documentation which is currently in the readme files into the relevant places in the schemas, and to generate the readme files from those schemas.

Describe alternatives you've considered

  • Do nothing, leaving the schemas to not be self-documenting. This is not ideal for the reasons given above.
  • Use a file format different from both JSON Schema and Markdown to generate both. I'm not aware of any simple solutions to this, and a custom one would probably be more maintenance than it's worth.
  • Build our own tool to generate readme files from schemas. Ditto.
  • Use a third-party tool to generate readme files from schemas. Several such tools exist:

Additional context

@l0b0 l0b0 added the enhancement New feature or request label Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant