webroute
webroute copied to clipboard
The web toolkit for full-stack connoisseurs.
Example: ``` application/json: schema: anyOf: - type: object properties: draftId: type: string title: type: - string - 'null' ``` Causes error: ``` should be equal to one of the allowed...
Should be something like: ```ts .params( MySchema, { skipTypeCheck?: boolean, onFailure?: (...) => {}, name: "for openapi/docs" } ) ```
This may already be the case, but add test cases etc.
Currently, some open api generators are failing - indicating the open api spec is invalid. Either need to validate using an actual openapi validator, or at least be able to...
Add support for Open API spec auto-generation. Schemas: - [x] Zod - [ ] Superstruct - [ ] Valibot? - [ ] Yup
E.g `.output(SomeSchema, {name: "CustomName" })`
When there are path params defined in the path but no schema provided, the open API spec complains. Fix: Need to set a default type for path params provided, which...
- [ ] Remix - [ ] Helper exposing e.g. varying dynamic param discover ($param, vs [param]), includeFile regex, ignoreFile regex
E.g. in Bun, nested file routes aren't working. Might be worth setting up docker test envs for various runtimes.