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

Require POST body when making a payment #19

Merged
merged 1 commit into from
May 29, 2024
Merged

Require POST body when making a payment #19

merged 1 commit into from
May 29, 2024

Conversation

ahx
Copy link

@ahx ahx commented May 27, 2024

Hi
I noticed that the request body for payments is defined as optional (because OAS says so). This does not look useful when making payments.

I would also like to ask if you think this assumption is correct: When a request body content is defined, but the request body is not marked as required, both, a request with a body with the described content-type and body schema and a request with and empty body are valid according to the API description.

I was working on openapi_first, which is a request/response validator for Ruby, and I am (finally) making use of your project. Thanks for building this.

Copy link
Collaborator

@philsturgeon philsturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I often forget this pesky parameter. I'm glad this resource is helpful for you.

@philsturgeon philsturgeon enabled auto-merge (squash) May 27, 2024 17:18
@philsturgeon philsturgeon disabled auto-merge May 29, 2024 13:30
@philsturgeon philsturgeon merged commit 8ab5896 into bump-sh-examples:main May 29, 2024
2 of 3 checks passed
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.

2 participants