fix: continued moving everything to orderedmaps plus cleaned up most the tests

This commit is contained in:
Tristan Cartledge
2023-12-01 17:37:07 +00:00
parent 0f3d0cb28f
commit a4ad09aab3
169 changed files with 3435 additions and 3764 deletions

View File

@@ -21,7 +21,7 @@ import (
// The name used for each property MUST correspond to a security scheme declared in the Security Definitions
// - https://swagger.io/specification/v2/#securityDefinitionsObject
type SecurityRequirement struct {
Requirements orderedmap.Map[string, []string] `json:"-" yaml:"-"`
Requirements *orderedmap.Map[string, []string] `json:"-" yaml:"-"`
low *base.SecurityRequirement
}
@@ -59,7 +59,6 @@ func (s *SecurityRequirement) Render() ([]byte, error) {
// MarshalYAML will create a ready to render YAML representation of the SecurityRequirement object.
func (s *SecurityRequirement) MarshalYAML() (interface{}, error) {
type req struct {
line int
key string