@@ -20,7 +20,7 @@ func (header *Header) UnmarshalJSON(data []byte) error
20
20
UnmarshalJSON sets Header to a copy of data.
21
21
22
22
type Operation struct {
23
- Extensions map[string]interface{} `json:"-" yaml:"-"`
23
+ Extensions map[string]any `json:"-" yaml:"-"`
24
24
25
25
Summary string `json:"summary,omitempty" yaml:"summary,omitempty"`
26
26
Description string `json:"description,omitempty" yaml:"description,omitempty"`
@@ -43,7 +43,7 @@ func (operation *Operation) UnmarshalJSON(data []byte) error
43
43
UnmarshalJSON sets Operation to a copy of data.
44
44
45
45
type Parameter struct {
46
- Extensions map[string]interface{} `json:"-" yaml:"-"`
46
+ Extensions map[string]any `json:"-" yaml:"-"`
47
47
48
48
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
49
49
@@ -61,15 +61,15 @@ type Parameter struct {
61
61
ExclusiveMax bool `json:"exclusiveMaximum,omitempty" yaml:"exclusiveMaximum,omitempty"`
62
62
Schema *openapi3.SchemaRef `json:"schema,omitempty" yaml:"schema,omitempty"`
63
63
Items *openapi3.SchemaRef `json:"items,omitempty" yaml:"items,omitempty"`
64
- Enum []interface{} `json:"enum,omitempty" yaml:"enum,omitempty"`
64
+ Enum []any `json:"enum,omitempty" yaml:"enum,omitempty"`
65
65
MultipleOf *float64 `json:"multipleOf,omitempty" yaml:"multipleOf,omitempty"`
66
66
Minimum *float64 `json:"minimum,omitempty" yaml:"minimum,omitempty"`
67
67
Maximum *float64 `json:"maximum,omitempty" yaml:"maximum,omitempty"`
68
68
MaxLength *uint64 `json:"maxLength,omitempty" yaml:"maxLength,omitempty"`
69
69
MaxItems *uint64 `json:"maxItems,omitempty" yaml:"maxItems,omitempty"`
70
70
MinLength uint64 `json:"minLength,omitempty" yaml:"minLength,omitempty"`
71
71
MinItems uint64 `json:"minItems,omitempty" yaml:"minItems,omitempty"`
72
- Default interface{} `json:"default,omitempty" yaml:"default,omitempty"`
72
+ Default any `json:"default,omitempty" yaml:"default,omitempty"`
73
73
}
74
74
75
75
func (parameter Parameter) MarshalJSON() ([]byte, error)
@@ -87,7 +87,7 @@ func (ps Parameters) Less(i, j int) bool
87
87
func (ps Parameters) Swap(i, j int)
88
88
89
89
type PathItem struct {
90
- Extensions map[string]interface{} `json:"-" yaml:"-"`
90
+ Extensions map[string]any `json:"-" yaml:"-"`
91
91
92
92
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
93
93
@@ -114,14 +114,14 @@ func (pathItem *PathItem) UnmarshalJSON(data []byte) error
114
114
UnmarshalJSON sets PathItem to a copy of data.
115
115
116
116
type Response struct {
117
- Extensions map[string]interface{} `json:"-" yaml:"-"`
117
+ Extensions map[string]any `json:"-" yaml:"-"`
118
118
119
119
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
120
120
121
- Description string `json:"description,omitempty" yaml:"description,omitempty"`
122
- Schema *openapi3.SchemaRef `json:"schema,omitempty" yaml:"schema,omitempty"`
123
- Headers map[string]*Header `json:"headers,omitempty" yaml:"headers,omitempty"`
124
- Examples map[string]interface{} `json:"examples,omitempty" yaml:"examples,omitempty"`
121
+ Description string `json:"description,omitempty" yaml:"description,omitempty"`
122
+ Schema *openapi3.SchemaRef `json:"schema,omitempty" yaml:"schema,omitempty"`
123
+ Headers map[string]*Header `json:"headers,omitempty" yaml:"headers,omitempty"`
124
+ Examples map[string]any `json:"examples,omitempty" yaml:"examples,omitempty"`
125
125
}
126
126
127
127
func (response Response) MarshalJSON() ([]byte, error)
@@ -133,7 +133,7 @@ func (response *Response) UnmarshalJSON(data []byte) error
133
133
type SecurityRequirements []map[string][]string
134
134
135
135
type SecurityScheme struct {
136
- Extensions map[string]interface{} `json:"-" yaml:"-"`
136
+ Extensions map[string]any `json:"-" yaml:"-"`
137
137
138
138
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
139
139
@@ -155,7 +155,7 @@ func (securityScheme *SecurityScheme) UnmarshalJSON(data []byte) error
155
155
UnmarshalJSON sets SecurityScheme to a copy of data.
156
156
157
157
type T struct {
158
- Extensions map[string]interface{} `json:"-" yaml:"-"`
158
+ Extensions map[string]any `json:"-" yaml:"-"`
159
159
160
160
Swagger string `json:"swagger" yaml:"swagger"` // required
161
161
Info openapi3.Info `json:"info" yaml:"info"` // required
0 commit comments