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

Document schema API #68

Open
nbgl opened this issue Mar 12, 2018 · 3 comments
Open

Document schema API #68

nbgl opened this issue Mar 12, 2018 · 3 comments
Assignees

Comments

@nbgl
Copy link
Contributor

nbgl commented Mar 12, 2018

Documentation required for:

  • Making a JSON file with the schema. Consider a format similar to the OpenAPI documentation.
  • Making schema within code.

Aha! Link: https://csiro.aha.io/features/ANONLINK-47

@nbgl nbgl self-assigned this Mar 12, 2018
@wilko77
Copy link
Collaborator

wilko77 commented Nov 8, 2019

One aspect is that the it would be nice to have the schema definition to be the source for the docs. Similar to openAPI which can be nicely visualized with swagger UI https://swagger.io/tools/swagger-ui/.
This would have the advantage that the doc always represent the current schema, and the extra work of reproducing the schema structure in the docs would be obsolete.
(Maybe this sphinx extension would work: https://github.com/lnoor/sphinx-jsonschema)

Another thing I can think of is that the documentation around programmatic schema creation (using the API) is somewhat neglected. Tasks for this would include assessing what we've got. Is it enough to help someone to create a valid schema? Should we provide more guidance?

In general, the current linkage schema documentation does not contain a lot of information to make informed choices. (think of strategies, comparisons, more exotic features like XOR-folding)

@wilko77
Copy link
Collaborator

wilko77 commented Nov 8, 2019

sphinx-jsonschema extension doesn't work. It does not support all json schema features, i.e., definitions, which are integral to our schema.

@wilko77
Copy link
Collaborator

wilko77 commented Nov 8, 2019

I've also tried https://github.com/adobe/jsonschema2md. Again, not usable, as it cannot read definitions properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants