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

Missing required header \"Content-Type\" for Request [put .....] when requestBody has required: false #233

Open
tomasjanda opened this issue Sep 27, 2024 · 0 comments

Comments

@tomasjanda
Copy link

tomasjanda commented Sep 27, 2024

Hello, i have problem with PUT operation, when body is optional, in OAS3.1 specified as:

  requestBody:
    required: false
    description: XXXXX
    content:
      application/json:
        schema:
          $ref: '../../common/objects.yaml#/components/schemas/XXXXX'

When request is set with missing Content-Type and Content-Lenght is set to 0, i still got error Missing required header "Content-Type" for Request

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