logoalt Hacker News

css_apologistyesterday at 10:15 PM1 replyview on HN

those describe server APIs

how would it relate to ui?


Replies

altern8yesterday at 10:24 PM

OpenAPI is a superset of JSON Schema. You can look at properties in JSON Schema and turn that into UIs.

For instance, strings would get a text box, enums would get a dropdown, etc., with validation and everything.

Check this out as an example: https://prismatic.io/docs/jsonforms/playground/