This package contains a set of utilities for generating Go boilerplate code for services based on OpenAPI 3.0 API definitions
137
stars
12
forks
source link
Add Error Response Content Type customization options #75
Closed
adammparker closed 2 years ago
Resolves https://github.com/discord-gophers/goapi-gen/issues/74.
Adds the ability to specify how you would like the validate middleware to decorate the response (content-type header) in the case of an error.
I've included a couple of tests to ensure the specified content type is set in the response header during an error.