@@ -17,6 +17,7 @@ import (
1717
1818type Swagger struct {
1919 openapi3.ExtensionProps
20+ Swagger string `json:"swagger"`
2021 Info openapi3.Info `json:"info"`
2122 ExternalDocs * openapi3.ExternalDocs `json:"externalDocs,omitempty"`
2223 Schemes []string `json:"schemes,omitempty"`
@@ -168,27 +169,30 @@ type Parameters []*Parameter
168169
169170type Parameter struct {
170171 openapi3.ExtensionProps
171- Ref string `json:"$ref,omitempty"`
172- In string `json:"in,omitempty"`
173- Name string `json:"name,omitempty"`
174- Description string `json:"description,omitempty"`
175- Required bool `json:"required,omitempty"`
176- UniqueItems bool `json:"uniqueItems,omitempty"`
177- ExclusiveMin bool `json:"exclusiveMinimum,omitempty"`
178- ExclusiveMax bool `json:"exclusiveMaximum,omitempty"`
179- Schema * openapi3.SchemaRef `json:"schema,omitempty"`
180- Type string `json:"type,omitempty"`
181- Format string `json:"format,omitempty"`
182- Enum []interface {} `json:"enum,omitempty"`
183- Minimum * float64 `json:"minimum,omitempty"`
184- Maximum * float64 `json:"maximum,omitempty"`
185- MinLength uint64 `json:"minLength,omitempty"`
186- MaxLength * uint64 `json:"maxLength,omitempty"`
187- Pattern string `json:"pattern,omitempty"`
188- Items * openapi3.SchemaRef `json:"items,omitempty"`
189- MinItems uint64 `json:"minItems,omitempty"`
190- MaxItems * uint64 `json:"maxItems,omitempty"`
191- Default interface {} `json:"default,omitempty"`
172+ Ref string `json:"$ref,omitempty"`
173+ In string `json:"in,omitempty"`
174+ Name string `json:"name,omitempty"`
175+ Description string `json:"description,omitempty"`
176+ CollectionFormat string `json:"collectionFormat,omitempty"`
177+ Type string `json:"type,omitempty"`
178+ Format string `json:"format,omitempty"`
179+ Pattern string `json:"pattern,omitempty"`
180+ AllowEmptyValue bool `json:"allowEmptyValue,omitempty"`
181+ Required bool `json:"required,omitempty"`
182+ UniqueItems bool `json:"uniqueItems,omitempty"`
183+ ExclusiveMin bool `json:"exclusiveMinimum,omitempty"`
184+ ExclusiveMax bool `json:"exclusiveMaximum,omitempty"`
185+ Schema * openapi3.SchemaRef `json:"schema,omitempty"`
186+ Items * openapi3.SchemaRef `json:"items,omitempty"`
187+ Enum []interface {} `json:"enum,omitempty"`
188+ MultipleOf * float64 `json:"multipleOf,omitempty"`
189+ Minimum * float64 `json:"minimum,omitempty"`
190+ Maximum * float64 `json:"maximum,omitempty"`
191+ MaxLength * uint64 `json:"maxLength,omitempty"`
192+ MaxItems * uint64 `json:"maxItems,omitempty"`
193+ MinLength uint64 `json:"minLength,omitempty"`
194+ MinItems uint64 `json:"minItems,omitempty"`
195+ Default interface {} `json:"default,omitempty"`
192196}
193197
194198func (parameter * Parameter ) MarshalJSON () ([]byte , error ) {
0 commit comments