-
-
Notifications
You must be signed in to change notification settings - Fork 564
Open
Labels
bugSomething isn't workingSomething isn't workingopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library
Description
openapi-typescript version
7.9.1
Node.js version
20.19.4
OS + version
ALT Linux 11
Description
The "requestBody" in generated api is always optional so I cannot access to requestBody members:


Reproduction
- Generate api
- Try to get access to any requestBody's member
Expected result
All requestBodies are NOT optional
Required
- My OpenAPI schema is valid and passes the Redocly validator (
npx @redocly/cli@latest lint
)
Extra
- I’m willing to open a PR (see CONTRIBUTING.md)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingopenapi-tsRelevant to the openapi-typescript libraryRelevant to the openapi-typescript library