{"modulePath":"github.com/ifc7/oapi-codegen","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package model\n\n## Constants\n\n```go\nconst (\n\tParameterInPath   = \"path\"\n\tParameterInQuery  = \"query\"\n\tParameterInHeader = \"header\"\n\tParameterInCookie = \"cookie\"\n)\n```\nWhere a parameter lives.\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```\nJSON Schema type names, matching kin-openapi's constants.\n\n```go\nconst MethodQuery = \"QUERY\"\n```\nMethodQuery is the HTTP QUERY method, a fixed Path Item field in OpenAPI 3.2.\n\n## Types\n\n```go\ntype AdditionalProperties = BoolSchema\n```\nAdditionalProperties is a BoolSchema. The name matches kin-openapi.\n\n```go\ntype BoolSchema struct {\n\tHas    *bool\n\tSchema *SchemaRef\n}\n```\nBoolSchema is a keyword that is either a boolean or a schema, used for additionalProperties, unevaluatedProperties and unevaluatedItems.\n\n```go\ntype Callback struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nCallback is an OpenAPI Callback Object, mapping an expression to a path item.\n\n```go\nfunc NewCallback() *Callback\n```\nNewCallback builds an empty Callback.\n\n```go\nfunc (callback *Callback) Delete(key string)\n```\nDelete removes key. A nil receiver is a no-op.\n\n```go\nfunc (callback *Callback) Keys() []string\n```\nKeys returns the callback expression keys, sorted.\n\n```go\nfunc (callback *Callback) Len() int\n```\nLen returns the number of callback entries, not counting extensions.\n\n```go\nfunc (callback *Callback) Map() map[string]*PathItem\n```\nMap returns a copy of the callback entries. The copy is empty, never nil, when callback is nil or has no entries.\n\n```go\nfunc (callback *Callback) Set(key string, value *PathItem)\n```\nSet adds or replaces key. callback must be non-nil.\n\n```go\nfunc (callback *Callback) Value(key string) *PathItem\n```\nValue returns the path item for key, or nil.\n\n```go\ntype CallbackRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *Callback\n}\n```\nCallbackRef is a callback or a $ref to one.\n\n```go\ntype Callbacks map[string]*CallbackRef\n```\nCallbacks are named callbacks, on an operation or in components.\n\n```go\ntype Components struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Components Object.\n\n```go\ntype Content map[string]*MediaType\n```\nContent maps a media type to its contents.\n\n```go\ntype Discriminator struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tPropertyName string                `json:\"propertyName\" yaml:\"propertyName\"`\n\tMapping      map[string]MappingRef `json:\"mapping,omitempty\" yaml:\"mapping,omitempty\"`\n}\n```\nDiscriminator is an OpenAPI Discriminator Object.\n\n```go\ntype Document struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tOpenAPI      string               `json:\"openapi\" yaml:\"openapi\"`\n\tComponents   *Components          `json:\"components,omitempty\" yaml:\"components,omitempty\"`\n\tInfo         *Info                `json:\"info\" yaml:\"info\"`\n\tPaths        *Paths               `json:\"paths\" yaml:\"paths\"`\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\tWebhooks     map[string]*PathItem `json:\"webhooks,omitempty\" yaml:\"webhooks,omitempty\"` // OpenAPI \u003e=3.1\n}\n```\nDocument is the root of an OpenAPI 3 document. Kin-openapi calls this T.\n\n```go\nfunc (doc *Document) IsOpenAPI31OrLater() bool\n```\nIsOpenAPI31OrLater reports whether the document is OpenAPI 3.1 or 3.2. Only the version strings kin-openapi recognizes count: a patch it does not list, such as \"3.1.3\", is not.\n\n```go\nfunc (doc *Document) OpenAPIMajorMinor() string\n```\nOpenAPIMajorMinor returns the \"3.y\" of an OpenAPI version string kin recognizes, or \"\" for a nil document and for any string it does not.\n\n```go\ntype Encoding struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Encoding Object.\n\n```go\ntype Encodings map[string]*Encoding\n```\nEncodings maps a property name to how that property is encoded.\n\n```go\ntype Example struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Example Object. Present so a reference can resolve; the generator does not read its fields.\n\n```go\ntype ExampleRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *Example\n}\n```\nExampleRef is an example or a $ref to one. The generator tracks the reference; it does not read the example value.\n\n```go\ntype Examples map[string]*ExampleRef\n```\nExamples are named example components.\n\n```go\ntype ExclusiveBound struct {\n\tBool  *bool\n\tValue *float64\n}\n```\nExclusiveBound is exclusiveMinimum or exclusiveMaximum. OpenAPI 3.0 stores a boolean in Bool; OpenAPI 3.1 stores the bound in Value.\n\n```go\ntype ExternalDocs struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tDescription string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tURL         string `json:\"url,omitempty\" yaml:\"url,omitempty\"`\n}\n```\nExternalDocs is an OpenAPI External Documentation Object.\n\n```go\ntype FieldLocations []Location\n```\nFieldLocations holds the locations of a collection's scalar fields, in document order. It is a slice rather than a map, matching kin-openapi: each Location already carries its Name.\n\n```go\nfunc (f FieldLocations) Get(name string) Location\n```\nGet returns the location of the named field, or the zero Location when the field has none. Use Lookup to tell an absent field from a zero location.\n\n```go\nfunc (f FieldLocations) Lookup(name string) (Location, bool)\n```\nLookup returns the location of the named field and whether it was found.\n\n```go\ntype Header struct {\n\tParameter\n}\n```\nHeader is an OpenAPI Header Object. It is a parameter without name or in.\n\n```go\ntype HeaderRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *Header\n}\n```\nHeaderRef is a header or a $ref to one.\n\n```go\ntype Headers map[string]*HeaderRef\n```\nHeaders are named headers, on a response, encoding or in components.\n\n```go\ntype Info struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tTitle       string `json:\"title\" yaml:\"title\"`\n\tSummary     string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"` // OpenAPI \u003e=3.1\n\tDescription string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tVersion     string `json:\"version\" yaml:\"version\"`\n}\n```\nInfo is an OpenAPI Info Object. Contact, license and terms of service are omitted: the generator does not read them.\n\n```go\ntype Link struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Link Object. Present so a reference can resolve; the generator does not read its fields.\n\n```go\ntype LinkRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *Link\n}\n```\nLinkRef is a link or a $ref to one. The generator tracks the reference; it does not read the link.\n\n```go\ntype Links map[string]*LinkRef\n```\nLinks are named link components.\n\n```go\ntype Location struct {\n\tFile   string `json:\"file,omitempty\" yaml:\"file,omitempty\"`\n\tLine   int    `json:\"line,omitempty\" yaml:\"line,omitempty\"`\n\tColumn int    `json:\"column,omitempty\" yaml:\"column,omitempty\"`\n\tName   string `json:\"name,omitempty\" yaml:\"name,omitempty\"`\n\n\t// EndLine and EndColumn mark the end of the block this location heads\n\t// (set only on Origin.Key). Both are zero when the source carried no end.\n\tEndLine   int `json:\"endLine,omitempty\" yaml:\"endLine,omitempty\"`\n\tEndColumn int `json:\"endColumn,omitempty\" yaml:\"endColumn,omitempty\"`\n}\n```\nLocation is the source position of a field.\n\n```go\ntype MappingRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tRef   string\n\tValue *Schema\n}\n```\nMappingRef is one discriminator mapping value. Kin serializes it as a plain string; the generator reads Ref.\n\n```go\ntype MediaType struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tSchema     *SchemaRef `json:\"schema,omitempty\" yaml:\"schema,omitempty\"`\n\tItemSchema *SchemaRef `json:\"itemSchema,omitempty\" yaml:\"itemSchema,omitempty\"` // OpenAPI \u003e=3.2\n\tExample    any        `json:\"example,omitempty\" yaml:\"example,omitempty\"`\n\tExamples   Examples   `json:\"examples,omitempty\" yaml:\"examples,omitempty\"`\n\tEncoding   Encodings  `json:\"encoding,omitempty\" yaml:\"encoding,omitempty\"`\n}\n```\nMediaType is an OpenAPI Media Type Object.\n\n```go\ntype Operation struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tTags         []string              `json:\"tags,omitempty\" yaml:\"tags,omitempty\"`\n\tSummary      string                `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription  string                `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tOperationID  string                `json:\"operationId,omitempty\" yaml:\"operationId,omitempty\"`\n\tParameters   Parameters            `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n\tRequestBody  *RequestBodyRef       `json:\"requestBody,omitempty\" yaml:\"requestBody,omitempty\"`\n\tResponses    *Responses            `json:\"responses\" yaml:\"responses\"`\n\tCallbacks    Callbacks             `json:\"callbacks,omitempty\" yaml:\"callbacks,omitempty\"`\n\tDeprecated   bool                  `json:\"deprecated,omitempty\" yaml:\"deprecated,omitempty\"`\n\tSecurity     *SecurityRequirements `json:\"security,omitempty\" yaml:\"security,omitempty\"`\n\tServers      *Servers              `json:\"servers,omitempty\" yaml:\"servers,omitempty\"`\n\tExternalDocs *ExternalDocs         `json:\"externalDocs,omitempty\" yaml:\"externalDocs,omitempty\"`\n}\n```\nOperation is an OpenAPI Operation Object.\n\n```go\ntype Origin struct {\n\tKey       *Location             `json:\"key,omitempty\" yaml:\"key,omitempty\"`\n\tFields    FieldLocations        `json:\"fields,omitempty\" yaml:\"fields,omitempty\"`\n\tSequences map[string][]Location `json:\"sequences,omitempty\" yaml:\"sequences,omitempty\"`\n}\n```\nOrigin is where a collection was written in its source document. Key is the collection itself. Fields holds each scalar field. Sequences holds each item of a sequence-valued field, keyed by the field name.\n\nThe shape matches kin-openapi's Origin, including source positions the generator reads (route order uses Key.Line).\n\n```go\ntype Parameter struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Parameter Object.\n\n```go\ntype ParameterRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *Parameter\n}\n```\nParameterRef is a parameter or a $ref to one.\n\n```go\ntype Parameters []*ParameterRef\n```\nParameters is an operation or path item's parameter list.\n\n```go\ntype ParametersMap map[string]*ParameterRef\n```\nParametersMap is the components' named parameters.\n\n```go\ntype PathItem struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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\tQuery       *Operation `json:\"query,omitempty\" yaml:\"query,omitempty\"` // OpenAPI \u003e=3.2\n\tServers     Servers    `json:\"servers,omitempty\" yaml:\"servers,omitempty\"`\n\tParameters  Parameters `json:\"parameters,omitempty\" yaml:\"parameters,omitempty\"`\n\n\t// AdditionalOperations maps custom HTTP methods to operations (OpenAPI 3.2).\n\t// Keys must not repeat the methods that have their own fields above.\n\tAdditionalOperations map[string]*Operation `json:\"additionalOperations,omitempty\" yaml:\"additionalOperations,omitempty\"`\n}\n```\nPathItem is an OpenAPI Path Item Object.\n\n```go\nfunc (pathItem *PathItem) GetOperation(method string) *Operation\n```\nGetOperation returns the operation registered for method, or nil.\n\n```go\nfunc (pathItem *PathItem) Operations() map[string]*Operation\n```\nOperations returns the path item's operations keyed by HTTP method, including QUERY and AdditionalOperations. A fixed field wins when an additional key collides with it.\n\n```go\nfunc (pathItem *PathItem) SetOperation(method string, operation *Operation)\n```\nSetOperation registers operation under method, replacing any previous one. A nil operation clears it. Methods other than the fixed path-item fields are stored in AdditionalOperations.\n\n```go\ntype Paths struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\nPaths is an OpenAPI Paths Object. The entries live in an unexported map, as they do in kin-openapi, so Map returns a copy and iteration order is not part of the value.\n\n```go\nfunc NewPaths() *Paths\n```\nNewPaths builds an empty Paths object.\n\n```go\nfunc (paths *Paths) Delete(key string)\n```\nDelete removes key. A nil receiver is a no-op.\n\n```go\nfunc (paths *Paths) Find(key string) *PathItem\n```\nFind returns the path item whose template matches key.\n\nA direct key wins. Otherwise the match ignores template variable names (a \"{name\\*}\" wildcard still matches only the same normalized pattern). For example Find(\"/person/{name}\") returns the item stored at \"/person/{personName}\".\n\n```go\nfunc (paths *Paths) Keys() []string\n```\nKeys returns the path keys, sorted.\n\n```go\nfunc (paths *Paths) Len() int\n```\nLen returns the number of paths, not counting extensions.\n\n```go\nfunc (paths *Paths) Map() map[string]*PathItem\n```\nMap returns a copy of the paths. The copy is empty, never nil, when paths is nil or has no entries. Iteration order is not significant.\n\n```go\nfunc (paths *Paths) Set(key string, value *PathItem)\n```\nSet adds or replaces key. paths must be non-nil.\n\n```go\nfunc (paths *Paths) Value(key string) *PathItem\n```\nValue returns the path item for key, or nil.\n\n```go\ntype RequestBodies map[string]*RequestBodyRef\n```\nRequestBodies are the components' named request bodies.\n\n```go\ntype RequestBody struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Request Body Object.\n\n```go\ntype RequestBodyRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *RequestBody\n}\n```\nRequestBodyRef is a request body or a $ref to one.\n\n```go\ntype Response struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Response Object.\n\n```go\ntype ResponseBodies map[string]*ResponseRef\n```\nResponseBodies are the components' named responses.\n\n```go\ntype ResponseRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *Response\n}\n```\nResponseRef is a response or a $ref to one.\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 an OpenAPI Responses Object.\n\n```go\nfunc NewResponses() *Responses\n```\nNewResponses builds an empty Responses object.\n\n```go\nfunc (responses *Responses) Default() *ResponseRef\n```\nDefault returns the default response, or nil.\n\n```go\nfunc (responses *Responses) Delete(key string)\n```\nDelete removes key. A nil receiver is a no-op.\n\n```go\nfunc (responses *Responses) Keys() []string\n```\nKeys returns the response keys, sorted.\n\n```go\nfunc (responses *Responses) Len() int\n```\nLen returns the number of responses, not counting extensions.\n\n```go\nfunc (responses *Responses) Map() map[string]*ResponseRef\n```\nMap returns a copy of the responses. The copy is empty, never nil, when responses is nil or has no entries.\n\n```go\nfunc (responses *Responses) Set(key string, value *ResponseRef)\n```\nSet adds or replaces key. responses must be non-nil.\n\n```go\nfunc (responses *Responses) Status(status int) *ResponseRef\n```\nStatus returns the response for status. An exact key wins. Otherwise a patterned key is used from the status class, such as 201 falling through to \"2XX\". Statuses outside 100–599 have no patterned key.\n\n```go\nfunc (responses *Responses) Value(key string) *ResponseRef\n```\nValue returns the response for key, or nil.\n\n```go\ntype Schema struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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       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 bool `json:\"uniqueItems,omitempty\" yaml:\"uniqueItems,omitempty\"`\n\t// Number-related, here for struct compactness\n\tExclusiveMin ExclusiveBound `json:\"exclusiveMinimum,omitempty\" yaml:\"exclusiveMinimum,omitempty\"` // Number for v3.1+ otherwise boolean\n\tExclusiveMax ExclusiveBound `json:\"exclusiveMaximum,omitempty\" yaml:\"exclusiveMaximum,omitempty\"` // Number for v3.1+ otherwise boolean\n\t// Properties\n\tNullable        bool `json:\"nullable,omitempty\" yaml:\"nullable,omitempty\"`\n\tReadOnly        bool `json:\"readOnly,omitempty\" yaml:\"readOnly,omitempty\"`\n\tWriteOnly       bool `json:\"writeOnly,omitempty\" yaml:\"writeOnly,omitempty\"`\n\tAllowEmptyValue 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\tConst                 any        `json:\"const,omitempty\" yaml:\"const,omitempty\"`                                 // OpenAPI \u003e=3.1\n\tExamples              []any      `json:\"examples,omitempty\" yaml:\"examples,omitempty\"`                           // OpenAPI \u003e=3.1\n\tPrefixItems           SchemaRefs `json:\"prefixItems,omitempty\" yaml:\"prefixItems,omitempty\"`                     // OpenAPI \u003e=3.1\n\tContains              *SchemaRef `json:\"contains,omitempty\" yaml:\"contains,omitempty\"`                           // OpenAPI \u003e=3.1\n\tMinContains           *uint64    `json:\"minContains,omitempty\" yaml:\"minContains,omitempty\"`                     // OpenAPI \u003e=3.1\n\tMaxContains           *uint64    `json:\"maxContains,omitempty\" yaml:\"maxContains,omitempty\"`                     // OpenAPI \u003e=3.1\n\tPatternProperties     Schemas    `json:\"patternProperties,omitempty\" yaml:\"patternProperties,omitempty\"`         // OpenAPI \u003e=3.1\n\tDependentSchemas      Schemas    `json:\"dependentSchemas,omitempty\" yaml:\"dependentSchemas,omitempty\"`           // OpenAPI \u003e=3.1\n\tPropertyNames         *SchemaRef `json:\"propertyNames,omitempty\" yaml:\"propertyNames,omitempty\"`                 // OpenAPI \u003e=3.1\n\tUnevaluatedItems      BoolSchema `json:\"unevaluatedItems,omitempty\" yaml:\"unevaluatedItems,omitempty\"`           // OpenAPI \u003e=3.1\n\tUnevaluatedProperties BoolSchema `json:\"unevaluatedProperties,omitempty\" yaml:\"unevaluatedProperties,omitempty\"` // OpenAPI \u003e=3.1\n\n\tIf   *SchemaRef `json:\"if,omitempty\" yaml:\"if,omitempty\"`     // OpenAPI \u003e=3.1\n\tThen *SchemaRef `json:\"then,omitempty\" yaml:\"then,omitempty\"` // OpenAPI \u003e=3.1\n\tElse *SchemaRef `json:\"else,omitempty\" yaml:\"else,omitempty\"` // OpenAPI \u003e=3.1\n\n\tDependentRequired map[string][]string `json:\"dependentRequired,omitempty\" yaml:\"dependentRequired,omitempty\"` // OpenAPI \u003e=3.1\n\n\t// Always is set when the schema was written as a JSON Schema boolean\n\t// schema rather than an object: true accepts every instance, false\n\t// accepts none. Nil for an ordinary object schema. OpenAPI \u003e=3.1.\n\tAlways *bool `json:\"-\" yaml:\"-\"`\n\n\tDefs          Schemas `json:\"$defs,omitempty\" yaml:\"$defs,omitempty\"`       // OpenAPI \u003e=3.1\n\tSchemaDialect string  `json:\"$schema,omitempty\" yaml:\"$schema,omitempty\"`   // OpenAPI \u003e=3.1\n\tComment       string  `json:\"$comment,omitempty\" yaml:\"$comment,omitempty\"` // OpenAPI \u003e=3.1\n\n\tSchemaID      string `json:\"$id,omitempty\" yaml:\"$id,omitempty\"`                       // OpenAPI \u003e=3.1\n\tAnchor        string `json:\"$anchor,omitempty\" yaml:\"$anchor,omitempty\"`               // OpenAPI \u003e=3.1\n\tDynamicRef    string `json:\"$dynamicRef,omitempty\" yaml:\"$dynamicRef,omitempty\"`       // OpenAPI \u003e=3.1\n\tDynamicAnchor string `json:\"$dynamicAnchor,omitempty\" yaml:\"$dynamicAnchor,omitempty\"` // OpenAPI \u003e=3.1\n\n\tContentMediaType string     `json:\"contentMediaType,omitempty\" yaml:\"contentMediaType,omitempty\"` // OpenAPI \u003e=3.1\n\tContentEncoding  string     `json:\"contentEncoding,omitempty\" yaml:\"contentEncoding,omitempty\"`   // OpenAPI \u003e=3.1\n\tContentSchema    *SchemaRef `json:\"contentSchema,omitempty\" yaml:\"contentSchema,omitempty\"`       // OpenAPI \u003e=3.1\n}\n```\nSchema is an OpenAPI Schema Object. Field order and json keywords match kin-openapi's Schema: the generator reflects over every field to name the keywords an allOf merge cannot fold, so a missing or reordered field changes that result.\n\n```go\nfunc NewObjectSchema() *Schema\n```\nNewObjectSchema builds a schema of type object with an empty property map.\n\n```go\nfunc NewSchema() *Schema\n```\nNewSchema builds an empty schema.\n\n```go\nfunc NewStringSchema() *Schema\n```\nNewStringSchema builds a schema of type string.\n\n```go\nfunc (schema *Schema) NewRef() *SchemaRef\n```\nNewRef builds a SchemaRef whose value is schema.\n\n```go\nfunc (schema *Schema) WithAnyAdditionalProperties() *Schema\n```\nWithAnyAdditionalProperties sets additionalProperties to true.\n\n```go\nfunc (schema *Schema) WithEnum(values ...any) *Schema\n```\nWithEnum sets the schema's enum values.\n\n```go\nfunc (schema *Schema) WithMaxLength(i int64) *Schema\n```\nWithMaxLength sets maxLength.\n\n```go\nfunc (schema *Schema) WithProperty(name string, propertySchema *Schema) *Schema\n```\nWithProperty sets a property to propertySchema.\n\n```go\nfunc (schema *Schema) WithPropertyRef(name string, ref *SchemaRef) *Schema\n```\nWithPropertyRef sets a property to ref.\n\n```go\nfunc (schema *Schema) WithoutAdditionalProperties() *Schema\n```\nWithoutAdditionalProperties sets additionalProperties to false.\n\n```go\ntype SchemaRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tRef   string\n\tValue *Schema\n}\n```\nSchemaRef is a schema or a $ref to one. Ref is the authored reference. When both are set, Ref names the reference and Value is what it resolved to.\n\n```go\nfunc NewSchemaRef(ref string, value *Schema) *SchemaRef\n```\nNewSchemaRef builds a SchemaRef.\n\n```go\ntype SchemaRefs []*SchemaRef\n```\nSchemaRefs is a list of schema references, as in allOf, anyOf and oneOf.\n\n```go\ntype Schemas map[string]*SchemaRef\n```\nSchemas is a map of named schemas, as in properties and components.\n\n```go\ntype SecurityRequirement map[string][]string\n```\nSecurityRequirement maps a security scheme name to the scopes it requires.\n\n```go\ntype SecurityRequirements []SecurityRequirement\n```\nSecurityRequirements is a list of alternative security requirements.\n\n```go\ntype SecurityScheme struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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\tOpenIdConnectUrl string `json:\"openIdConnectUrl,omitempty\" yaml:\"openIdConnectUrl,omitempty\"`\n}\n```\nSecurityScheme is an OpenAPI Security Scheme Object. OAuth flows are omitted: the generator does not read them.\n\n```go\ntype SecuritySchemeRef struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\t// Summary and Description are OpenAPI 3.1 reference-object fields.\n\tSummary     *string `json:\"summary,omitempty\" yaml:\"summary,omitempty\"`\n\tDescription *string `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\n\tRef   string\n\tValue *SecurityScheme\n}\n```\nSecuritySchemeRef is a security scheme or a $ref to one.\n\n```go\ntype SecuritySchemes map[string]*SecuritySchemeRef\n```\nSecuritySchemes are the components' named security schemes.\n\n```go\ntype Server struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\n\n\tURL         string          `json:\"url\" yaml:\"url\"`\n\tDescription string          `json:\"description,omitempty\" yaml:\"description,omitempty\"`\n\tVariables   ServerVariables `json:\"variables,omitempty\" yaml:\"variables,omitempty\"`\n}\n```\nServer is an OpenAPI Server Object.\n\n```go\ntype ServerVariable struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Server Variable Object.\n\n```go\ntype ServerVariables map[string]*ServerVariable\n```\nServerVariables maps a variable name to its definition.\n\n```go\ntype Servers []*Server\n```\nServers is a list of servers.\n\n```go\ntype Tag struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI Tag Object.\n\n```go\ntype Tags []*Tag\n```\nTags is a list of tags.\n\n```go\ntype Types []string\n```\nTypes is the type or types of a schema. OpenAPI 3.0 has one entry; OpenAPI 3.1 may have several, including \"null\".\n\n```go\nfunc (types *Types) Includes(typ string) bool\n```\nIncludes reports whether typ is one of the types. Nil types include nothing.\n\n```go\nfunc (types *Types) Is(typ string) bool\n```\nIs reports whether the schema has exactly one type and it is typ.\n\n```go\nfunc (types *Types) Permits(typ string) bool\n```\nPermits reports whether typ is allowed. Nil types permit every type.\n\n```go\nfunc (types *Types) Slice() []string\n```\nSlice returns the types as a string slice, or nil when types is nil.\n\n```go\ntype XML struct {\n\tExtensions map[string]any `json:\"-\" yaml:\"-\"`\n\tOrigin     *Origin        `json:\"-\" yaml:\"-\"`\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 an OpenAPI XML Object.\n\n","path":"github.com/ifc7/oapi-codegen/pkg/model","name":"model","synopsis":"","isRedistributable":true}
