generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Make it easier to validate inputs for FastAPI / Smithy APIs in client side forms.
Motivation
Backend validation is native to fastapi, but if you want to implement any form validation in the frontend you need to redefine your schemas or implement custom business logic.
Suggested Implementation
Generate a zod schema from openapi? While a form might not always map directly to an api input, generating zod for all the types in the api means either the whole structure or specific sub-structures could be validated against.
Zod can then be used for client side validation - could easily be integrated with something like tanstack form eg https://ui.shadcn.com/docs/forms/tanstack-form
Contribute to feature
- I'd be willing to implement this feature
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request