Skip to content

HTTP 406 when only "application/yaml" is produced #2842

@AvoH

Description

@AvoH

My Spring Controller defines spec retrieval @RequestMapping with produces = "application/yaml".
This works well with Swagger-UI 2.x, while Swagger UI 3.0.4 fails with HTTP 406.
Adding "applicatiopn/json" to "produces" makes 3.0 work even if only yaml is returned, but it breaks Swagger-ui 2.x.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions