0

Any help or hint would be greatly appreciated it!! I have a java code that return "ResponseEntity(HttpStatus.NO_CONTENT)". The "springdoc-openapi-starter-webmvc-ui" is generating the below response for "204". Is this correct?

[enter image description here][1]

   responses:
    '200':
      content:
        application/json:
          schema:
            type: string
            enum:
              - 100 CONTINUE
              - 101 SWITCHING_PROTOCOLS
              - 102 PROCESSING
              - 103 CHECKPOINT
              - 200 OK
              - 201 CREATED
              - 202 ACCEPTED
              - 203 NON_AUTHORITATIVE_INFORMATION
              - 204 NO_CONTENT

Shouldn't it be just:

responses:
    '200':
      content:
        application/json:
          schema:
            type: string
            enum:
              - 204 NO_CONTENT

  description: OK
Albert Lam
  • 9
  • 1
  • 3

0 Answers0