https://github.com/xbc5/orval-bug-repro
An Orval bug repro
https://github.com/xbc5/orval-bug-repro
Last synced: over 1 year ago
JSON representation
An Orval bug repro
- Host: GitHub
- URL: https://github.com/xbc5/orval-bug-repro
- Owner: xbc5
- Created: 2023-12-15T12:06:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T12:09:11.000Z (over 2 years ago)
- Last Synced: 2025-02-07T08:48:52.864Z (over 1 year ago)
- Language: TypeScript
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`requestBody` is optional by default in OpenAPI 3.0[[1]](https://swagger.io/docs/specification/describing-request-body/). Orval does not respect that; it also does not respect `required: false`.
See the spec in [schema.yaml](schema.yaml), and the results in [out.ts](out.ts).
You can use these steps to reproduce:
1. `npm i -D`
2. `npm run gen`