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

@@ -6,6 +6,8 @@ package v2
import (
"github.com/pb33f/libopenapi/datamodel/high"
low "github.com/pb33f/libopenapi/datamodel/low/v2"
"github.com/pb33f/libopenapi/orderedmap"
"gopkg.in/yaml.v3"
)
// Header Represents a high-level Swagger / OpenAPI 2 Header object, backed by a low-level one.
@@ -30,7 +32,7 @@ type Header struct {
UniqueItems bool
Enum []any
MultipleOf int
Extensions map[string]any
Extensions *orderedmap.Map[string, *yaml.Node]
low *low.Header
}