Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuff to do to enhance field info generation for forms #72

Open
jfet97 opened this issue Apr 1, 2024 · 1 comment
Open

Stuff to do to enhance field info generation for forms #72

jfet97 opened this issue Apr 1, 2024 · 1 comment

Comments

@jfet97
Copy link
Collaborator

jfet97 commented Apr 1, 2024

  1. support for S.nullable(X) or S.optional(X) where X is not a primitive, but a struct or a class.
  2. support arrays and tuples
  3. find an alternative to Unbranded
@patroza
Copy link
Member

patroza commented May 4, 2024

@jfet97 some more ideas;

  • explore Schema's ArrayFormatter for detailed errors/simpler parsing. right now we use the jsonschema properties, and then fallback to a decode call, and then parse the string tree
  • support filters (for classes it's upcoming in schema-next), e.g email/confirmEmail, password/confirmPassword relations can be modelled with filters, so that we don't have to manually add validation for that in the forms, but it is just picked up from the schema; https://discord.com/channels/795981131316985866/1235145167871152138/1235217536371523594

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants