Skip to content

all responses are assumed JSON #39

Description

@netzkind

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/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions