Hacker News new | ask | show | jobs
by css_apologist 146 days ago
those describe server APIs

how would it relate to ui?

1 comments

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/