discord-gophers / goapi-gen

This package contains a set of utilities for generating Go boilerplate code for services based on OpenAPI 3.0 API definitions
Apache License 2.0
132 stars 12 forks source link

Security requirement failures always text/plain #74

Closed zacharyburkett closed 2 years ago

zacharyburkett commented 2 years ago

Currently when security requirements fail when using the validation middleware the response content type is always text/plain. We should allow developers to specify a content type, and possibly other options (such as error messages) when security validations fail.

zacharyburkett commented 2 years ago

Update: this actually occurs for all validation erros in the middleware.

My team at work is going to take this in a week or two. We'll be using it as a learning experience for the other devs, and to get them involved in goapi-gen