soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

soroban-cli: Document JSON schema

Open janewang opened this issue 1 year ago • 4 comments

For CLI documentation, please provide a detailed explanation documenting JSON schema and how that relates to the CLI

Two formats of JSON [ ] Canonical XDR JSON (rs-stellar-xdr) [ ] Contract invocation JSON - more compact JSON (take through the XDR library to enforce type check / conversion )

janewang avatar Jan 26 '24 17:01 janewang

Once we have implemented the generation of json schema from the rust xdr libs in:

  • https://github.com/stellar/rs-stellar-xdr/issues/348

What's the plan for how to use the json schema to document the format? Is the goal to simply point people at the json schema json file(s) or to use it to generate some docs for the soroban/stellar docs?

leighmcculloch avatar Mar 08 '24 02:03 leighmcculloch

We discussed a couple of different places to enable a JSON schema>

  • Document this JSON schema is helpful to developer on the documentation
  • We could also think about places in Lab where we allow the users to optional enable JSON as the format
  • There are some thinking on RPC to enable JSON to be requested on the fly

janewang avatar Mar 11 '24 16:03 janewang

The JSON schema requires a documentation.

janewang avatar Mar 12 '24 20:03 janewang

JSON requires more comments. Generated docs will most likely not have comments available.

[ ] Generate docs / could try to generate us markdown and migrate to dev docs [ ] Add comments to generated docs [ ] Surface generated docs in dev docs

janewang avatar Mar 26 '24 20:03 janewang