CacheControl / CacheControl/hippie-swagger

all responses are assumed JSON

Open
#39 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
183
Forks
23
PR merge metrics
No merged PRs in 30d

Description

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/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.