You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building HTML forms with validation is tedious and error prone. Lion has some good fundamentals with form field validations, but it's still very complicated to build forms.
By using a JSON schema, forms can be dynamically generated with validation. It is a very elegant solution for a complex problem. Additionally the JSON schema can be used for both frontend and backend validation of the data.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Building HTML forms with validation is tedious and error prone. Lion has some good fundamentals with form field validations, but it's still very complicated to build forms.
By using a JSON schema, forms can be dynamically generated with validation. It is a very elegant solution for a complex problem. Additionally the JSON schema can be used for both frontend and backend validation of the data.
Please see this example of how this can work:
https://www.npmjs.com/package/web-component-schema-form
https://edclements.uk/web-component-schema-form/examples/bootstrap.html
If Lion could add an equivalent component to build a form from a JSON Schema with validation, that would be a great feature!
Beta Was this translation helpful? Give feedback.
All reactions