flanksource / flanksource-ui

https://flanksource-ui.vercel.app
Other
10 stars 23 forks source link

Spec Validation using the JSON Schemas and Yup #1049

Open mainawycliffe opened 1 year ago

mainawycliffe commented 1 year ago

Use the following library to convert JSON schemas to Yup schemas that we can use to validate schemas entered https://www.npmjs.com/package/json-schema-yup-transformer https://formik.org/docs/guides/validation

moshloop commented 1 year ago

This applies to all the settings pages - The schemas are available @ /schems/{schema_name} - and are served from https://github.com/flanksource/duty/tree/main/schema/openapi

gitstart-app[bot] commented 1 year ago

Here is the GitStart Ticket for this issue: https://clients.gitstart.com/flanksource/1/tickets/FLNK-1049

gitstart-flanksource commented 1 year ago

Hi @moshloop. As part of the implementation of this task, we have downloaded each of the converted schemas to the /schema/{schema_name}.json directory. We would like to verify if this approach is acceptable.