-
Notifications
You must be signed in to change notification settings - Fork 6
Open
0 / 10 of 1 issue completedOpen
0 / 10 of 1 issue completed
Copy link
Labels
featureNew feature or requestNew feature or requesttriageNew issue which needs reviewed by a maintainerNew issue which needs reviewed by a maintainer
Description
Describe the problem and the solution you'd like
This is related to #415 . Zod is pretty standard for data validation for forms and for validating data from external APIs. Using zod to create schemas and using z.infer to create types from those is a nice pattern to use for data handling and complements the fetch handling developed on grants.gov.
The CMS-RASS challenge repo provides an example: https://github.com/navapbc/bid-fed-cms-rass-tech-challenge/tree/main/rass-web/src
lib/fetch // for fetch handling and error throwing
services/fetch // for adding individual API endpoints
schemas // for zod schemas
types/api // for types inferred from zod schemasAlternatively we could adopt a library like orpc that handles the same functionality or standardize on a project like orval so are are adopting a more standard set of conventions.
Additional context
No response
Priority
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requesttriageNew issue which needs reviewed by a maintainerNew issue which needs reviewed by a maintainer