Skip to content

Allow for the removal of default request mapping templates #7008

Description

@sihutch

Currently default request mapping templates are created both for application/json and application/x-www-form-urlencoded. There does not appear to be a simple method for overriding this default. In our application we only support the application/json content type however application/x-www-form-urlencoded is being automatically created even though it is not supported by our application. Even worse, when generating swagger documentation via the AWS API Gateway this forces us advertise that we consume both:

"consumes": [
"application/json",
"application/x-www-form-urlencoded"
],

IMO, there really should be a way of overriding defaults in any application. If you can suggest any workaround to this it would be great

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions