@@ -229,7 +229,7 @@ func (addProps *AdditionalProperties) UnmarshalJSON(data []byte) error
229
229
230
230
type Callback struct {
231
231
Extensions map[string]any `json:"-" yaml:"-"`
232
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
232
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
233
233
234
234
// Has unexported fields.
235
235
}
@@ -332,7 +332,7 @@ type ComponentRef interface {
332
332
333
333
type Components struct {
334
334
Extensions map[string]any `json:"-" yaml:"-"`
335
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
335
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
336
336
337
337
Schemas Schemas `json:"schemas,omitempty" yaml:"schemas,omitempty"`
338
338
Parameters ParametersMap `json:"parameters,omitempty" yaml:"parameters,omitempty"`
@@ -364,7 +364,7 @@ func (components *Components) Validate(ctx context.Context, opts ...ValidationOp
364
364
365
365
type Contact struct {
366
366
Extensions map[string]any `json:"-" yaml:"-"`
367
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
367
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
368
368
369
369
Name string `json:"name,omitempty" yaml:"name,omitempty"`
370
370
URL string `json:"url,omitempty" yaml:"url,omitempty"`
@@ -412,7 +412,7 @@ func (content Content) Validate(ctx context.Context, opts ...ValidationOption) e
412
412
413
413
type Discriminator struct {
414
414
Extensions map[string]any `json:"-" yaml:"-"`
415
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
415
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
416
416
417
417
PropertyName string `json:"propertyName" yaml:"propertyName"` // required
418
418
Mapping StringMap `json:"mapping,omitempty" yaml:"mapping,omitempty"`
@@ -435,7 +435,7 @@ func (discriminator *Discriminator) Validate(ctx context.Context, opts ...Valida
435
435
436
436
type Encoding struct {
437
437
Extensions map[string]any `json:"-" yaml:"-"`
438
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
438
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
439
439
440
440
ContentType string `json:"contentType,omitempty" yaml:"contentType,omitempty"`
441
441
Headers Headers `json:"headers,omitempty" yaml:"headers,omitempty"`
@@ -471,7 +471,7 @@ func (encoding *Encoding) WithHeaderRef(name string, ref *HeaderRef) *Encoding
471
471
472
472
type Example struct {
473
473
Extensions map[string]any `json:"-" yaml:"-"`
474
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
474
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
475
475
476
476
Summary string `json:"summary,omitempty" yaml:"summary,omitempty"`
477
477
Description string `json:"description,omitempty" yaml:"description,omitempty"`
@@ -547,7 +547,7 @@ func (examples *Examples) UnmarshalJSON(data []byte) (err error)
547
547
548
548
type ExternalDocs struct {
549
549
Extensions map[string]any `json:"-" yaml:"-"`
550
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
550
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
551
551
552
552
Description string `json:"description,omitempty" yaml:"description,omitempty"`
553
553
URL string `json:"url,omitempty" yaml:"url,omitempty"`
@@ -662,7 +662,7 @@ func (headers *Headers) UnmarshalJSON(data []byte) (err error)
662
662
663
663
type Info struct {
664
664
Extensions map[string]any `json:"-" yaml:"-"`
665
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
665
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
666
666
667
667
Title string `json:"title" yaml:"title"` // Required
668
668
Description string `json:"description,omitempty" yaml:"description,omitempty"`
@@ -691,7 +691,7 @@ type IntegerFormatValidator = FormatValidator[int64]
691
691
692
692
type License struct {
693
693
Extensions map[string]any `json:"-" yaml:"-"`
694
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
694
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
695
695
696
696
Name string `json:"name" yaml:"name"` // Required
697
697
URL string `json:"url,omitempty" yaml:"url,omitempty"`
@@ -713,7 +713,7 @@ func (license *License) Validate(ctx context.Context, opts ...ValidationOption)
713
713
714
714
type Link struct {
715
715
Extensions map[string]any `json:"-" yaml:"-"`
716
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
716
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
717
717
718
718
OperationRef string `json:"operationRef,omitempty" yaml:"operationRef,omitempty"`
719
719
OperationID string `json:"operationId,omitempty" yaml:"operationId,omitempty"`
@@ -836,7 +836,7 @@ type Location struct {
836
836
837
837
type MediaType struct {
838
838
Extensions map[string]any `json:"-" yaml:"-"`
839
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
839
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
840
840
841
841
Schema *SchemaRef `json:"schema,omitempty" yaml:"schema,omitempty"`
842
842
Example any `json:"example,omitempty" yaml:"example,omitempty"`
@@ -914,7 +914,7 @@ type NumberFormatValidator = FormatValidator[float64]
914
914
915
915
type OAuthFlow struct {
916
916
Extensions map[string]any `json:"-" yaml:"-"`
917
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
917
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
918
918
919
919
AuthorizationURL string `json:"authorizationUrl,omitempty" yaml:"authorizationUrl,omitempty"`
920
920
TokenURL string `json:"tokenUrl,omitempty" yaml:"tokenUrl,omitempty"`
@@ -939,7 +939,7 @@ func (flow *OAuthFlow) Validate(ctx context.Context, opts ...ValidationOption) e
939
939
940
940
type OAuthFlows struct {
941
941
Extensions map[string]any `json:"-" yaml:"-"`
942
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
942
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
943
943
944
944
Implicit *OAuthFlow `json:"implicit,omitempty" yaml:"implicit,omitempty"`
945
945
Password *OAuthFlow `json:"password,omitempty" yaml:"password,omitempty"`
@@ -964,7 +964,7 @@ func (flows *OAuthFlows) Validate(ctx context.Context, opts ...ValidationOption)
964
964
965
965
type Operation struct {
966
966
Extensions map[string]any `json:"-" yaml:"-"`
967
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
967
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
968
968
969
969
// Optional tags for documentation.
970
970
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
@@ -1037,7 +1037,7 @@ type Origin struct {
1037
1037
1038
1038
type Parameter struct {
1039
1039
Extensions map[string]any `json:"-" yaml:"-"`
1040
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1040
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1041
1041
1042
1042
Name string `json:"name,omitempty" yaml:"name,omitempty"`
1043
1043
In string `json:"in,omitempty" yaml:"in,omitempty"`
@@ -1159,7 +1159,7 @@ func (parametersMap *ParametersMap) UnmarshalJSON(data []byte) (err error)
1159
1159
1160
1160
type PathItem struct {
1161
1161
Extensions map[string]any `json:"-" yaml:"-"`
1162
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1162
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1163
1163
1164
1164
Ref string `json:"$ref,omitempty" yaml:"$ref,omitempty"`
1165
1165
Summary string `json:"summary,omitempty" yaml:"summary,omitempty"`
@@ -1199,7 +1199,7 @@ func (pathItem *PathItem) Validate(ctx context.Context, opts ...ValidationOption
1199
1199
1200
1200
type Paths struct {
1201
1201
Extensions map[string]any `json:"-" yaml:"-"`
1202
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1202
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1203
1203
1204
1204
// Has unexported fields.
1205
1205
}
@@ -1289,7 +1289,7 @@ func URIMapCache(reader ReadFromURIFunc) ReadFromURIFunc
1289
1289
1290
1290
type Ref struct {
1291
1291
Ref string `json:"$ref" yaml:"$ref"`
1292
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1292
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1293
1293
}
1294
1294
Ref is specified by OpenAPI/Swagger 3.0 standard. See
1295
1295
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#reference-object
@@ -1318,7 +1318,7 @@ func (requestBodies *RequestBodies) UnmarshalJSON(data []byte) (err error)
1318
1318
1319
1319
type RequestBody struct {
1320
1320
Extensions map[string]any `json:"-" yaml:"-"`
1321
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1321
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1322
1322
1323
1323
Description string `json:"description,omitempty" yaml:"description,omitempty"`
1324
1324
Required bool `json:"required,omitempty" yaml:"required,omitempty"`
@@ -1405,7 +1405,7 @@ func (x *RequestBodyRef) Validate(ctx context.Context, opts ...ValidationOption)
1405
1405
1406
1406
type Response struct {
1407
1407
Extensions map[string]any `json:"-" yaml:"-"`
1408
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1408
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1409
1409
1410
1410
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
1411
1411
Headers Headers `json:"headers,omitempty" yaml:"headers,omitempty"`
@@ -1548,7 +1548,7 @@ func (responses *Responses) Value(key string) *ResponseRef
1548
1548
1549
1549
type Schema struct {
1550
1550
Extensions map[string]any `json:"-" yaml:"-"`
1551
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1551
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1552
1552
1553
1553
OneOf SchemaRefs `json:"oneOf,omitempty" yaml:"oneOf,omitempty"`
1554
1554
AnyOf SchemaRefs `json:"anyOf,omitempty" yaml:"anyOf,omitempty"`
@@ -1888,7 +1888,7 @@ func (srs *SecurityRequirements) With(securityRequirement SecurityRequirement) *
1888
1888
1889
1889
type SecurityScheme struct {
1890
1890
Extensions map[string]any `json:"-" yaml:"-"`
1891
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1891
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1892
1892
1893
1893
Type string `json:"type,omitempty" yaml:"type,omitempty"`
1894
1894
Description string `json:"description,omitempty" yaml:"description,omitempty"`
@@ -1995,7 +1995,7 @@ type SerializationMethod struct {
1995
1995
1996
1996
type Server struct {
1997
1997
Extensions map[string]any `json:"-" yaml:"-"`
1998
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
1998
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
1999
1999
2000
2000
URL string `json:"url" yaml:"url"` // Required
2001
2001
Description string `json:"description,omitempty" yaml:"description,omitempty"`
@@ -2026,7 +2026,7 @@ func (server *Server) Validate(ctx context.Context, opts ...ValidationOption) (e
2026
2026
2027
2027
type ServerVariable struct {
2028
2028
Extensions map[string]any `json:"-" yaml:"-"`
2029
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
2029
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
2030
2030
2031
2031
Enum []string `json:"enum,omitempty" yaml:"enum,omitempty"`
2032
2032
Default string `json:"default,omitempty" yaml:"default,omitempty"`
@@ -2132,7 +2132,7 @@ func (doc *T) Validate(ctx context.Context, opts ...ValidationOption) error
2132
2132
2133
2133
type Tag struct {
2134
2134
Extensions map[string]any `json:"-" yaml:"-"`
2135
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
2135
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
2136
2136
2137
2137
Name string `json:"name,omitempty" yaml:"name,omitempty"`
2138
2138
Description string `json:"description,omitempty" yaml:"description,omitempty"`
@@ -2244,7 +2244,7 @@ type ValidationOptions struct {
2244
2244
2245
2245
type XML struct {
2246
2246
Extensions map[string]any `json:"-" yaml:"-"`
2247
- Origin *Origin `json:"origin ,omitempty" yaml:"origin ,omitempty"`
2247
+ Origin *Origin `json:"__origin__ ,omitempty" yaml:"__origin__ ,omitempty"`
2248
2248
2249
2249
Name string `json:"name,omitempty" yaml:"name,omitempty"`
2250
2250
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
0 commit comments