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

Media Types with charset not accepted #66

Open
Buuhuu opened this issue Feb 10, 2020 · 0 comments · May be fixed by #67
Open

Media Types with charset not accepted #66

Buuhuu opened this issue Feb 10, 2020 · 0 comments · May be fixed by #67

Comments

@Buuhuu
Copy link

Buuhuu commented Feb 10, 2020

Having a media type containing the optional charset part lets the mock server fail.

2020/02/10 14:46:31 GET /health (checkHealth) => 200 (application/json;charset=UTF-8)
2020/02/10 14:46:31 Cannot marshal as 'application/json;charset=UTF-8'!

With the following spec for example

/pet/findByStatus:
    get:
      tags:
      - "pet"
      summary: "Finds Pets by status"
      description: "Multiple status values can be provided with comma separated strings"
      operationId: "findPetsByStatus"
      produces:
      - "application/json; charset=utf-8"
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

Successfully merging a pull request may close this issue.

1 participant