kin-openapi
kin-openapi copied to clipboard
[Question] Override top level security on operation with empty security
When applying security rules to operations is it possible to set an empty list of security requirements without these being omitted on serialization?
I want to be able to disable top level security on individual operations, bit it seems that trying to set security: [] on an operation would have that value be omitted.
Is it possible to achieve this behaviour currently?
I gather your code uses the openapi3filter package? In this case have you tried setting the *ValidationInputs to https://pkg.go.dev/github.com/getkin/kin-openapi/openapi3filter#NoopAuthenticationFunc ?