Skip to content

Commit

Permalink
fix: disable read-only validations
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sagi-Kazar <[email protected]>
  • Loading branch information
sagikazarmark committed Oct 2, 2024
1 parent af66fb1 commit 1bcc67d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openmeter/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ func NewServer(config *Config) (*Server, error) {
},
Options: openapi3filter.Options{
// Unfortunately, the OpenAPI 3 filter library doesn't support context changes
AuthenticationFunc: openapi3filter.NoopAuthenticationFunc,
SkipSettingDefaults: true,
AuthenticationFunc: openapi3filter.NoopAuthenticationFunc,
SkipSettingDefaults: true,
ExcludeReadOnlyValidations: true,
},
}),
},
Expand Down

0 comments on commit 1bcc67d

Please sign in to comment.