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

Set OpenAPI requestBody to required if necessary #655

Merged

Conversation

JordonPhillips
Copy link
Contributor

Description of changes:

This updates the OpenAPI conversion to set an operation's requestBody as required if the operation has an httpPayload member and that member is required or if the operation has no httpPayload member but does have a required member bound to the document.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JordonPhillips JordonPhillips requested review from mtdowling, kstich and srchase and removed request for mtdowling December 4, 2020 12:43
This updates the OpenAPI conversion to set an operation's
`requestBody` as required if the operation has an `httpPayload`
member and that member is required or if the operation has no
`httpPayload` member but does have a required member bound to the
document.
@JordonPhillips JordonPhillips force-pushed the openapi-required-payload branch from 35f180b to d9f7fea Compare December 4, 2020 16:27
@mtdowling mtdowling merged commit edbe4a9 into smithy-lang:master Dec 4, 2020
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

Successfully merging this pull request may close these issues.

3 participants