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

API Responses Add required: true to enforce content in a response #10013

Open
R0bG opened this issue Jun 11, 2024 · 0 comments
Open

API Responses Add required: true to enforce content in a response #10013

R0bG opened this issue Jun 11, 2024 · 0 comments

Comments

@R0bG
Copy link

R0bG commented Jun 11, 2024

In a similar fashion to the way that request bodies can set as mandatory with the required:true property it would be useful if this could be extended to response bodies.

 responses:
    '201':
      description: Messages created
      content: 
      **required: true** 
        application/json:
          schema:
              $ref: '#/components/schemas/StandardResponse'
@R0bG R0bG changed the title API Responses Add required: true to enforce content in aresponse API Responses Add required: true to enforce content in a response Jun 11, 2024
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