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

Can we support 'required' ? #89

Closed
hotanlam opened this issue Feb 15, 2023 · 2 comments · Fixed by #95
Closed

Can we support 'required' ? #89

hotanlam opened this issue Feb 15, 2023 · 2 comments · Fixed by #95
Assignees
Labels
enhancement New feature or request

Comments

@hotanlam
Copy link

Can we support 'required' ? Like this

requestBody:
  content:
    application/x-www-form-urlencoded:
      encoding: {}
      schema:
        required:
          - name
@exoego
Copy link
Owner

exoego commented Feb 15, 2023

No, not supported for requestBody.
required is generated only for path parameter at this moment.
It will be a great enhancement if rspec-openapi supports required in other places.

@exoego exoego added the enhancement New feature or request label Feb 15, 2023
@chrishough
Copy link

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

Successfully merging a pull request may close this issue.

3 participants