Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access requestBody after dereferencing my contract yaml #244

Open
souryabharath opened this issue Mar 15, 2023 · 0 comments
Open

Comments

@souryabharath
Copy link

API contract is in 3.0.0 openapi version and the version of npm package being used is ^10.1.0.

Below is the exception when I try to access requestBody from my dereferenced reponse.

Property 'requestBody' does not exist on type '{ tags?: string[]; summary?: string; description?: string; externalDocs?: ExternalDocumentationObject; operationId?: string; parameters?: (ReferenceObject | ParameterObject)[]; ... 5 more ...; servers?: ServerObject[]; } | { ...; } | ({ ...; } & ... 1 more ... & { ...; })'.
Property 'requestBody' does not exist on type '{ tags?: string[]; summary?: string; description?: string; externalDocs?: ExternalDocumentationObject; operationId?: string; consumes?: MimeTypes; produces?: MimeTypes; ... 4 more ...; security?: SecurityRequirementObject[]; }'.ts(2339)
any

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant