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

all responses are assumed JSON #39

Open
netzkind opened this issue Jan 3, 2019 · 1 comment
Open

all responses are assumed JSON #39

netzkind opened this issue Jan 3, 2019 · 1 comment

Comments

@netzkind
Copy link

netzkind commented Jan 3, 2019

Given Swagger:

swagger: "2.0"
info:
  version: ""
  title: test
schemes:
- http

paths:
  /fragment:
    get:
      produces:
      - text/html
      description: returns some html
      responses:
        200:
          description: text/html response
          schema:
            type: string

HippieSwagger 3.2.0 chokes on the response, as it assumes all responses to always be JSON - but can't parse HTML as JSON. Can the JSON-parsing be disabled somehow?

Specification for Swagger 2.0 concerning mime-types in requests and responses:
https://swagger.io/docs/specification/2-0/mime-types/

@rob4629
Copy link

rob4629 commented Sep 1, 2020

I'm facing a similar issue (albeit when a service returns 500 instead of the expected response code). Having this be parsed properly would reduce effort in to debugging failures

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

2 participants