swagger_parser icon indicating copy to clipboard operation
swagger_parser copied to clipboard

components.responses are not being take into account

Open konarskis opened this issue 8 months ago • 0 comments

Steps to reproduce

Use the provided snippet to generate something

Expected results

The generator can use the components.responses part which are referenced in paths.

Actual results

The responses are not take into account and the code is not able to parse the actual response.

Your OpenApi snippet

  responses:
    HttpErrorResponse:
      description: The request has failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DefaultError'

Code sample

No response

Logs

No response

Dart version and used packages versions

3.4.3
dart run swagger_parser
1.8.0
dart run swagger_parser

konarskis avatar Jun 19 '24 06:06 konarskis