Skip to content

Media Types with charset not accepted #66

Open
@buuhuu

Description

@buuhuu

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"

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