Skip to content

Commit

Permalink
Add security requirement to root OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefftree committed Sep 28, 2023
1 parent 68afd61 commit 75d10c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/spec3/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ type OpenAPI struct {
Servers []*Server `json:"servers,omitempty"`
// Components hold various schemas for the specification
Components *Components `json:"components,omitempty"`
// SecurityRequirement holds a declaration of which security mechanisms can be used across the API
SecurityRequirement []map[string][]string `json:"security,omitempty"`
// ExternalDocs holds additional external documentation
ExternalDocs *ExternalDocumentation `json:"externalDocs,omitempty"`
}
Expand Down

0 comments on commit 75d10c8

Please sign in to comment.