-
Notifications
You must be signed in to change notification settings - Fork 353
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
Investigate JSON Schema -> html/md generator #573
Comments
@pyramation has done a lot of relevant work in https://github.com/CosmWasm/ts-codegen @uint if you have a clear ask / requirement, it would probably be best to talk with Dan and see if he could add another output mode to ts-codegen (it has like 5 formats, seems easy enough to add another if it is well spec'ed) |
@ethanfrey Thanks, I'll take a look. Good idea to start tackling this while we're waiting for a |
interesting, not to tangent too far, but I've also been thinking about generating docs/examples for usage of the ts-codegen. I've been building a few packages and would be nice to eventually have the entire API documented with even some generated JS examples. I can see two types of docs for two different use cases, but related in this docgen sense:
|
Yes, this issue is about (1). We definitely need better docs on (2) "zero to hero" for ts-codegen usage. Let's collaborate on that between Confio and Cosmology. I'd be happy to include this in our academy and official docs. |
I'm not sure if (1) belongs in |
I haven't tested, but found these for research: |
Just not to forget: one thing that came up when we talked about it before was providing examples of valid JSON messages with realistic data (as in, not just a random integer, but an integer that would make sense for the particular contract/message). |
|
This probably doesn't belong to this repo. |
It would be nice to auto-generate a static web page to show a contract's API.
If we build this in the CI and commit it, we could also easily view diffs between versions of a contract.
Let's first investigate what tools there are that can auto-generate sites from JSON Schema and compare them. Then see what other annotations we can add to our schemas to help with the generation.
The text was updated successfully, but these errors were encountered: