{"modulePath":"github.com/d3code/kin-openapi","version":"v0.0.0-20250310002555-abac6e1af6bc","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package openapi3\n\nPackage openapi3 parses and writes OpenAPI 3 specification documents.\n\nSee [https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md)\n\nCode generated by go generate; DO NOT EDIT.\n\n## Constants\n\n```go\nconst (\n\tParameterInPath   = \"path\"\n\tParameterInQuery  = \"query\"\n\tParameterInHeader = \"header\"\n\tParameterInCookie = \"cookie\"\n)\n```\n\n```go\nconst (\n\tTypeArray   = \"array\"\n\tTypeBoolean = \"boolean\"\n\tTypeInteger = \"integer\"\n\tTypeNumber  = \"number\"\n\tTypeObject  = \"object\"\n\tTypeString  = \"string\"\n\tTypeNull    = \"null\"\n)\n```\n\n```go\nconst (\n\t// FormatOfStringForUUIDOfRFC4122 is an optional predefined format for UUID v1-v5 as specified by RFC4122\n\tFormatOfStringForUUIDOfRFC4122 = `^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$`\n\n\t// FormatOfStringForEmail pattern catches only some suspiciously wrong-looking email addresses.\n\t// Use DefineStringFormat(...) if you need something stricter.\n\tFormatOfStringForEmail = `^[^@]+@[^@\u003c\u003e\",\\s]+$`\n\n\t// FormatOfStringByte is a regexp for base64-encoded characters, for example, \"U3dhZ2dlciByb2Nrcw==\"\n\tFormatOfStringByte = `(^$|^[a-zA-Z0-9+/\\-_]*=*$)`\n\n\t// FormatOfStringDate is a RFC3339 date format regexp, for example \"2017-07-21\".\n\tFormatOfStringDate = `^[0-9]{4}-(0[1-9]|10|11|12)-(0[1-9]|[12][0-9]|3[01])$`\n\n\t// FormatOfStringDateTime is a RFC3339 date-time format regexp, for example \"2017-07-21T17:32:28Z\".\n\tFormatOfStringDateTime = `^[0-9]{4}-(0[1-9]|10|11|12)-(0[1-9]|[12][0-9]|3[01])T([0-1][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)[0-9]{2}:[0-9]{2})?$`\n)\n```\n\n```go\nconst (\n\tSerializationSimple         = \"simple\"\n\tSerializationLabel          = \"label\"\n\tSerializationMatrix         = \"matrix\"\n\tSerializationForm           = \"form\"\n\tSerializationSpaceDelimited = \"spaceDelimited\"\n\tSerializationPipeDelimited  = \"pipeDelimited\"\n\tSerializationDeepObject     = \"deepObject\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tIdentifierRegExp            = regexp.MustCompile(`^[` + identifierChars + `]+$`)\n\tInvalidIdentifierCharRegExp = regexp.MustCompile(`[^` + identifierChars + `]`)\n)\n```\nIdentifierRegExp verifies whether Component object key matches contains just 'identifierChars', according to OpenAPI v3.x. InvalidIdentifierCharRegExp matches all characters not contained in 'identifierChars'. However, to be able supporting legacy OpenAPI v2.x, there is a need to customize above pattern in order not to fail converted v2-v3 validation\n\n```go\nvar (\n\t// SchemaErrorDetailsDisabled disables printing of details about schema errors.\n\tSchemaErrorDetailsDisabled = false\n\n\t// ErrOneOfConflict is the SchemaError Origin when data matches more than one oneOf schema\n\tErrOneOfConflict = errors.New(\"input matches more than one oneOf schemas\")\n\n\t// ErrSchemaInputNaN may be returned when validating a number\n\tErrSchemaInputNaN = errors.New(\"floating point NaN is not allowed\")\n\t// ErrSchemaInputInf may be returned when validating a number\n\tErrSchemaInputInf = errors.New(\"floating point Inf is not allowed\")\n)\n```\n\n```go\nvar (\n\t// SchemaStringFormats is a map of custom string format validators.\n\tSchemaStringFormats = make(map[string]StringFormatValidator)\n\t// SchemaNumberFormats is a map of custom number format validators.\n\tSchemaNumberFormats = make(map[string]NumberFormatValidator)\n\t// SchemaIntegerFormats is a map of custom integer format validators.\n\tSchemaIntegerFormats = make(map[string]IntegerFormatValidator)\n)\n```\n\n```go\nvar DefaultReadFromURI = URIMapCache(ReadFromURIs(ReadFromHTTP(http.DefaultClient), ReadFromFile))\n```\nDefaultReadFromURI returns a caching ReadFromURIFunc which can read remote HTTP URIs and local file URIs.\n\n```go\nvar ErrURINotSupported = errors.New(\"unsupported URI\")\n```\nErrURINotSupported indicates the ReadFromURIFunc does not know how to handle a given URI.\n\n## Functions\n\n```go\nfunc BoolPtr(value bool) *bool\n```\nBoolPtr is a helper for defining OpenAPI schemas.\n\n```go\nfunc DefaultRefNameResolver(doc *T, ref ComponentRef) string\n```\nDefaultRefResolver is a default implementation of refNameResolver for the InternalizeRefs function.\n\nThe external reference is internalized to (hopefully) a unique name. If the external reference matches (by path) to another reference in the root document then the name of that component is used.\n\nThe transformation involves:\n\n  - Cutting the \"#/components/\\\u003ctype\u003e\" part.\n  - Cutting the file extensions (.yaml/.json) from documents.\n  - Trimming the common directory with the root spec.\n  - Replace invalid characters with with underscores.\n\nThis is an injective mapping over a \"reasonable\" amount of the possible openapi spec domain space but is not perfect. There might be edge cases.\n\n```go\nfunc DefineIPv4Format()\n```\nDefineIPv4Format opts in ipv4 format validation on top of OAS 3 spec\n\n```go\nfunc DefineIPv6Format()\n```\nDefineIPv6Format opts in ipv6 format validation on top of OAS 3 spec\n\n```go\nfunc DefineIntegerFormatValidator(name string, validator IntegerFormatValidator)\n```\nDefineIntegerFormatValidator defines a custom format validator for a given integer format.\n\n```go\nfunc DefineNumberFormatValidator(name string, validator NumberFormatValidator)\n```\nDefineNumberFormatValidator defines a custom format validator for a given number format.\n\n```go\nfunc DefineStringFormat(name string, pattern string)\n```\nDefineStringFormat defines a regexp pattern for a given string format\n\nDeprecated: Use openapi3.DefineStringFormatValidator(name, NewRegexpFormatValidator(pattern)) instead.\n\n```go\nfunc DefineStringFormatCallback(name string, callback func(string) error)\n```\nDefineStringFormatCallback defines a callback function for a given string format\n\nDeprecated: Use openapi3.DefineStringFormatValidator(name, NewCallbackValidator(fn)) instead.\n\n```go\nfunc DefineStringFormatValidator(name string, validator StringFormatValidator)\n```\nDefineStringFormatValidator defines a custom format validator for a given string format.\n\n```go\nfunc Float64Ptr(value float64) *float64\n```\nFloat64Ptr is a helper for defining OpenAPI schemas.\n\n```go\nfunc Int64Ptr(value int64) *int64\n```\nInt64Ptr is a helper for defining OpenAPI schemas.\n\n```go\nfunc ReadFromFile(loader *Loader, location *url.URL) ([]byte, error)\n```\nReadFromFile is a ReadFromURIFunc which reads local file URIs.\n\n```go\nfunc ReferencesComponentInRootDocument(doc *T, ref ComponentRef) (string, bool)\n```\nReferencesComponentInRootDocument returns if the given component reference references the same document or element as another component reference in the root document's '#/components/\\\u003ctype\u003e'. If it does, it returns the name of it in the form '#/components/\\\u003ctype\u003e/NameXXX'\n\nOf course given a component from the root document will always match itself.\n\n[https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#reference-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#reference-object) [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#relative-references-in-urls](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#relative-references-in-urls)\n\nExample. Take the spec with directory structure:\n\n\topenapi.yaml\n\tschemas/\n\t├─ record.yaml\n\t├─ records.yaml\n\nIn openapi.yaml we have:\n\n\tcomponents:\n\t  schemas:\n\t    Record:\n\t      $ref: schemas/record.yaml\n\nCase 1: records.yml references a component in the root document\n\n\t$ref: ../openapi.yaml#/components/schemas/Record\n\nThis would return...\n\n\t#/components/schemas/Record\n\nCase 2: records.yml indirectly refers to the same schema as a schema the root document's '#/components/schemas'.\n\n\t$ref: ./record.yaml\n\nThis would also return...\n\n\t#/components/schemas/Record\n\n```go\nfunc RegisterArrayUniqueItemsChecker(fn SliceUniqueItemsChecker)\n```\nRegisterArrayUniqueItemsChecker is used to register a customized function used to check if JSON array have unique items.\n\n```go\nfunc Uint64Ptr(value uint64) *uint64\n```\nUint64Ptr is a helper for defining OpenAPI schemas.\n\n```go\nfunc ValidateIdentifier(value string) error\n```\nValidateIdentifier returns an error if the given component name does not match [IdentifierRegExp](#IdentifierRegExp).\n\n```go\nfunc WithValidationOptions(ctx context.Context, opts ...ValidationOption) context.Context\n```\nWithValidationOptions allows adding validation options to a context object that can be used when validating any OpenAPI type.\n\n## Types\n\n```go\ntype AdditionalProperties struct {\n\tHas    *bool\n\tSchema *SchemaRef\n}\n```\n\n```go\nfunc (addProps AdditionalProperties) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of AdditionalProperties.\n\n```go\nfunc (addProps AdditionalProperties) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of AdditionalProperties.\n\n```go\nfunc (addProps *AdditionalProperties) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets AdditionalProperties to a copy of data.\n\n```go\ntype Callback struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nCallback is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object)\n\n```go\nfunc NewCallback(opts ...NewCallbackOption) *Callback\n```\nNewCallback builds a Callback object with path items in insertion order.\n\n```go\nfunc NewCallbackWithCapacity(cap int) *Callback\n```\nNewCallbackWithCapacity builds a callback object of the given capacity.\n\n```go\nfunc (callback *Callback) Delete(key string)\n```\nDelete removes the entry associated with key 'key' from 'callback'.\n\n```go\nfunc (callback Callback) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://github.com/go-openapi/jsonpointer#JSONPointable](https://github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (callback *Callback) Len() int\n```\nLen returns the amount of keys in callback excluding callback.Extensions.\n\n```go\nfunc (callback *Callback) Map() (m map[string]*PathItem)\n```\nMap returns callback as a 'map'. Note: iteration on Go maps is not ordered.\n\n```go\nfunc (callback *Callback) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Callback.\n\n```go\nfunc (callback *Callback) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Callback.\n\n```go\nfunc (callback *Callback) Set(key string, value *PathItem)\n```\nSet adds or replaces key 'key' of 'callback' with 'value'. Note: 'callback' MUST be non-nil\n\n```go\nfunc (callback *Callback) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Callback to a copy of data.\n\n```go\nfunc (callback *Callback) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Callback does not comply with the OpenAPI spec.\n\n```go\nfunc (callback *Callback) Value(key string) *PathItem\n```\nValue returns the callback for key or nil\n\n```go\ntype CallbackRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Callback\n\t// contains filtered or unexported fields\n}\n```\nCallbackRef represents either a Callback or a $ref to a Callback. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *CallbackRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *CallbackRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x CallbackRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of CallbackRef.\n\n```go\nfunc (x CallbackRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of CallbackRef.\n\n```go\nfunc (x *CallbackRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *CallbackRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *CallbackRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets CallbackRef to a copy of data.\n\n```go\nfunc (x *CallbackRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if CallbackRef does not comply with the OpenAPI spec.\n\n```go\ntype Callbacks map[string]*CallbackRef\n```\n\n```go\nfunc (m Callbacks) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (callbacks *Callbacks) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Callbacks to a copy of data.\n\n```go\ntype ComponentRef interface {\n\tRefString() string\n\tRefPath() *url.URL\n\tCollectionName() string\n}\n```\n\n```go\ntype Components struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tSchemas         Schemas         `json:\"schemas,omitempty\" yaml:\"schemas,omitempty\"`\n\tParameters      ParametersMap   `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n\tHeaders         Headers         `json:\"headers,omitempty\" yaml:\"headers,omitempty\"`\n\tRequestBodies   RequestBodies   `json:\"requestBodies,omitempty\" yaml:\"requestBodies,omitempty\"`\n\tResponses       ResponseBodies  `json:\"responses,omitempty\" yaml:\"responses,omitempty\"`\n\tSecuritySchemes SecuritySchemes `json:\"securitySchemes,omitempty\" yaml:\"securitySchemes,omitempty\"`\n\tExamples        Examples        `json:\"examples,omitempty\" yaml:\"examples,omitempty\"`\n\tLinks           Links           `json:\"links,omitempty\" yaml:\"links,omitempty\"`\n\tCallbacks       Callbacks       `json:\"callbacks,omitempty\" yaml:\"callbacks,omitempty\"`\n}\n```\nComponents is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#components-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#components-object)\n\n```go\nfunc NewComponents() Components\n```\n\n```go\nfunc (components Components) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Components.\n\n```go\nfunc (components Components) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Components.\n\n```go\nfunc (components *Components) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Components to a copy of data.\n\n```go\nfunc (components *Components) Validate(ctx context.Context, opts ...ValidationOption) (err error)\n```\nValidate returns an error if Components does not comply with the OpenAPI spec.\n\n```go\ntype Contact struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tName  string `json:\"name,omitempty\" yaml:\"name,omitempty\"`\n\tURL   string `json:\"url,omitempty\" yaml:\"url,omitempty\"`\n\tEmail string `json:\"email,omitempty\" yaml:\"email,omitempty\"`\n}\n```\nContact is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contact-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#contact-object)\n\n```go\nfunc (contact Contact) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Contact.\n\n```go\nfunc (contact Contact) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Contact.\n\n```go\nfunc (contact *Contact) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Contact to a copy of data.\n\n```go\nfunc (contact *Contact) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Contact does not comply with the OpenAPI spec.\n\n```go\ntype Content map[string]*MediaType\n```\nContent is specified by OpenAPI/Swagger 3.0 standard.\n\n```go\nfunc NewContent() Content\n```\n\n```go\nfunc NewContentWithFormDataSchema(schema *Schema) Content\n```\n\n```go\nfunc NewContentWithFormDataSchemaRef(schema *SchemaRef) Content\n```\n\n```go\nfunc NewContentWithJSONSchema(schema *Schema) Content\n```\n\n```go\nfunc NewContentWithJSONSchemaRef(schema *SchemaRef) Content\n```\n\n```go\nfunc NewContentWithSchema(schema *Schema, consumes []string) Content\n```\n\n```go\nfunc NewContentWithSchemaRef(schema *SchemaRef, consumes []string) Content\n```\n\n```go\nfunc (content Content) Get(mime string) *MediaType\n```\n\n```go\nfunc (content *Content) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Content to a copy of data.\n\n```go\nfunc (content Content) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Content does not comply with the OpenAPI spec.\n\n```go\ntype Discriminator struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tPropertyName string    `json:\"propertyName\" yaml:\"propertyName\"` // required\n\tMapping      StringMap `json:\"mapping,omitempty\" yaml:\"mapping,omitempty\"`\n}\n```\nDiscriminator is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminator-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#discriminator-object)\n\n```go\nfunc (discriminator Discriminator) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Discriminator.\n\n```go\nfunc (discriminator Discriminator) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Discriminator.\n\n```go\nfunc (discriminator *Discriminator) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Discriminator to a copy of data.\n\n```go\nfunc (discriminator *Discriminator) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Discriminator does not comply with the OpenAPI spec.\n\n```go\ntype Encoding struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tContentType   string  `json:\"contentType,omitempty\" yaml:\"contentType,omitempty\"`\n\tHeaders       Headers `json:\"headers,omitempty\" yaml:\"headers,omitempty\"`\n\tStyle         string  `json:\"style,omitempty\" yaml:\"style,omitempty\"`\n\tExplode       *bool   `json:\"explode,omitempty\" yaml:\"explode,omitempty\"`\n\tAllowReserved bool    `json:\"allowReserved,omitempty\" yaml:\"allowReserved,omitempty\"`\n}\n```\nEncoding is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#encoding-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#encoding-object)\n\n```go\nfunc NewEncoding() *Encoding\n```\n\n```go\nfunc (encoding Encoding) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Encoding.\n\n```go\nfunc (encoding Encoding) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Encoding.\n\n```go\nfunc (encoding *Encoding) SerializationMethod() *SerializationMethod\n```\nSerializationMethod returns a serialization method of request body. When serialization method is not defined the method returns the default serialization method.\n\n```go\nfunc (encoding *Encoding) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Encoding to a copy of data.\n\n```go\nfunc (encoding *Encoding) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Encoding does not comply with the OpenAPI spec.\n\n```go\nfunc (encoding *Encoding) WithHeader(name string, header *Header) *Encoding\n```\n\n```go\nfunc (encoding *Encoding) WithHeaderRef(name string, ref *HeaderRef) *Encoding\n```\n\n```go\ntype Example struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tSummary       string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription   string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tValue         any    `json:\"value,omitempty\" yaml:\"value,omitempty\"`\n\tExternalValue string `json:\"externalValue,omitempty\" yaml:\"externalValue,omitempty\"`\n}\n```\nExample is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#example-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#example-object)\n\n```go\nfunc NewExample(value any) *Example\n```\n\n```go\nfunc (example Example) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Example.\n\n```go\nfunc (example Example) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Example.\n\n```go\nfunc (example *Example) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Example to a copy of data.\n\n```go\nfunc (example *Example) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Example does not comply with the OpenAPI spec.\n\n```go\ntype ExampleRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Example\n\t// contains filtered or unexported fields\n}\n```\nExampleRef represents either a Example or a $ref to a Example. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *ExampleRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *ExampleRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x ExampleRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of ExampleRef.\n\n```go\nfunc (x ExampleRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of ExampleRef.\n\n```go\nfunc (x *ExampleRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *ExampleRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *ExampleRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets ExampleRef to a copy of data.\n\n```go\nfunc (x *ExampleRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if ExampleRef does not comply with the OpenAPI spec.\n\n```go\ntype Examples map[string]*ExampleRef\n```\n\n```go\nfunc (m Examples) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (examples *Examples) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Examples to a copy of data.\n\n```go\ntype ExternalDocs struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tDescription string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tURL         string `json:\"url,omitempty\" yaml:\"url,omitempty\"`\n}\n```\nExternalDocs is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#external-documentation-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#external-documentation-object)\n\n```go\nfunc (e ExternalDocs) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of ExternalDocs.\n\n```go\nfunc (e ExternalDocs) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of ExternalDocs.\n\n```go\nfunc (e *ExternalDocs) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets ExternalDocs to a copy of data.\n\n```go\nfunc (e *ExternalDocs) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if ExternalDocs does not comply with the OpenAPI spec.\n\n```go\ntype FormatValidator[T any] interface {\n\tValidate(value T) error\n}\n```\nFormatValidator is an interface for custom format validators.\n\n```go\nfunc NewCallbackValidator[T any](fn func(T) error) FormatValidator[T]\n```\nNewCallbackValidator creates a new FormatValidator that uses a callback function to validate the value.\n\n```go\nfunc NewIPValidator(isIPv4 bool) FormatValidator[string]\n```\nNewIPValidator creates a new FormatValidator that validates the value is an IP address.\n\n```go\nfunc NewRangeFormatValidator[T int64 | float64](min, max T) FormatValidator[T]\n```\nNewRangeFormatValidator creates a new FormatValidator that validates the value is within a given range.\n\n```go\ntype Header struct {\n\tParameter\n}\n```\nHeader is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#header-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#header-object)\n\n```go\nfunc (header Header) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (header Header) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Header.\n\n```go\nfunc (header Header) MarshalYAML() (any, error)\n```\nMarshalYAML returns the JSON encoding of Header.\n\n```go\nfunc (header *Header) SerializationMethod() (*SerializationMethod, error)\n```\nSerializationMethod returns a header's serialization method.\n\n```go\nfunc (header *Header) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Header to a copy of data.\n\n```go\nfunc (header *Header) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Header does not comply with the OpenAPI spec.\n\n```go\ntype HeaderRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Header\n\t// contains filtered or unexported fields\n}\n```\nHeaderRef represents either a Header or a $ref to a Header. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *HeaderRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *HeaderRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x HeaderRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of HeaderRef.\n\n```go\nfunc (x HeaderRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of HeaderRef.\n\n```go\nfunc (x *HeaderRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *HeaderRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *HeaderRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets HeaderRef to a copy of data.\n\n```go\nfunc (x *HeaderRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if HeaderRef does not comply with the OpenAPI spec.\n\n```go\ntype Headers map[string]*HeaderRef\n```\n\n```go\nfunc (m Headers) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (headers *Headers) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Headers to a copy of data.\n\n```go\ntype Info struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tTitle          string   `json:\"title\" yaml:\"title\"` // Required\n\tDescription    string   `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tTermsOfService string   `json:\"termsOfService,omitempty\" yaml:\"termsOfService,omitempty\"`\n\tContact        *Contact `json:\"contact,omitempty\" yaml:\"contact,omitempty\"`\n\tLicense        *License `json:\"license,omitempty\" yaml:\"license,omitempty\"`\n\tVersion        string   `json:\"version\" yaml:\"version\"` // Required\n}\n```\nInfo is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#info-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#info-object)\n\n```go\nfunc (info Info) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Info.\n\n```go\nfunc (info *Info) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Info.\n\n```go\nfunc (info *Info) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Info to a copy of data.\n\n```go\nfunc (info *Info) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Info does not comply with the OpenAPI spec.\n\n```go\ntype IntegerFormatValidator = FormatValidator[int64]\n```\nIntegerFormatValidator is a type alias for FormatValidator\\[int64]\n\n```go\ntype License struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tName string `json:\"name\" yaml:\"name\"` // Required\n\tURL  string `json:\"url,omitempty\" yaml:\"url,omitempty\"`\n}\n```\nLicense is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#license-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#license-object)\n\n```go\nfunc (license License) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of License.\n\n```go\nfunc (license License) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of License.\n\n```go\nfunc (license *License) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets License to a copy of data.\n\n```go\nfunc (license *License) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if License does not comply with the OpenAPI spec.\n\n```go\ntype Link struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tOperationRef string         `json:\"operationRef,omitempty\" yaml:\"operationRef,omitempty\"`\n\tOperationID  string         `json:\"operationId,omitempty\" yaml:\"operationId,omitempty\"`\n\tDescription  string         `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tParameters   map[string]any `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n\tServer       *Server        `json:\"server,omitempty\" yaml:\"server,omitempty\"`\n\tRequestBody  any            `json:\"requestBody,omitempty\" yaml:\"requestBody,omitempty\"`\n}\n```\nLink is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#link-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#link-object)\n\n```go\nfunc (link Link) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Link.\n\n```go\nfunc (link Link) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Link.\n\n```go\nfunc (link *Link) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Link to a copy of data.\n\n```go\nfunc (link *Link) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Link does not comply with the OpenAPI spec.\n\n```go\ntype LinkRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Link\n\t// contains filtered or unexported fields\n}\n```\nLinkRef represents either a Link or a $ref to a Link. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *LinkRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *LinkRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x LinkRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of LinkRef.\n\n```go\nfunc (x LinkRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of LinkRef.\n\n```go\nfunc (x *LinkRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *LinkRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *LinkRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets LinkRef to a copy of data.\n\n```go\nfunc (x *LinkRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if LinkRef does not comply with the OpenAPI spec.\n\n```go\ntype Links map[string]*LinkRef\n```\n\n```go\nfunc (m Links) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (links *Links) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Links to a copy of data.\n\n```go\ntype Loader struct {\n\t// IsExternalRefsAllowed enables visiting other files\n\tIsExternalRefsAllowed bool\n\n\t// IncludeOrigin specifies whether to include the origin of the OpenAPI elements\n\tIncludeOrigin bool\n\n\t// ReadFromURIFunc allows overriding the any file/URL reading func\n\tReadFromURIFunc ReadFromURIFunc\n\n\tContext context.Context\n\t// contains filtered or unexported fields\n}\n```\nLoader helps deserialize an OpenAPIv3 document\n\n```go\nfunc NewLoader() *Loader\n```\nNewLoader returns an empty Loader\n\n```go\nfunc (loader *Loader) LoadFromData(data []byte) (*T, error)\n```\nLoadFromData loads a spec from a byte array\n\n```go\nfunc (loader *Loader) LoadFromDataWithPath(data []byte, location *url.URL) (*T, error)\n```\nLoadFromDataWithPath takes the OpenAPI document data in bytes and a path where the resolver can find referred elements and returns a \\*T with all resolved data or an error if unable to load data or resolve refs.\n\n```go\nfunc (loader *Loader) LoadFromFile(location string) (*T, error)\n```\nLoadFromFile loads a spec from a local file path\n\n```go\nfunc (loader *Loader) LoadFromIoReader(reader io.Reader) (*T, error)\n```\nLoadFromStdin loads a spec from io.Reader\n\n```go\nfunc (loader *Loader) LoadFromStdin() (*T, error)\n```\nLoadFromStdin loads a spec from stdin\n\n```go\nfunc (loader *Loader) LoadFromURI(location *url.URL) (*T, error)\n```\nLoadFromURI loads a spec from a remote URL\n\n```go\nfunc (loader *Loader) ResolveRefsIn(doc *T, location *url.URL) (err error)\n```\nResolveRefsIn expands references if for instance spec was just unmarshaled\n\n```go\ntype Location struct {\n\tLine   int `json:\"line,omitempty\" yaml:\"line,omitempty\"`\n\tColumn int `json:\"column,omitempty\" yaml:\"column,omitempty\"`\n}\n```\nLocation is a struct that contains the location of a field.\n\n```go\ntype MediaType struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tSchema   *SchemaRef           `json:\"schema,omitempty\" yaml:\"schema,omitempty\"`\n\tExample  any                  `json:\"example,omitempty\" yaml:\"example,omitempty\"`\n\tExamples Examples             `json:\"examples,omitempty\" yaml:\"examples,omitempty\"`\n\tEncoding map[string]*Encoding `json:\"encoding,omitempty\" yaml:\"encoding,omitempty\"`\n}\n```\nMediaType is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#media-type-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#media-type-object)\n\n```go\nfunc NewMediaType() *MediaType\n```\n\n```go\nfunc (mediaType MediaType) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (mediaType MediaType) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of MediaType.\n\n```go\nfunc (mediaType MediaType) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of MediaType.\n\n```go\nfunc (mediaType *MediaType) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets MediaType to a copy of data.\n\n```go\nfunc (mediaType *MediaType) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if MediaType does not comply with the OpenAPI spec.\n\n```go\nfunc (mediaType *MediaType) WithEncoding(name string, enc *Encoding) *MediaType\n```\n\n```go\nfunc (mediaType *MediaType) WithExample(name string, value any) *MediaType\n```\n\n```go\nfunc (mediaType *MediaType) WithSchema(schema *Schema) *MediaType\n```\n\n```go\nfunc (mediaType *MediaType) WithSchemaRef(schema *SchemaRef) *MediaType\n```\n\n```go\ntype MultiError []error\n```\nMultiError is a collection of errors, intended for when multiple issues need to be reported upstream\n\n```go\nfunc (me MultiError) As(target any) bool\n```\nAs allows you to use \\`errors.As()\\` to set target to the first error within the multi error that matches the target type\n\n```go\nfunc (me MultiError) Error() string\n```\n\n```go\nfunc (me MultiError) Is(target error) bool\n```\nIs allows you to determine if a generic error is in fact a MultiError using \\`errors.Is()\\` It will also return true if any of the contained errors match target\n\n```go\ntype NewCallbackOption func(*Callback)\n```\nNewCallbackOption describes options to NewCallback func\n\n```go\nfunc WithCallback(cb string, pathItem *PathItem) NewCallbackOption\n```\nWithCallback adds Callback as an option to NewCallback\n\n```go\ntype NewPathsOption func(*Paths)\n```\nNewPathsOption describes options to NewPaths func\n\n```go\nfunc WithPath(path string, pathItem *PathItem) NewPathsOption\n```\nWithPath adds a named path item\n\n```go\ntype NewResponsesOption func(*Responses)\n```\nNewResponsesOption describes options to NewResponses func\n\n```go\nfunc WithName(name string, response *Response) NewResponsesOption\n```\nWithName adds a name-keyed Response\n\n```go\nfunc WithStatus(status int, responseRef *ResponseRef) NewResponsesOption\n```\nWithStatus adds a status code keyed ResponseRef\n\n```go\ntype NumberFormatValidator = FormatValidator[float64]\n```\nNumberFormatValidator is a type alias for FormatValidator\\[float64]\n\n```go\ntype OAuthFlow struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tAuthorizationURL string    `json:\"authorizationUrl,omitempty\" yaml:\"authorizationUrl,omitempty\"`\n\tTokenURL         string    `json:\"tokenUrl,omitempty\" yaml:\"tokenUrl,omitempty\"`\n\tRefreshURL       string    `json:\"refreshUrl,omitempty\" yaml:\"refreshUrl,omitempty\"`\n\tScopes           StringMap `json:\"scopes\" yaml:\"scopes\"` // required\n}\n```\nOAuthFlow is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauth-flow-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauth-flow-object)\n\n```go\nfunc (flow OAuthFlow) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of OAuthFlow.\n\n```go\nfunc (flow OAuthFlow) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of OAuthFlow.\n\n```go\nfunc (flow *OAuthFlow) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets OAuthFlow to a copy of data.\n\n```go\nfunc (flow *OAuthFlow) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if OAuthFlows does not comply with the OpenAPI spec.\n\n```go\ntype OAuthFlows struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tImplicit          *OAuthFlow `json:\"implicit,omitempty\" yaml:\"implicit,omitempty\"`\n\tPassword          *OAuthFlow `json:\"password,omitempty\" yaml:\"password,omitempty\"`\n\tClientCredentials *OAuthFlow `json:\"clientCredentials,omitempty\" yaml:\"clientCredentials,omitempty\"`\n\tAuthorizationCode *OAuthFlow `json:\"authorizationCode,omitempty\" yaml:\"authorizationCode,omitempty\"`\n}\n```\nOAuthFlows is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauth-flows-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#oauth-flows-object)\n\n```go\nfunc (flows OAuthFlows) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of OAuthFlows.\n\n```go\nfunc (flows OAuthFlows) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of OAuthFlows.\n\n```go\nfunc (flows *OAuthFlows) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets OAuthFlows to a copy of data.\n\n```go\nfunc (flows *OAuthFlows) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if OAuthFlows does not comply with the OpenAPI spec.\n\n```go\ntype Operation struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\t// Optional tags for documentation.\n\tTags []string `json:\"tags,omitempty\" yaml:\"tags,omitempty\"`\n\n\t// Optional short summary.\n\tSummary string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\n\t// Optional description. Should use CommonMark syntax.\n\tDescription string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\t// Optional operation ID.\n\tOperationID string `json:\"operationId,omitempty\" yaml:\"operationId,omitempty\"`\n\n\t// Optional parameters.\n\tParameters Parameters `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n\n\t// Optional body parameter.\n\tRequestBody *RequestBodyRef `json:\"requestBody,omitempty\" yaml:\"requestBody,omitempty\"`\n\n\t// Responses.\n\tResponses *Responses `json:\"responses\" yaml:\"responses\"` // Required\n\n\t// Optional callbacks\n\tCallbacks Callbacks `json:\"callbacks,omitempty\" yaml:\"callbacks,omitempty\"`\n\n\tDeprecated bool `json:\"deprecated,omitempty\" yaml:\"deprecated,omitempty\"`\n\n\t// Optional security requirements that overrides top-level security.\n\tSecurity *SecurityRequirements `json:\"security,omitempty\" yaml:\"security,omitempty\"`\n\n\t// Optional servers that overrides top-level servers.\n\tServers *Servers `json:\"servers,omitempty\" yaml:\"servers,omitempty\"`\n\n\tExternalDocs *ExternalDocs `json:\"externalDocs,omitempty\" yaml:\"externalDocs,omitempty\"`\n}\n```\nOperation represents \"operation\" specified by\" OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#operation-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#operation-object)\n\n```go\nfunc NewOperation() *Operation\n```\n\n```go\nfunc (operation *Operation) AddParameter(p *Parameter)\n```\n\n```go\nfunc (operation *Operation) AddResponse(status int, response *Response)\n```\n\n```go\nfunc (operation Operation) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (operation Operation) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Operation.\n\n```go\nfunc (operation Operation) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Operation.\n\n```go\nfunc (operation *Operation) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Operation to a copy of data.\n\n```go\nfunc (operation *Operation) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Operation does not comply with the OpenAPI spec.\n\n```go\ntype Origin struct {\n\tKey    *Location           `json:\"key,omitempty\" yaml:\"key,omitempty\"`\n\tFields map[string]Location `json:\"fields,omitempty\" yaml:\"fields,omitempty\"`\n}\n```\nOrigin contains the origin of a collection. Key is the location of the collection itself. Fields is a map of the location of each field in the collection.\n\n```go\ntype Parameter struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tName            string     `json:\"name,omitempty\" yaml:\"name,omitempty\"`\n\tIn              string     `json:\"in,omitempty\" yaml:\"in,omitempty\"`\n\tDescription     string     `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tStyle           string     `json:\"style,omitempty\" yaml:\"style,omitempty\"`\n\tExplode         *bool      `json:\"explode,omitempty\" yaml:\"explode,omitempty\"`\n\tAllowEmptyValue bool       `json:\"allowEmptyValue,omitempty\" yaml:\"allowEmptyValue,omitempty\"`\n\tAllowReserved   bool       `json:\"allowReserved,omitempty\" yaml:\"allowReserved,omitempty\"`\n\tDeprecated      bool       `json:\"deprecated,omitempty\" yaml:\"deprecated,omitempty\"`\n\tRequired        bool       `json:\"required,omitempty\" yaml:\"required,omitempty\"`\n\tSchema          *SchemaRef `json:\"schema,omitempty\" yaml:\"schema,omitempty\"`\n\tExample         any        `json:\"example,omitempty\" yaml:\"example,omitempty\"`\n\tExamples        Examples   `json:\"examples,omitempty\" yaml:\"examples,omitempty\"`\n\tContent         Content    `json:\"content,omitempty\" yaml:\"content,omitempty\"`\n}\n```\nParameter is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameter-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameter-object)\n\n```go\nfunc NewCookieParameter(name string) *Parameter\n```\n\n```go\nfunc NewHeaderParameter(name string) *Parameter\n```\n\n```go\nfunc NewPathParameter(name string) *Parameter\n```\n\n```go\nfunc NewQueryParameter(name string) *Parameter\n```\n\n```go\nfunc (parameter Parameter) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (parameter Parameter) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Parameter.\n\n```go\nfunc (parameter Parameter) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Parameter.\n\n```go\nfunc (parameter *Parameter) SerializationMethod() (*SerializationMethod, error)\n```\nSerializationMethod returns a parameter's serialization method. When a parameter's serialization method is not defined the method returns the default serialization method corresponding to a parameter's location.\n\n```go\nfunc (parameter *Parameter) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Parameter to a copy of data.\n\n```go\nfunc (parameter *Parameter) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Parameter does not comply with the OpenAPI spec.\n\n```go\nfunc (parameter *Parameter) WithDescription(value string) *Parameter\n```\n\n```go\nfunc (parameter *Parameter) WithRequired(value bool) *Parameter\n```\n\n```go\nfunc (parameter *Parameter) WithSchema(value *Schema) *Parameter\n```\n\n```go\ntype ParameterRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Parameter\n\t// contains filtered or unexported fields\n}\n```\nParameterRef represents either a Parameter or a $ref to a Parameter. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *ParameterRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *ParameterRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x ParameterRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of ParameterRef.\n\n```go\nfunc (x ParameterRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of ParameterRef.\n\n```go\nfunc (x *ParameterRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *ParameterRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *ParameterRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets ParameterRef to a copy of data.\n\n```go\nfunc (x *ParameterRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if ParameterRef does not comply with the OpenAPI spec.\n\n```go\ntype Parameters []*ParameterRef\n```\nParameters is specified by OpenAPI/Swagger 3.0 standard.\n\n```go\nfunc NewParameters() Parameters\n```\n\n```go\nfunc (parameters Parameters) GetByInAndName(in string, name string) *Parameter\n```\n\n```go\nfunc (p Parameters) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (parameters Parameters) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Parameters does not comply with the OpenAPI spec.\n\n```go\ntype ParametersMap map[string]*ParameterRef\n```\n\n```go\nfunc (m ParametersMap) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (parametersMap *ParametersMap) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets ParametersMap to a copy of data.\n\n```go\ntype PathItem struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tRef         string     `json:\"$ref,omitempty\" yaml:\"$ref,omitempty\"`\n\tSummary     string     `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription string     `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tConnect     *Operation `json:\"connect,omitempty\" yaml:\"connect,omitempty\"`\n\tDelete      *Operation `json:\"delete,omitempty\" yaml:\"delete,omitempty\"`\n\tGet         *Operation `json:\"get,omitempty\" yaml:\"get,omitempty\"`\n\tHead        *Operation `json:\"head,omitempty\" yaml:\"head,omitempty\"`\n\tOptions     *Operation `json:\"options,omitempty\" yaml:\"options,omitempty\"`\n\tPatch       *Operation `json:\"patch,omitempty\" yaml:\"patch,omitempty\"`\n\tPost        *Operation `json:\"post,omitempty\" yaml:\"post,omitempty\"`\n\tPut         *Operation `json:\"put,omitempty\" yaml:\"put,omitempty\"`\n\tTrace       *Operation `json:\"trace,omitempty\" yaml:\"trace,omitempty\"`\n\tServers     Servers    `json:\"servers,omitempty\" yaml:\"servers,omitempty\"`\n\tParameters  Parameters `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n}\n```\nPathItem is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#path-item-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#path-item-object)\n\n```go\nfunc (pathItem *PathItem) GetOperation(method string) *Operation\n```\n\n```go\nfunc (pathItem PathItem) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of PathItem.\n\n```go\nfunc (pathItem PathItem) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of PathItem.\n\n```go\nfunc (pathItem *PathItem) Operations() map[string]*Operation\n```\n\n```go\nfunc (pathItem *PathItem) SetOperation(method string, operation *Operation)\n```\n\n```go\nfunc (pathItem *PathItem) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets PathItem to a copy of data.\n\n```go\nfunc (pathItem *PathItem) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if PathItem does not comply with the OpenAPI spec.\n\n```go\ntype Paths struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nPaths is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#paths-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#paths-object)\n\n```go\nfunc NewPaths(opts ...NewPathsOption) *Paths\n```\nNewPaths builds a paths object with path items in insertion order.\n\n```go\nfunc NewPathsWithCapacity(cap int) *Paths\n```\nNewPathsWithCapacity builds a paths object of the given capacity.\n\n```go\nfunc (paths *Paths) Delete(key string)\n```\nDelete removes the entry associated with key 'key' from 'paths'.\n\n```go\nfunc (paths *Paths) Find(key string) *PathItem\n```\nFind returns a path that matches the key.\n\nThe method ignores differences in template variable names (except possible \"\\*\" suffix).\n\nFor example:\n\n\tpaths := openapi3.Paths {\n\t  \"/person/{personName}\": \u0026openapi3.PathItem{},\n\t}\n\tpathItem := path.Find(\"/person/{name}\")\n\nwould return the correct path item.\n\n```go\nfunc (paths *Paths) InMatchingOrder() []string\n```\nInMatchingOrder returns paths in the order they are matched against URLs. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#paths-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#paths-object) When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts.\n\n```go\nfunc (paths Paths) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://github.com/go-openapi/jsonpointer#JSONPointable](https://github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (paths *Paths) Len() int\n```\nLen returns the amount of keys in paths excluding paths.Extensions.\n\n```go\nfunc (paths *Paths) Map() (m map[string]*PathItem)\n```\nMap returns paths as a 'map'. Note: iteration on Go maps is not ordered.\n\n```go\nfunc (paths *Paths) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Paths.\n\n```go\nfunc (paths *Paths) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Paths.\n\n```go\nfunc (paths *Paths) Set(key string, value *PathItem)\n```\nSet adds or replaces key 'key' of 'paths' with 'value'. Note: 'paths' MUST be non-nil\n\n```go\nfunc (paths *Paths) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Paths to a copy of data.\n\n```go\nfunc (paths *Paths) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Paths does not comply with the OpenAPI spec.\n\n```go\nfunc (paths *Paths) Value(key string) *PathItem\n```\nValue returns the paths for key or nil\n\n```go\ntype ReadFromURIFunc func(loader *Loader, url *url.URL) ([]byte, error)\n```\nReadFromURIFunc defines a function which reads the contents of a resource located at a URI.\n\n```go\nfunc ReadFromHTTP(cl *http.Client) ReadFromURIFunc\n```\nReadFromHTTP returns a ReadFromURIFunc which uses the given http.Client to read the contents from a remote HTTP URI. This client may be customized to implement timeouts, RFC 7234 caching, etc.\n\n```go\nfunc ReadFromURIs(readers ...ReadFromURIFunc) ReadFromURIFunc\n```\nReadFromURIs returns a ReadFromURIFunc which tries to read a URI using the given reader functions, in the same order. If a reader function does not support the URI and returns ErrURINotSupported, the next function is checked until a match is found, or the URI is not supported by any.\n\n```go\nfunc URIMapCache(reader ReadFromURIFunc) ReadFromURIFunc\n```\nURIMapCache returns a ReadFromURIFunc that caches the contents read from URI locations in a simple map. This cache implementation is suitable for short-lived processes such as command-line tools which process OpenAPI documents.\n\n```go\ntype Ref struct {\n\tRef    string  `json:\"$ref\" yaml:\"$ref\"`\n\tOrigin *Origin `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n}\n```\nRef is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#reference-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#reference-object)\n\n```go\ntype RefNameResolver func(*T, ComponentRef) string\n```\nRefNameResolver maps a component to an name that is used as it's internalized name.\n\nThe function should avoid name collisions (i.e. be a injective mapping). It must only contain characters valid for fixed field names: [IdentifierRegExp](#IdentifierRegExp).\n\n```go\ntype RegexCompilerFunc func(expr string) (RegexMatcher, error)\n```\n\n```go\ntype RegexMatcher interface {\n\tMatchString(s string) bool\n}\n```\n\n```go\ntype RequestBodies map[string]*RequestBodyRef\n```\n\n```go\nfunc (m RequestBodies) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (requestBodies *RequestBodies) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets RequestBodies to a copy of data.\n\n```go\ntype RequestBody struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tDescription string  `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tRequired    bool    `json:\"required,omitempty\" yaml:\"required,omitempty\"`\n\tContent     Content `json:\"content\" yaml:\"content\"`\n}\n```\nRequestBody is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#request-body-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#request-body-object)\n\n```go\nfunc NewRequestBody() *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) GetMediaType(mediaType string) *MediaType\n```\n\n```go\nfunc (requestBody RequestBody) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of RequestBody.\n\n```go\nfunc (requestBody RequestBody) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of RequestBody.\n\n```go\nfunc (requestBody *RequestBody) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets RequestBody to a copy of data.\n\n```go\nfunc (requestBody *RequestBody) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if RequestBody does not comply with the OpenAPI spec.\n\n```go\nfunc (requestBody *RequestBody) WithContent(content Content) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithDescription(value string) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithFormDataSchema(value *Schema) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithFormDataSchemaRef(value *SchemaRef) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithJSONSchema(value *Schema) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithJSONSchemaRef(value *SchemaRef) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithRequired(value bool) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithSchema(value *Schema, consumes []string) *RequestBody\n```\n\n```go\nfunc (requestBody *RequestBody) WithSchemaRef(value *SchemaRef, consumes []string) *RequestBody\n```\n\n```go\ntype RequestBodyRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *RequestBody\n\t// contains filtered or unexported fields\n}\n```\nRequestBodyRef represents either a RequestBody or a $ref to a RequestBody. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *RequestBodyRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *RequestBodyRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x RequestBodyRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of RequestBodyRef.\n\n```go\nfunc (x RequestBodyRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of RequestBodyRef.\n\n```go\nfunc (x *RequestBodyRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *RequestBodyRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *RequestBodyRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets RequestBodyRef to a copy of data.\n\n```go\nfunc (x *RequestBodyRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if RequestBodyRef does not comply with the OpenAPI spec.\n\n```go\ntype Response struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tHeaders     Headers `json:\"headers,omitempty\" yaml:\"headers,omitempty\"`\n\tContent     Content `json:\"content,omitempty\" yaml:\"content,omitempty\"`\n\tLinks       Links   `json:\"links,omitempty\" yaml:\"links,omitempty\"`\n}\n```\nResponse is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#response-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#response-object)\n\n```go\nfunc NewResponse() *Response\n```\n\n```go\nfunc (response Response) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Response.\n\n```go\nfunc (response Response) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Response.\n\n```go\nfunc (response *Response) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Response to a copy of data.\n\n```go\nfunc (response *Response) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Response does not comply with the OpenAPI spec.\n\n```go\nfunc (response *Response) WithContent(content Content) *Response\n```\n\n```go\nfunc (response *Response) WithDescription(value string) *Response\n```\n\n```go\nfunc (response *Response) WithJSONSchema(schema *Schema) *Response\n```\n\n```go\nfunc (response *Response) WithJSONSchemaRef(schema *SchemaRef) *Response\n```\n\n```go\ntype ResponseBodies map[string]*ResponseRef\n```\n\n```go\nfunc (m ResponseBodies) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (responseBodies *ResponseBodies) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets ResponseBodies to a copy of data.\n\n```go\ntype ResponseRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Response\n\t// contains filtered or unexported fields\n}\n```\nResponseRef represents either a Response or a $ref to a Response. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *ResponseRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *ResponseRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x ResponseRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of ResponseRef.\n\n```go\nfunc (x ResponseRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of ResponseRef.\n\n```go\nfunc (x *ResponseRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *ResponseRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *ResponseRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets ResponseRef to a copy of data.\n\n```go\nfunc (x *ResponseRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if ResponseRef does not comply with the OpenAPI spec.\n\n```go\ntype Responses struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nResponses is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#responses-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#responses-object)\n\n```go\nfunc NewResponses(opts ...NewResponsesOption) *Responses\n```\nNewResponses builds a responses object with response objects in insertion order. Given no arguments, NewResponses returns a valid responses object containing a default match-all reponse.\n\n```go\nfunc NewResponsesWithCapacity(cap int) *Responses\n```\nNewResponsesWithCapacity builds a responses object of the given capacity.\n\n```go\nfunc (responses *Responses) Default() *ResponseRef\n```\nDefault returns the default response\n\n```go\nfunc (responses *Responses) Delete(key string)\n```\nDelete removes the entry associated with key 'key' from 'responses'.\n\n```go\nfunc (responses Responses) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://github.com/go-openapi/jsonpointer#JSONPointable](https://github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (responses *Responses) Len() int\n```\nLen returns the amount of keys in responses excluding responses.Extensions.\n\n```go\nfunc (responses *Responses) Map() (m map[string]*ResponseRef)\n```\nMap returns responses as a 'map'. Note: iteration on Go maps is not ordered.\n\n```go\nfunc (responses *Responses) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Responses.\n\n```go\nfunc (responses *Responses) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Responses.\n\n```go\nfunc (responses *Responses) Set(key string, value *ResponseRef)\n```\nSet adds or replaces key 'key' of 'responses' with 'value'. Note: 'responses' MUST be non-nil\n\n```go\nfunc (responses *Responses) Status(status int) *ResponseRef\n```\nStatus returns a ResponseRef for the given status If an exact match isn't initially found a patterned field is checked using the first digit to determine the range (eg: 201 to 2XX) See [https://spec.openapis.org/oas/v3.0.3#patterned-fields-0](https://spec.openapis.org/oas/v3.0.3#patterned-fields-0)\n\n```go\nfunc (responses *Responses) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Responses to a copy of data.\n\n```go\nfunc (responses *Responses) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Responses does not comply with the OpenAPI spec.\n\n```go\nfunc (responses *Responses) Value(key string) *ResponseRef\n```\nValue returns the responses for key or nil\n\n```go\ntype Schema struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tOneOf        SchemaRefs    `json:\"oneOf,omitempty\" yaml:\"oneOf,omitempty\"`\n\tAnyOf        SchemaRefs    `json:\"anyOf,omitempty\" yaml:\"anyOf,omitempty\"`\n\tAllOf        SchemaRefs    `json:\"allOf,omitempty\" yaml:\"allOf,omitempty\"`\n\tNot          *SchemaRef    `json:\"not,omitempty\" yaml:\"not,omitempty\"`\n\tType         *Types        `json:\"type,omitempty\" yaml:\"type,omitempty\"`\n\tTitle        string        `json:\"title,omitempty\" yaml:\"title,omitempty\"`\n\tFormat       null.String   `json:\"format,omitempty\" yaml:\"format,omitempty\"`\n\tDescription  string        `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tEnum         []any         `json:\"enum,omitempty\" yaml:\"enum,omitempty\"`\n\tDefault      any           `json:\"default,omitempty\" yaml:\"default,omitempty\"`\n\tExample      any           `json:\"example,omitempty\" yaml:\"example,omitempty\"`\n\tExternalDocs *ExternalDocs `json:\"externalDocs,omitempty\" yaml:\"externalDocs,omitempty\"`\n\n\t// Array-related, here for struct compactness\n\tUniqueItems null.Bool `json:\"uniqueItems,omitempty\" yaml:\"uniqueItems,omitempty\"`\n\t// Number-related, here for struct compactness\n\tExclusiveMin null.Bool `json:\"exclusiveMinimum,omitempty\" yaml:\"exclusiveMinimum,omitempty\"`\n\tExclusiveMax null.Bool `json:\"exclusiveMaximum,omitempty\" yaml:\"exclusiveMaximum,omitempty\"`\n\t// Properties\n\tNullable        null.Bool `json:\"nullable,omitempty\" yaml:\"nullable,omitempty\"`\n\tReadOnly        null.Bool `json:\"readOnly,omitempty\" yaml:\"readOnly,omitempty\"`\n\tWriteOnly       null.Bool `json:\"writeOnly,omitempty\" yaml:\"writeOnly,omitempty\"`\n\tAllowEmptyValue null.Bool `json:\"allowEmptyValue,omitempty\" yaml:\"allowEmptyValue,omitempty\"`\n\tDeprecated      bool      `json:\"deprecated,omitempty\" yaml:\"deprecated,omitempty\"`\n\tXML             *XML      `json:\"xml,omitempty\" yaml:\"xml,omitempty\"`\n\n\t// Number\n\tMin        *float64 `json:\"minimum,omitempty\" yaml:\"minimum,omitempty\"`\n\tMax        *float64 `json:\"maximum,omitempty\" yaml:\"maximum,omitempty\"`\n\tMultipleOf *float64 `json:\"multipleOf,omitempty\" yaml:\"multipleOf,omitempty\"`\n\n\t// String\n\tMinLength uint64  `json:\"minLength,omitempty\" yaml:\"minLength,omitempty\"`\n\tMaxLength *uint64 `json:\"maxLength,omitempty\" yaml:\"maxLength,omitempty\"`\n\tPattern   string  `json:\"pattern,omitempty\" yaml:\"pattern,omitempty\"`\n\n\t// Array\n\tMinItems uint64     `json:\"minItems,omitempty\" yaml:\"minItems,omitempty\"`\n\tMaxItems *uint64    `json:\"maxItems,omitempty\" yaml:\"maxItems,omitempty\"`\n\tItems    *SchemaRef `json:\"items,omitempty\" yaml:\"items,omitempty\"`\n\n\t// Object\n\tRequired             []string             `json:\"required,omitempty\" yaml:\"required,omitempty\"`\n\tProperties           Schemas              `json:\"properties,omitempty\" yaml:\"properties,omitempty\"`\n\tMinProps             uint64               `json:\"minProperties,omitempty\" yaml:\"minProperties,omitempty\"`\n\tMaxProps             *uint64              `json:\"maxProperties,omitempty\" yaml:\"maxProperties,omitempty\"`\n\tAdditionalProperties AdditionalProperties `json:\"additionalProperties,omitempty\" yaml:\"additionalProperties,omitempty\"`\n\tDiscriminator        *Discriminator       `json:\"discriminator,omitempty\" yaml:\"discriminator,omitempty\"`\n}\n```\nSchema is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schema-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#schema-object)\n\n```go\nfunc NewAllOfSchema(schemas ...*Schema) *Schema\n```\n\n```go\nfunc NewAnyOfSchema(schemas ...*Schema) *Schema\n```\n\n```go\nfunc NewArraySchema() *Schema\n```\n\n```go\nfunc NewBoolSchema() *Schema\n```\n\n```go\nfunc NewBytesSchema() *Schema\n```\n\n```go\nfunc NewDateTimeSchema() *Schema\n```\n\n```go\nfunc NewFloat64Schema() *Schema\n```\n\n```go\nfunc NewInt32Schema() *Schema\n```\n\n```go\nfunc NewInt64Schema() *Schema\n```\n\n```go\nfunc NewIntegerSchema() *Schema\n```\n\n```go\nfunc NewObjectSchema() *Schema\n```\n\n```go\nfunc NewOneOfSchema(schemas ...*Schema) *Schema\n```\n\n```go\nfunc NewSchema() *Schema\n```\n\n```go\nfunc NewStringSchema() *Schema\n```\n\n```go\nfunc NewUUIDSchema() *Schema\n```\n\n```go\nfunc (schema *Schema) IsEmpty() bool\n```\nIsEmpty tells whether schema is equivalent to the empty schema \\`{}\\`.\n\n```go\nfunc (schema *Schema) IsMatching(value any) bool\n```\n\n```go\nfunc (schema *Schema) IsMatchingJSONArray(value []any) bool\n```\n\n```go\nfunc (schema *Schema) IsMatchingJSONBoolean(value bool) bool\n```\n\n```go\nfunc (schema *Schema) IsMatchingJSONNumber(value float64) bool\n```\n\n```go\nfunc (schema *Schema) IsMatchingJSONObject(value map[string]any) bool\n```\n\n```go\nfunc (schema *Schema) IsMatchingJSONString(value string) bool\n```\n\n```go\nfunc (schema Schema) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (schema Schema) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Schema.\n\n```go\nfunc (schema Schema) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Schema.\n\n```go\nfunc (schema *Schema) NewRef() *SchemaRef\n```\n\n```go\nfunc (schema *Schema) PermitsNull() bool\n```\n\n```go\nfunc (schema *Schema) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Schema to a copy of data.\n\n```go\nfunc (schema *Schema) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Schema does not comply with the OpenAPI spec.\n\n```go\nfunc (schema *Schema) VisitJSON(value any, opts ...SchemaValidationOption) error\n```\n\n```go\nfunc (schema *Schema) VisitJSONArray(value []any) error\n```\n\n```go\nfunc (schema *Schema) VisitJSONBoolean(value bool) error\n```\n\n```go\nfunc (schema *Schema) VisitJSONNumber(value float64) error\n```\n\n```go\nfunc (schema *Schema) VisitJSONObject(value map[string]any) error\n```\n\n```go\nfunc (schema *Schema) VisitJSONString(value string) error\n```\n\n```go\nfunc (schema *Schema) WithAdditionalProperties(v *Schema) *Schema\n```\n\n```go\nfunc (schema *Schema) WithAnyAdditionalProperties() *Schema\n```\n\n```go\nfunc (schema *Schema) WithDefault(defaultValue any) *Schema\n```\n\n```go\nfunc (schema *Schema) WithEnum(values ...any) *Schema\n```\n\n```go\nfunc (schema *Schema) WithExclusiveMax(value bool) *Schema\n```\n\n```go\nfunc (schema *Schema) WithExclusiveMin(value bool) *Schema\n```\n\n```go\nfunc (schema *Schema) WithFormat(value string) *Schema\n```\n\n```go\nfunc (schema *Schema) WithItems(value *Schema) *Schema\n```\n\n```go\nfunc (schema *Schema) WithLength(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithLengthDecodedBase64(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMax(value float64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMaxItems(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMaxLength(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMaxLengthDecodedBase64(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMaxProperties(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMin(value float64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMinItems(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMinLength(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMinLengthDecodedBase64(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithMinProperties(i int64) *Schema\n```\n\n```go\nfunc (schema *Schema) WithNullable() *Schema\n```\n\n```go\nfunc (schema *Schema) WithPattern(pattern string) *Schema\n```\n\n```go\nfunc (schema *Schema) WithProperties(properties map[string]*Schema) *Schema\n```\n\n```go\nfunc (schema *Schema) WithProperty(name string, propertySchema *Schema) *Schema\n```\n\n```go\nfunc (schema *Schema) WithPropertyRef(name string, ref *SchemaRef) *Schema\n```\n\n```go\nfunc (schema *Schema) WithRequired(required []string) *Schema\n```\n\n```go\nfunc (schema *Schema) WithUniqueItems(unique bool) *Schema\n```\n\n```go\nfunc (schema *Schema) WithoutAdditionalProperties() *Schema\n```\n\n```go\ntype SchemaError struct {\n\t// Value is the value that failed validation.\n\tValue any\n\n\t// Schema is the schema that failed validation.\n\tSchema *Schema\n\t// SchemaField is the field of the schema that failed validation.\n\tSchemaField string\n\t// Reason is a human-readable message describing the error.\n\t// The message should never include the original value to prevent leakage of potentially sensitive inputs in error messages.\n\tReason string\n\t// Origin is the original error that caused this error.\n\tOrigin error\n\t// contains filtered or unexported fields\n}\n```\nSchemaError is an error that occurs during schema validation.\n\n```go\nfunc (err *SchemaError) Error() string\n```\n\n```go\nfunc (err *SchemaError) JSONPointer() []string\n```\n\n```go\nfunc (err SchemaError) Unwrap() error\n```\n\n```go\ntype SchemaRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *Schema\n\t// contains filtered or unexported fields\n}\n```\nSchemaRef represents either a Schema or a $ref to a Schema. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc NewSchemaRef(ref string, value *Schema) *SchemaRef\n```\nNewSchemaRef simply builds a SchemaRef\n\n```go\nfunc (x *SchemaRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *SchemaRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x SchemaRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of SchemaRef.\n\n```go\nfunc (x SchemaRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of SchemaRef.\n\n```go\nfunc (x *SchemaRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *SchemaRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *SchemaRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets SchemaRef to a copy of data.\n\n```go\nfunc (x *SchemaRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if SchemaRef does not comply with the OpenAPI spec.\n\n```go\ntype SchemaRefs []*SchemaRef\n```\n\n```go\nfunc (s SchemaRefs) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\ntype SchemaValidationOption func(*schemaValidationSettings)\n```\nSchemaValidationOption describes options a user has when validating request / response bodies.\n\n```go\nfunc DefaultsSet(f func()) SchemaValidationOption\n```\nDefaultsSet executes the given callback (once) IFF schema validation set default values.\n\n```go\nfunc DisablePatternValidation() SchemaValidationOption\n```\nDisablePatternValidation setting makes Validate not return an error when validating patterns that are not supported by the Go regexp engine.\n\n```go\nfunc DisableReadOnlyValidation() SchemaValidationOption\n```\nDisableReadOnlyValidation setting makes Validate not return an error when validating properties marked as read-only\n\n```go\nfunc DisableWriteOnlyValidation() SchemaValidationOption\n```\nDisableWriteOnlyValidation setting makes Validate not return an error when validating properties marked as write-only\n\n```go\nfunc EnableFormatValidation() SchemaValidationOption\n```\nEnableFormatValidation setting makes Validate not return an error when validating documents that mention schema formats that are not defined by the OpenAPIv3 specification.\n\n```go\nfunc FailFast() SchemaValidationOption\n```\nFailFast returns schema validation errors quicker.\n\n```go\nfunc MultiErrors() SchemaValidationOption\n```\n\n```go\nfunc SetSchemaErrorMessageCustomizer(f func(err *SchemaError) string) SchemaValidationOption\n```\nSetSchemaErrorMessageCustomizer allows to override the schema error message. If the passed function returns an empty string, it returns to the previous Error() implementation.\n\n```go\nfunc SetSchemaRegexCompiler(c RegexCompilerFunc) SchemaValidationOption\n```\nSetSchemaRegexCompiler allows to override the regex implementation used to validate field \"pattern\".\n\n```go\nfunc VisitAsRequest() SchemaValidationOption\n```\n\n```go\nfunc VisitAsResponse() SchemaValidationOption\n```\n\n```go\ntype Schemas map[string]*SchemaRef\n```\n\n```go\nfunc (m Schemas) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (schemas *Schemas) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets Schemas to a copy of data.\n\n```go\ntype SecurityRequirement map[string][]string\n```\nSecurityRequirement is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-requirement-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-requirement-object)\n\n```go\nfunc NewSecurityRequirement() SecurityRequirement\n```\n\n```go\nfunc (security SecurityRequirement) Authenticate(provider string, scopes ...string) SecurityRequirement\n```\n\n```go\nfunc (security *SecurityRequirement) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets SecurityRequirement to a copy of data.\n\n```go\nfunc (security *SecurityRequirement) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if SecurityRequirement does not comply with the OpenAPI spec.\n\n```go\ntype SecurityRequirements []SecurityRequirement\n```\n\n```go\nfunc NewSecurityRequirements() *SecurityRequirements\n```\n\n```go\nfunc (srs SecurityRequirements) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if SecurityRequirements does not comply with the OpenAPI spec.\n\n```go\nfunc (srs *SecurityRequirements) With(securityRequirement SecurityRequirement) *SecurityRequirements\n```\n\n```go\ntype SecurityScheme struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tType             string      `json:\"type,omitempty\" yaml:\"type,omitempty\"`\n\tDescription      string      `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tName             string      `json:\"name,omitempty\" yaml:\"name,omitempty\"`\n\tIn               string      `json:\"in,omitempty\" yaml:\"in,omitempty\"`\n\tScheme           string      `json:\"scheme,omitempty\" yaml:\"scheme,omitempty\"`\n\tBearerFormat     string      `json:\"bearerFormat,omitempty\" yaml:\"bearerFormat,omitempty\"`\n\tFlows            *OAuthFlows `json:\"flows,omitempty\" yaml:\"flows,omitempty\"`\n\tOpenIdConnectUrl string      `json:\"openIdConnectUrl,omitempty\" yaml:\"openIdConnectUrl,omitempty\"`\n}\n```\nSecurityScheme is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-scheme-object)\n\n```go\nfunc NewCSRFSecurityScheme() *SecurityScheme\n```\n\n```go\nfunc NewJWTSecurityScheme() *SecurityScheme\n```\n\n```go\nfunc NewOIDCSecurityScheme(oidcUrl string) *SecurityScheme\n```\n\n```go\nfunc NewSecurityScheme() *SecurityScheme\n```\n\n```go\nfunc (ss SecurityScheme) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of SecurityScheme.\n\n```go\nfunc (ss SecurityScheme) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of SecurityScheme.\n\n```go\nfunc (ss *SecurityScheme) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets SecurityScheme to a copy of data.\n\n```go\nfunc (ss *SecurityScheme) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if SecurityScheme does not comply with the OpenAPI spec.\n\n```go\nfunc (ss *SecurityScheme) WithBearerFormat(value string) *SecurityScheme\n```\n\n```go\nfunc (ss *SecurityScheme) WithDescription(value string) *SecurityScheme\n```\n\n```go\nfunc (ss *SecurityScheme) WithIn(value string) *SecurityScheme\n```\n\n```go\nfunc (ss *SecurityScheme) WithName(value string) *SecurityScheme\n```\n\n```go\nfunc (ss *SecurityScheme) WithScheme(value string) *SecurityScheme\n```\n\n```go\nfunc (ss *SecurityScheme) WithType(value string) *SecurityScheme\n```\n\n```go\ntype SecuritySchemeRef struct {\n\t// Extensions only captures fields starting with 'x-' as no other fields\n\t// are allowed by the openapi spec.\n\tExtensions map[string]any\n\tOrigin     *Origin\n\n\tRef   string\n\tValue *SecurityScheme\n\t// contains filtered or unexported fields\n}\n```\nSecuritySchemeRef represents either a SecurityScheme or a $ref to a SecurityScheme. When serializing and both fields are set, Ref is preferred over Value.\n\n```go\nfunc (x *SecuritySchemeRef) CollectionName() string\n```\nCollectionName returns the JSON string used for a collection of these components.\n\n```go\nfunc (x *SecuritySchemeRef) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (x SecuritySchemeRef) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of SecuritySchemeRef.\n\n```go\nfunc (x SecuritySchemeRef) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of SecuritySchemeRef.\n\n```go\nfunc (x *SecuritySchemeRef) RefPath() *url.URL\n```\nRefPath returns the path of the $ref relative to the root document.\n\n```go\nfunc (x *SecuritySchemeRef) RefString() string\n```\nRefString returns the $ref value.\n\n```go\nfunc (x *SecuritySchemeRef) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets SecuritySchemeRef to a copy of data.\n\n```go\nfunc (x *SecuritySchemeRef) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if SecuritySchemeRef does not comply with the OpenAPI spec.\n\n```go\ntype SecuritySchemes map[string]*SecuritySchemeRef\n```\n\n```go\nfunc (m SecuritySchemes) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (securitySchemes *SecuritySchemes) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets SecuritySchemes to a copy of data.\n\n```go\ntype SerializationMethod struct {\n\tStyle   string\n\tExplode bool\n}\n```\nSerializationMethod describes a serialization method of HTTP request's parameters and body.\n\n```go\ntype Server struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tURL         string                     `json:\"url\" yaml:\"url\"` // Required\n\tDescription string                     `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tVariables   map[string]*ServerVariable `json:\"variables,omitempty\" yaml:\"variables,omitempty\"`\n}\n```\nServer is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-object)\n\n```go\nfunc (server *Server) BasePath() (string, error)\n```\nBasePath returns the base path extracted from the default values of variables, if any. Assumes a valid struct (per Validate()).\n\n```go\nfunc (server Server) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Server.\n\n```go\nfunc (server Server) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Server.\n\n```go\nfunc (server Server) MatchRawURL(input string) ([]string, string, bool)\n```\n\n```go\nfunc (server Server) ParameterNames() ([]string, error)\n```\n\n```go\nfunc (server *Server) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Server to a copy of data.\n\n```go\nfunc (server *Server) Validate(ctx context.Context, opts ...ValidationOption) (err error)\n```\nValidate returns an error if Server does not comply with the OpenAPI spec.\n\n```go\ntype ServerVariable struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tEnum        []string `json:\"enum,omitempty\" yaml:\"enum,omitempty\"`\n\tDefault     string   `json:\"default,omitempty\" yaml:\"default,omitempty\"`\n\tDescription string   `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n}\n```\nServerVariable is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-variable-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#server-variable-object)\n\n```go\nfunc (serverVariable ServerVariable) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of ServerVariable.\n\n```go\nfunc (serverVariable ServerVariable) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of ServerVariable.\n\n```go\nfunc (serverVariable *ServerVariable) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets ServerVariable to a copy of data.\n\n```go\nfunc (serverVariable *ServerVariable) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if ServerVariable does not comply with the OpenAPI spec.\n\n```go\ntype Servers []*Server\n```\nServers is specified by OpenAPI/Swagger standard version 3.\n\n```go\nfunc (servers Servers) BasePath() (string, error)\n```\nBasePath returns the base path of the first server in the list, or /.\n\n```go\nfunc (servers Servers) MatchURL(parsedURL *url.URL) (*Server, []string, string)\n```\n\n```go\nfunc (servers Servers) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Servers does not comply with the OpenAPI spec.\n\n```go\ntype SliceUniqueItemsChecker func(items []any) bool\n```\nSliceUniqueItemsChecker is an function used to check if an given slice have unique items.\n\n```go\ntype StringFormatValidator = FormatValidator[string]\n```\nStringFormatValidator is a type alias for FormatValidator\\[string]\n\n```go\nfunc NewRegexpFormatValidator(pattern string) StringFormatValidator\n```\nNewRegexpFormatValidator creates a new FormatValidator that uses a regular expression to validate the value.\n\n```go\ntype StringMap map[string]string\n```\nStringMap is a map\\[string]string that ignores the origin in the underlying json representation.\n\n```go\nfunc (stringMap *StringMap) UnmarshalJSON(data []byte) (err error)\n```\nUnmarshalJSON sets StringMap to a copy of data.\n\n```go\ntype T struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\n\tOpenAPI      string               `json:\"openapi\" yaml:\"openapi\"` // Required\n\tComponents   *Components          `json:\"components,omitempty\" yaml:\"components,omitempty\"`\n\tInfo         *Info                `json:\"info\" yaml:\"info\"`   // Required\n\tPaths        *Paths               `json:\"paths\" yaml:\"paths\"` // Required\n\tSecurity     SecurityRequirements `json:\"security,omitempty\" yaml:\"security,omitempty\"`\n\tServers      Servers              `json:\"servers,omitempty\" yaml:\"servers,omitempty\"`\n\tTags         Tags                 `json:\"tags,omitempty\" yaml:\"tags,omitempty\"`\n\tExternalDocs *ExternalDocs        `json:\"externalDocs,omitempty\" yaml:\"externalDocs,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nT is the root of an OpenAPI v3 document See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#openapi-object)\n\n```go\nfunc (doc *T) AddOperation(path string, method string, operation *Operation)\n```\n\n```go\nfunc (doc *T) AddServer(server *Server)\n```\n\n```go\nfunc (doc *T) AddServers(servers ...*Server)\n```\n\n```go\nfunc (doc *T) InternalizeRefs(ctx context.Context, refNameResolver func(*T, ComponentRef) string)\n```\nInternalizeRefs removes all references to external files from the spec and moves them to the components section.\n\nrefNameResolver takes in references to returns a name to store the reference under locally. It MUST return a unique name for each reference type. A default implementation is provided that will suffice for most use cases. See the function documentation for more details.\n\nExample:\n\n\tdoc.InternalizeRefs(context.Background(), nil)\n\n```go\nfunc (doc *T) JSONLookup(token string) (any, error)\n```\nJSONLookup implements [https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable](https://pkg.go.dev/github.com/go-openapi/jsonpointer#JSONPointable)\n\n```go\nfunc (doc *T) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of T.\n\n```go\nfunc (doc *T) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of T.\n\n```go\nfunc (doc *T) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets T to a copy of data.\n\n```go\nfunc (doc *T) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if T does not comply with the OpenAPI spec. Validations Options can be provided to modify the validation behavior.\n\n```go\ntype Tag struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tName         string        `json:\"name,omitempty\" yaml:\"name,omitempty\"`\n\tDescription  string        `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tExternalDocs *ExternalDocs `json:\"externalDocs,omitempty\" yaml:\"externalDocs,omitempty\"`\n}\n```\nTag is specified by OpenAPI/Swagger 3.0 standard. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#tag-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#tag-object)\n\n```go\nfunc (t Tag) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of Tag.\n\n```go\nfunc (t Tag) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of Tag.\n\n```go\nfunc (t *Tag) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets Tag to a copy of data.\n\n```go\nfunc (t *Tag) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Tag does not comply with the OpenAPI spec.\n\n```go\ntype Tags []*Tag\n```\nTags is specified by OpenAPI/Swagger 3.0 standard.\n\n```go\nfunc (tags Tags) Get(name string) *Tag\n```\n\n```go\nfunc (tags Tags) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if Tags does not comply with the OpenAPI spec.\n\n```go\ntype Types []string\n```\n\n```go\nfunc (pTypes *Types) Includes(typ string) bool\n```\n\n```go\nfunc (types *Types) Is(typ string) bool\n```\n\n```go\nfunc (pTypes *Types) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (pTypes *Types) MarshalYAML() (any, error)\n```\n\n```go\nfunc (types *Types) Permits(typ string) bool\n```\n\n```go\nfunc (types *Types) Slice() []string\n```\n\n```go\nfunc (types *Types) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ValidationOption func(options *ValidationOptions)\n```\nValidationOption allows the modification of how the OpenAPI document is validated.\n\n```go\nfunc AllowExtensionsWithRef() ValidationOption\n```\nAllowExtensionsWithRef allows extensions (fields starting with 'x-') as siblings for $ref fields. This is the default. Non-extension fields are prohibited unless allowed explicitly with the AllowExtraSiblingFields option.\n\n```go\nfunc AllowExtraSiblingFields(fields ...string) ValidationOption\n```\nAllowExtraSiblingFields called as AllowExtraSiblingFields(\"description\") makes Validate not return an error when said field appears next to a $ref.\n\n```go\nfunc DisableExamplesValidation() ValidationOption\n```\nDisableExamplesValidation disables all example schema validation. By default, all schema examples are validated.\n\n```go\nfunc DisableSchemaDefaultsValidation() ValidationOption\n```\nDisableSchemaDefaultsValidation disables schemas' default field validation. By default, schema default values are validated against their schema.\n\n```go\nfunc DisableSchemaFormatValidation() ValidationOption\n```\nDisableSchemaFormatValidation does the opposite of EnableSchemaFormatValidation. By default, schema format validation is disabled.\n\n```go\nfunc DisableSchemaPatternValidation() ValidationOption\n```\nDisableSchemaPatternValidation makes Validate not return an error when validating patterns that are not supported by the Go regexp engine.\n\n```go\nfunc EnableExamplesValidation() ValidationOption\n```\nEnableExamplesValidation does the opposite of DisableExamplesValidation. By default, all schema examples are validated.\n\n```go\nfunc EnableSchemaDefaultsValidation() ValidationOption\n```\nEnableSchemaDefaultsValidation does the opposite of DisableSchemaDefaultsValidation. By default, schema default values are validated against their schema.\n\n```go\nfunc EnableSchemaFormatValidation() ValidationOption\n```\nEnableSchemaFormatValidation makes Validate not return an error when validating documents that mention schema formats that are not defined by the OpenAPIv3 specification. By default, schema format validation is disabled.\n\n```go\nfunc EnableSchemaPatternValidation() ValidationOption\n```\nEnableSchemaPatternValidation does the opposite of DisableSchemaPatternValidation. By default, schema pattern validation is enabled.\n\n```go\nfunc ProhibitExtensionsWithRef() ValidationOption\n```\nProhibitExtensionsWithRef causes the validation to return an error if extensions (fields starting with 'x-') are found as siblings for $ref fields. Non-extension fields are prohibited unless allowed explicitly with the AllowExtraSiblingFields option.\n\n```go\nfunc SetRegexCompiler(c RegexCompilerFunc) ValidationOption\n```\nSetRegexCompiler allows to override the regex implementation used to validate field \"pattern\".\n\n```go\ntype ValidationOptions struct {\n\t// contains filtered or unexported fields\n}\n```\nValidationOptions provides configuration for validating OpenAPI documents.\n\n```go\ntype XML struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"origin,omitempty\" yaml:\"origin,omitempty\"`\n\n\tName      string `json:\"name,omitempty\" yaml:\"name,omitempty\"`\n\tNamespace string `json:\"namespace,omitempty\" yaml:\"namespace,omitempty\"`\n\tPrefix    string `json:\"prefix,omitempty\" yaml:\"prefix,omitempty\"`\n\tAttribute bool   `json:\"attribute,omitempty\" yaml:\"attribute,omitempty\"`\n\tWrapped   bool   `json:\"wrapped,omitempty\" yaml:\"wrapped,omitempty\"`\n}\n```\nXML is specified by OpenAPI/Swagger standard version 3. See [https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#xml-object](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#xml-object)\n\n```go\nfunc (xml XML) MarshalJSON() ([]byte, error)\n```\nMarshalJSON returns the JSON encoding of XML.\n\n```go\nfunc (xml XML) MarshalYAML() (any, error)\n```\nMarshalYAML returns the YAML encoding of XML.\n\n```go\nfunc (xml *XML) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON sets XML to a copy of data.\n\n```go\nfunc (xml *XML) Validate(ctx context.Context, opts ...ValidationOption) error\n```\nValidate returns an error if XML does not comply with the OpenAPI spec.\n\n","path":"github.com/d3code/kin-openapi/openapi3","name":"openapi3","synopsis":"Package openapi3 parses and writes OpenAPI 3 specification documents.","isRedistributable":true}
