by throwaway_bad · 7y ago · 0 comments
I think I have heard of something similar but it didn’t seem to have caught on in any major web frameworks that I know of (strongly typed json API server which generates runtime validators on frontend and backend). Even then most people want control over the presentation of the form and wouldn’t want to create fields from the schema (e.g. a number type is sometimes a slider and sometimes a drop down)
If I have a form anything more complex than a login page, then I usually use some kind of generator based on a schema.