Documentation
¶
Index ¶
- type Any
- type AnysOrExpressions
- type Callback
- func (s *Callback) Decode(d *jx.Decoder) error
- func (s *Callback) Encode(e *jx.Encoder)
- func (s *Callback) GetPattern0Props() CallbackPattern0
- func (s *Callback) GetPattern1Props() CallbackPattern1
- func (s *Callback) MarshalJSON() ([]byte, error)
- func (s *Callback) SetPattern0Props(val CallbackPattern0)
- func (s *Callback) SetPattern1Props(val CallbackPattern1)
- func (s *Callback) UnmarshalJSON(data []byte) error
- func (s *Callback) Validate() error
- type CallbackOrReference
- func (s *CallbackOrReference) Decode(d *jx.Decoder) error
- func (s CallbackOrReference) Encode(e *jx.Encoder)
- func (s CallbackOrReference) GetCallback() (v Callback, ok bool)
- func (s CallbackOrReference) GetReference() (v Reference, ok bool)
- func (s CallbackOrReference) IsCallback() bool
- func (s CallbackOrReference) IsReference() bool
- func (s CallbackOrReference) MarshalJSON() ([]byte, error)
- func (s *CallbackOrReference) SetCallback(v Callback)
- func (s *CallbackOrReference) SetReference(v Reference)
- func (s *CallbackOrReference) UnmarshalJSON(data []byte) error
- func (s CallbackOrReference) Validate() error
- type CallbackOrReferenceType
- type CallbackPattern0
- type CallbackPattern1
- type CallbacksOrReferences
- type Components
- func (s *Components) Decode(d *jx.Decoder) error
- func (s *Components) Encode(e *jx.Encoder)
- func (s *Components) GetCallbacks() OptCallbacksOrReferences
- func (s *Components) GetExamples() OptExamplesOrReferences
- func (s *Components) GetHeaders() OptHeadersOrReferences
- func (s *Components) GetLinks() OptLinksOrReferences
- func (s *Components) GetParameters() OptParametersOrReferences
- func (s *Components) GetPattern0Props() ComponentsPattern0
- func (s *Components) GetRequestBodies() OptRequestBodiesOrReferences
- func (s *Components) GetResponses() OptResponsesOrReferences
- func (s *Components) GetSchemas() OptSchemasOrReferences
- func (s *Components) GetSecuritySchemes() OptSecuritySchemesOrReferences
- func (s *Components) MarshalJSON() ([]byte, error)
- func (s *Components) SetCallbacks(val OptCallbacksOrReferences)
- func (s *Components) SetExamples(val OptExamplesOrReferences)
- func (s *Components) SetHeaders(val OptHeadersOrReferences)
- func (s *Components) SetLinks(val OptLinksOrReferences)
- func (s *Components) SetParameters(val OptParametersOrReferences)
- func (s *Components) SetPattern0Props(val ComponentsPattern0)
- func (s *Components) SetRequestBodies(val OptRequestBodiesOrReferences)
- func (s *Components) SetResponses(val OptResponsesOrReferences)
- func (s *Components) SetSchemas(val OptSchemasOrReferences)
- func (s *Components) SetSecuritySchemes(val OptSecuritySchemesOrReferences)
- func (s *Components) UnmarshalJSON(data []byte) error
- func (s *Components) Validate() error
- type ComponentsPattern0
- type Contact
- func (s *Contact) Decode(d *jx.Decoder) error
- func (s *Contact) Encode(e *jx.Encoder)
- func (s *Contact) GetEmail() OptString
- func (s *Contact) GetName() OptString
- func (s *Contact) GetPattern0Props() ContactPattern0
- func (s *Contact) GetURL() OptString
- func (s *Contact) MarshalJSON() ([]byte, error)
- func (s *Contact) SetEmail(val OptString)
- func (s *Contact) SetName(val OptString)
- func (s *Contact) SetPattern0Props(val ContactPattern0)
- func (s *Contact) SetURL(val OptString)
- func (s *Contact) UnmarshalJSON(data []byte) error
- type ContactPattern0
- type DefaultType
- type Discriminator
- func (s *Discriminator) Decode(d *jx.Decoder) error
- func (s *Discriminator) Encode(e *jx.Encoder)
- func (s *Discriminator) GetMapping() OptStrings
- func (s *Discriminator) GetPropertyName() string
- func (s *Discriminator) MarshalJSON() ([]byte, error)
- func (s *Discriminator) SetMapping(val OptStrings)
- func (s *Discriminator) SetPropertyName(val string)
- func (s *Discriminator) UnmarshalJSON(data []byte) error
- type Encoding
- func (s *Encoding) Decode(d *jx.Decoder) error
- func (s *Encoding) Encode(e *jx.Encoder)
- func (s *Encoding) GetAllowReserved() OptBool
- func (s *Encoding) GetContentType() OptString
- func (s *Encoding) GetExplode() OptBool
- func (s *Encoding) GetHeaders() OptHeadersOrReferences
- func (s *Encoding) GetPattern0Props() EncodingPattern0
- func (s *Encoding) GetStyle() OptString
- func (s *Encoding) MarshalJSON() ([]byte, error)
- func (s *Encoding) SetAllowReserved(val OptBool)
- func (s *Encoding) SetContentType(val OptString)
- func (s *Encoding) SetExplode(val OptBool)
- func (s *Encoding) SetHeaders(val OptHeadersOrReferences)
- func (s *Encoding) SetPattern0Props(val EncodingPattern0)
- func (s *Encoding) SetStyle(val OptString)
- func (s *Encoding) UnmarshalJSON(data []byte) error
- func (s *Encoding) Validate() error
- type EncodingPattern0
- type Encodings
- type Enum
- type Example
- func (s *Example) Decode(d *jx.Decoder) error
- func (s *Example) Encode(e *jx.Encoder)
- func (s *Example) GetDescription() OptString
- func (s *Example) GetExternalValue() OptString
- func (s *Example) GetPattern0Props() ExamplePattern0
- func (s *Example) GetSummary() OptString
- func (s *Example) GetValue() Any
- func (s *Example) MarshalJSON() ([]byte, error)
- func (s *Example) SetDescription(val OptString)
- func (s *Example) SetExternalValue(val OptString)
- func (s *Example) SetPattern0Props(val ExamplePattern0)
- func (s *Example) SetSummary(val OptString)
- func (s *Example) SetValue(val Any)
- func (s *Example) UnmarshalJSON(data []byte) error
- type ExampleOrReference
- func (s *ExampleOrReference) Decode(d *jx.Decoder) error
- func (s ExampleOrReference) Encode(e *jx.Encoder)
- func (s ExampleOrReference) GetExample() (v Example, ok bool)
- func (s ExampleOrReference) GetReference() (v Reference, ok bool)
- func (s ExampleOrReference) IsExample() bool
- func (s ExampleOrReference) IsReference() bool
- func (s ExampleOrReference) MarshalJSON() ([]byte, error)
- func (s *ExampleOrReference) SetExample(v Example)
- func (s *ExampleOrReference) SetReference(v Reference)
- func (s *ExampleOrReference) UnmarshalJSON(data []byte) error
- type ExampleOrReferenceType
- type ExamplePattern0
- type ExamplesOrReferences
- type ExclusiveMaximum
- type ExclusiveMinimum
- type ExternalDocs
- func (s *ExternalDocs) Decode(d *jx.Decoder) error
- func (s *ExternalDocs) Encode(e *jx.Encoder)
- func (s *ExternalDocs) GetDescription() OptString
- func (s *ExternalDocs) GetPattern0Props() ExternalDocsPattern0
- func (s *ExternalDocs) GetURL() string
- func (s *ExternalDocs) MarshalJSON() ([]byte, error)
- func (s *ExternalDocs) SetDescription(val OptString)
- func (s *ExternalDocs) SetPattern0Props(val ExternalDocsPattern0)
- func (s *ExternalDocs) SetURL(val string)
- func (s *ExternalDocs) UnmarshalJSON(data []byte) error
- type ExternalDocsPattern0
- type Header
- func (s *Header) Decode(d *jx.Decoder) error
- func (s *Header) Encode(e *jx.Encoder)
- func (s *Header) GetAllowEmptyValue() OptBool
- func (s *Header) GetAllowReserved() OptBool
- func (s *Header) GetContent() OptMediaTypes
- func (s *Header) GetDeprecated() OptBool
- func (s *Header) GetDescription() OptString
- func (s *Header) GetExample() Any
- func (s *Header) GetExamples() OptExamplesOrReferences
- func (s *Header) GetExplode() OptBool
- func (s *Header) GetPattern0Props() HeaderPattern0
- func (s *Header) GetRequired() OptBool
- func (s *Header) GetSchema() *SchemaOrReference
- func (s *Header) GetStyle() OptString
- func (s *Header) MarshalJSON() ([]byte, error)
- func (s *Header) SetAllowEmptyValue(val OptBool)
- func (s *Header) SetAllowReserved(val OptBool)
- func (s *Header) SetContent(val OptMediaTypes)
- func (s *Header) SetDeprecated(val OptBool)
- func (s *Header) SetDescription(val OptString)
- func (s *Header) SetExample(val Any)
- func (s *Header) SetExamples(val OptExamplesOrReferences)
- func (s *Header) SetExplode(val OptBool)
- func (s *Header) SetPattern0Props(val HeaderPattern0)
- func (s *Header) SetRequired(val OptBool)
- func (s *Header) SetSchema(val *SchemaOrReference)
- func (s *Header) SetStyle(val OptString)
- func (s *Header) UnmarshalJSON(data []byte) error
- func (s *Header) Validate() error
- type HeaderOrReference
- func (s *HeaderOrReference) Decode(d *jx.Decoder) error
- func (s HeaderOrReference) Encode(e *jx.Encoder)
- func (s HeaderOrReference) GetHeader() (v Header, ok bool)
- func (s HeaderOrReference) GetReference() (v Reference, ok bool)
- func (s HeaderOrReference) IsHeader() bool
- func (s HeaderOrReference) IsReference() bool
- func (s HeaderOrReference) MarshalJSON() ([]byte, error)
- func (s *HeaderOrReference) SetHeader(v Header)
- func (s *HeaderOrReference) SetReference(v Reference)
- func (s *HeaderOrReference) UnmarshalJSON(data []byte) error
- func (s HeaderOrReference) Validate() error
- type HeaderOrReferenceType
- type HeaderPattern0
- type HeadersOrReferences
- type Info
- func (s *Info) Decode(d *jx.Decoder) error
- func (s *Info) Encode(e *jx.Encoder)
- func (s *Info) GetContact() OptContact
- func (s *Info) GetDescription() OptString
- func (s *Info) GetLicense() OptLicense
- func (s *Info) GetPattern0Props() InfoPattern0
- func (s *Info) GetTermsOfService() OptString
- func (s *Info) GetTitle() string
- func (s *Info) GetVersion() string
- func (s *Info) MarshalJSON() ([]byte, error)
- func (s *Info) SetContact(val OptContact)
- func (s *Info) SetDescription(val OptString)
- func (s *Info) SetLicense(val OptLicense)
- func (s *Info) SetPattern0Props(val InfoPattern0)
- func (s *Info) SetTermsOfService(val OptString)
- func (s *Info) SetTitle(val string)
- func (s *Info) SetVersion(val string)
- func (s *Info) UnmarshalJSON(data []byte) error
- type InfoPattern0
- type License
- func (s *License) Decode(d *jx.Decoder) error
- func (s *License) Encode(e *jx.Encoder)
- func (s *License) GetName() string
- func (s *License) GetPattern0Props() LicensePattern0
- func (s *License) GetURL() OptString
- func (s *License) MarshalJSON() ([]byte, error)
- func (s *License) SetName(val string)
- func (s *License) SetPattern0Props(val LicensePattern0)
- func (s *License) SetURL(val OptString)
- func (s *License) UnmarshalJSON(data []byte) error
- type LicensePattern0
- type Link
- func (s *Link) Decode(d *jx.Decoder) error
- func (s *Link) Encode(e *jx.Encoder)
- func (s *Link) GetDescription() OptString
- func (s *Link) GetOperationId() OptString
- func (s *Link) GetOperationRef() OptString
- func (s *Link) GetParameters() OptAnysOrExpressions
- func (s *Link) GetPattern0Props() LinkPattern0
- func (s *Link) GetRequestBody() Any
- func (s *Link) GetServer() OptServer
- func (s *Link) MarshalJSON() ([]byte, error)
- func (s *Link) SetDescription(val OptString)
- func (s *Link) SetOperationId(val OptString)
- func (s *Link) SetOperationRef(val OptString)
- func (s *Link) SetParameters(val OptAnysOrExpressions)
- func (s *Link) SetPattern0Props(val LinkPattern0)
- func (s *Link) SetRequestBody(val Any)
- func (s *Link) SetServer(val OptServer)
- func (s *Link) UnmarshalJSON(data []byte) error
- type LinkOrReference
- func (s *LinkOrReference) Decode(d *jx.Decoder) error
- func (s LinkOrReference) Encode(e *jx.Encoder)
- func (s LinkOrReference) GetLink() (v Link, ok bool)
- func (s LinkOrReference) GetReference() (v Reference, ok bool)
- func (s LinkOrReference) IsLink() bool
- func (s LinkOrReference) IsReference() bool
- func (s LinkOrReference) MarshalJSON() ([]byte, error)
- func (s *LinkOrReference) SetLink(v Link)
- func (s *LinkOrReference) SetReference(v Reference)
- func (s *LinkOrReference) UnmarshalJSON(data []byte) error
- type LinkOrReferenceType
- type LinkPattern0
- type LinksOrReferences
- type Maximum
- type MediaType
- func (s *MediaType) Decode(d *jx.Decoder) error
- func (s *MediaType) Encode(e *jx.Encoder)
- func (s *MediaType) GetEncoding() OptEncodings
- func (s *MediaType) GetExample() Any
- func (s *MediaType) GetExamples() OptExamplesOrReferences
- func (s *MediaType) GetPattern0Props() MediaTypePattern0
- func (s *MediaType) GetSchema() *SchemaOrReference
- func (s *MediaType) MarshalJSON() ([]byte, error)
- func (s *MediaType) SetEncoding(val OptEncodings)
- func (s *MediaType) SetExample(val Any)
- func (s *MediaType) SetExamples(val OptExamplesOrReferences)
- func (s *MediaType) SetPattern0Props(val MediaTypePattern0)
- func (s *MediaType) SetSchema(val *SchemaOrReference)
- func (s *MediaType) UnmarshalJSON(data []byte) error
- func (s *MediaType) Validate() error
- type MediaTypePattern0
- type MediaTypes
- type Minimum
- type MultipleOf
- type OauthFlow
- func (s *OauthFlow) Decode(d *jx.Decoder) error
- func (s *OauthFlow) Encode(e *jx.Encoder)
- func (s *OauthFlow) GetAuthorizationUrl() OptString
- func (s *OauthFlow) GetPattern0Props() OauthFlowPattern0
- func (s *OauthFlow) GetRefreshUrl() OptString
- func (s *OauthFlow) GetScopes() OptStrings
- func (s *OauthFlow) GetTokenUrl() OptString
- func (s *OauthFlow) MarshalJSON() ([]byte, error)
- func (s *OauthFlow) SetAuthorizationUrl(val OptString)
- func (s *OauthFlow) SetPattern0Props(val OauthFlowPattern0)
- func (s *OauthFlow) SetRefreshUrl(val OptString)
- func (s *OauthFlow) SetScopes(val OptStrings)
- func (s *OauthFlow) SetTokenUrl(val OptString)
- func (s *OauthFlow) UnmarshalJSON(data []byte) error
- type OauthFlowPattern0
- type OauthFlows
- func (s *OauthFlows) Decode(d *jx.Decoder) error
- func (s *OauthFlows) Encode(e *jx.Encoder)
- func (s *OauthFlows) GetAuthorizationCode() OptOauthFlow
- func (s *OauthFlows) GetClientCredentials() OptOauthFlow
- func (s *OauthFlows) GetImplicit() OptOauthFlow
- func (s *OauthFlows) GetPassword() OptOauthFlow
- func (s *OauthFlows) GetPattern0Props() OauthFlowsPattern0
- func (s *OauthFlows) MarshalJSON() ([]byte, error)
- func (s *OauthFlows) SetAuthorizationCode(val OptOauthFlow)
- func (s *OauthFlows) SetClientCredentials(val OptOauthFlow)
- func (s *OauthFlows) SetImplicit(val OptOauthFlow)
- func (s *OauthFlows) SetPassword(val OptOauthFlow)
- func (s *OauthFlows) SetPattern0Props(val OauthFlowsPattern0)
- func (s *OauthFlows) UnmarshalJSON(data []byte) error
- type OauthFlowsPattern0
- type Operation
- func (s *Operation) Decode(d *jx.Decoder) error
- func (s *Operation) Encode(e *jx.Encoder)
- func (s *Operation) GetCallbacks() OptCallbacksOrReferences
- func (s *Operation) GetDeprecated() OptBool
- func (s *Operation) GetDescription() OptString
- func (s *Operation) GetExternalDocs() OptExternalDocs
- func (s *Operation) GetOperationId() OptString
- func (s *Operation) GetParameters() []ParameterOrReference
- func (s *Operation) GetPattern0Props() OperationPattern0
- func (s *Operation) GetRequestBody() OptRequestBodyOrReference
- func (s *Operation) GetResponses() Responses
- func (s *Operation) GetSecurity() []SecurityRequirement
- func (s *Operation) GetServers() []Server
- func (s *Operation) GetSummary() OptString
- func (s *Operation) GetTags() []string
- func (s *Operation) MarshalJSON() ([]byte, error)
- func (s *Operation) SetCallbacks(val OptCallbacksOrReferences)
- func (s *Operation) SetDeprecated(val OptBool)
- func (s *Operation) SetDescription(val OptString)
- func (s *Operation) SetExternalDocs(val OptExternalDocs)
- func (s *Operation) SetOperationId(val OptString)
- func (s *Operation) SetParameters(val []ParameterOrReference)
- func (s *Operation) SetPattern0Props(val OperationPattern0)
- func (s *Operation) SetRequestBody(val OptRequestBodyOrReference)
- func (s *Operation) SetResponses(val Responses)
- func (s *Operation) SetSecurity(val []SecurityRequirement)
- func (s *Operation) SetServers(val []Server)
- func (s *Operation) SetSummary(val OptString)
- func (s *Operation) SetTags(val []string)
- func (s *Operation) UnmarshalJSON(data []byte) error
- func (s *Operation) Validate() error
- type OperationPattern0
- type OptAnysOrExpressions
- func (o *OptAnysOrExpressions) Decode(d *jx.Decoder) error
- func (o OptAnysOrExpressions) Encode(e *jx.Encoder)
- func (o OptAnysOrExpressions) Get() (v AnysOrExpressions, ok bool)
- func (o OptAnysOrExpressions) IsSet() bool
- func (s OptAnysOrExpressions) MarshalJSON() ([]byte, error)
- func (o OptAnysOrExpressions) Or(d AnysOrExpressions) AnysOrExpressions
- func (o *OptAnysOrExpressions) Reset()
- func (o *OptAnysOrExpressions) SetTo(v AnysOrExpressions)
- func (s *OptAnysOrExpressions) UnmarshalJSON(data []byte) error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCallbacksOrReferences
- func (o *OptCallbacksOrReferences) Decode(d *jx.Decoder) error
- func (o OptCallbacksOrReferences) Encode(e *jx.Encoder)
- func (o OptCallbacksOrReferences) Get() (v CallbacksOrReferences, ok bool)
- func (o OptCallbacksOrReferences) IsSet() bool
- func (s OptCallbacksOrReferences) MarshalJSON() ([]byte, error)
- func (o OptCallbacksOrReferences) Or(d CallbacksOrReferences) CallbacksOrReferences
- func (o *OptCallbacksOrReferences) Reset()
- func (o *OptCallbacksOrReferences) SetTo(v CallbacksOrReferences)
- func (s *OptCallbacksOrReferences) UnmarshalJSON(data []byte) error
- type OptComponents
- func (o *OptComponents) Decode(d *jx.Decoder) error
- func (o OptComponents) Encode(e *jx.Encoder)
- func (o OptComponents) Get() (v Components, ok bool)
- func (o OptComponents) IsSet() bool
- func (s OptComponents) MarshalJSON() ([]byte, error)
- func (o OptComponents) Or(d Components) Components
- func (o *OptComponents) Reset()
- func (o *OptComponents) SetTo(v Components)
- func (s *OptComponents) UnmarshalJSON(data []byte) error
- type OptContact
- func (o *OptContact) Decode(d *jx.Decoder) error
- func (o OptContact) Encode(e *jx.Encoder)
- func (o OptContact) Get() (v Contact, ok bool)
- func (o OptContact) IsSet() bool
- func (s OptContact) MarshalJSON() ([]byte, error)
- func (o OptContact) Or(d Contact) Contact
- func (o *OptContact) Reset()
- func (o *OptContact) SetTo(v Contact)
- func (s *OptContact) UnmarshalJSON(data []byte) error
- type OptDiscriminator
- func (o *OptDiscriminator) Decode(d *jx.Decoder) error
- func (o OptDiscriminator) Encode(e *jx.Encoder)
- func (o OptDiscriminator) Get() (v Discriminator, ok bool)
- func (o OptDiscriminator) IsSet() bool
- func (s OptDiscriminator) MarshalJSON() ([]byte, error)
- func (o OptDiscriminator) Or(d Discriminator) Discriminator
- func (o *OptDiscriminator) Reset()
- func (o *OptDiscriminator) SetTo(v Discriminator)
- func (s *OptDiscriminator) UnmarshalJSON(data []byte) error
- type OptEncodings
- func (o *OptEncodings) Decode(d *jx.Decoder) error
- func (o OptEncodings) Encode(e *jx.Encoder)
- func (o OptEncodings) Get() (v Encodings, ok bool)
- func (o OptEncodings) IsSet() bool
- func (s OptEncodings) MarshalJSON() ([]byte, error)
- func (o OptEncodings) Or(d Encodings) Encodings
- func (o *OptEncodings) Reset()
- func (o *OptEncodings) SetTo(v Encodings)
- func (s *OptEncodings) UnmarshalJSON(data []byte) error
- type OptExamplesOrReferences
- func (o *OptExamplesOrReferences) Decode(d *jx.Decoder) error
- func (o OptExamplesOrReferences) Encode(e *jx.Encoder)
- func (o OptExamplesOrReferences) Get() (v ExamplesOrReferences, ok bool)
- func (o OptExamplesOrReferences) IsSet() bool
- func (s OptExamplesOrReferences) MarshalJSON() ([]byte, error)
- func (o OptExamplesOrReferences) Or(d ExamplesOrReferences) ExamplesOrReferences
- func (o *OptExamplesOrReferences) Reset()
- func (o *OptExamplesOrReferences) SetTo(v ExamplesOrReferences)
- func (s *OptExamplesOrReferences) UnmarshalJSON(data []byte) error
- type OptExclusiveMaximum
- func (o *OptExclusiveMaximum) Decode(d *jx.Decoder) error
- func (o OptExclusiveMaximum) Encode(e *jx.Encoder)
- func (o OptExclusiveMaximum) Get() (v ExclusiveMaximum, ok bool)
- func (o OptExclusiveMaximum) IsSet() bool
- func (s OptExclusiveMaximum) MarshalJSON() ([]byte, error)
- func (o OptExclusiveMaximum) Or(d ExclusiveMaximum) ExclusiveMaximum
- func (o *OptExclusiveMaximum) Reset()
- func (o *OptExclusiveMaximum) SetTo(v ExclusiveMaximum)
- func (s *OptExclusiveMaximum) UnmarshalJSON(data []byte) error
- type OptExclusiveMinimum
- func (o *OptExclusiveMinimum) Decode(d *jx.Decoder) error
- func (o OptExclusiveMinimum) Encode(e *jx.Encoder)
- func (o OptExclusiveMinimum) Get() (v ExclusiveMinimum, ok bool)
- func (o OptExclusiveMinimum) IsSet() bool
- func (s OptExclusiveMinimum) MarshalJSON() ([]byte, error)
- func (o OptExclusiveMinimum) Or(d ExclusiveMinimum) ExclusiveMinimum
- func (o *OptExclusiveMinimum) Reset()
- func (o *OptExclusiveMinimum) SetTo(v ExclusiveMinimum)
- func (s *OptExclusiveMinimum) UnmarshalJSON(data []byte) error
- type OptExternalDocs
- func (o *OptExternalDocs) Decode(d *jx.Decoder) error
- func (o OptExternalDocs) Encode(e *jx.Encoder)
- func (o OptExternalDocs) Get() (v ExternalDocs, ok bool)
- func (o OptExternalDocs) IsSet() bool
- func (s OptExternalDocs) MarshalJSON() ([]byte, error)
- func (o OptExternalDocs) Or(d ExternalDocs) ExternalDocs
- func (o *OptExternalDocs) Reset()
- func (o *OptExternalDocs) SetTo(v ExternalDocs)
- func (s *OptExternalDocs) UnmarshalJSON(data []byte) error
- type OptHeadersOrReferences
- func (o *OptHeadersOrReferences) Decode(d *jx.Decoder) error
- func (o OptHeadersOrReferences) Encode(e *jx.Encoder)
- func (o OptHeadersOrReferences) Get() (v HeadersOrReferences, ok bool)
- func (o OptHeadersOrReferences) IsSet() bool
- func (s OptHeadersOrReferences) MarshalJSON() ([]byte, error)
- func (o OptHeadersOrReferences) Or(d HeadersOrReferences) HeadersOrReferences
- func (o *OptHeadersOrReferences) Reset()
- func (o *OptHeadersOrReferences) SetTo(v HeadersOrReferences)
- func (s *OptHeadersOrReferences) UnmarshalJSON(data []byte) error
- type OptLicense
- func (o *OptLicense) Decode(d *jx.Decoder) error
- func (o OptLicense) Encode(e *jx.Encoder)
- func (o OptLicense) Get() (v License, ok bool)
- func (o OptLicense) IsSet() bool
- func (s OptLicense) MarshalJSON() ([]byte, error)
- func (o OptLicense) Or(d License) License
- func (o *OptLicense) Reset()
- func (o *OptLicense) SetTo(v License)
- func (s *OptLicense) UnmarshalJSON(data []byte) error
- type OptLinksOrReferences
- func (o *OptLinksOrReferences) Decode(d *jx.Decoder) error
- func (o OptLinksOrReferences) Encode(e *jx.Encoder)
- func (o OptLinksOrReferences) Get() (v LinksOrReferences, ok bool)
- func (o OptLinksOrReferences) IsSet() bool
- func (s OptLinksOrReferences) MarshalJSON() ([]byte, error)
- func (o OptLinksOrReferences) Or(d LinksOrReferences) LinksOrReferences
- func (o *OptLinksOrReferences) Reset()
- func (o *OptLinksOrReferences) SetTo(v LinksOrReferences)
- func (s *OptLinksOrReferences) UnmarshalJSON(data []byte) error
- type OptMaximum
- func (o *OptMaximum) Decode(d *jx.Decoder) error
- func (o OptMaximum) Encode(e *jx.Encoder)
- func (o OptMaximum) Get() (v Maximum, ok bool)
- func (o OptMaximum) IsSet() bool
- func (s OptMaximum) MarshalJSON() ([]byte, error)
- func (o OptMaximum) Or(d Maximum) Maximum
- func (o *OptMaximum) Reset()
- func (o *OptMaximum) SetTo(v Maximum)
- func (s *OptMaximum) UnmarshalJSON(data []byte) error
- type OptMediaTypes
- func (o *OptMediaTypes) Decode(d *jx.Decoder) error
- func (o OptMediaTypes) Encode(e *jx.Encoder)
- func (o OptMediaTypes) Get() (v MediaTypes, ok bool)
- func (o OptMediaTypes) IsSet() bool
- func (s OptMediaTypes) MarshalJSON() ([]byte, error)
- func (o OptMediaTypes) Or(d MediaTypes) MediaTypes
- func (o *OptMediaTypes) Reset()
- func (o *OptMediaTypes) SetTo(v MediaTypes)
- func (s *OptMediaTypes) UnmarshalJSON(data []byte) error
- type OptMinimum
- func (o *OptMinimum) Decode(d *jx.Decoder) error
- func (o OptMinimum) Encode(e *jx.Encoder)
- func (o OptMinimum) Get() (v Minimum, ok bool)
- func (o OptMinimum) IsSet() bool
- func (s OptMinimum) MarshalJSON() ([]byte, error)
- func (o OptMinimum) Or(d Minimum) Minimum
- func (o *OptMinimum) Reset()
- func (o *OptMinimum) SetTo(v Minimum)
- func (s *OptMinimum) UnmarshalJSON(data []byte) error
- type OptMultipleOf
- func (o *OptMultipleOf) Decode(d *jx.Decoder) error
- func (o OptMultipleOf) Encode(e *jx.Encoder)
- func (o OptMultipleOf) Get() (v MultipleOf, ok bool)
- func (o OptMultipleOf) IsSet() bool
- func (s OptMultipleOf) MarshalJSON() ([]byte, error)
- func (o OptMultipleOf) Or(d MultipleOf) MultipleOf
- func (o *OptMultipleOf) Reset()
- func (o *OptMultipleOf) SetTo(v MultipleOf)
- func (s *OptMultipleOf) UnmarshalJSON(data []byte) error
- type OptOauthFlow
- func (o *OptOauthFlow) Decode(d *jx.Decoder) error
- func (o OptOauthFlow) Encode(e *jx.Encoder)
- func (o OptOauthFlow) Get() (v OauthFlow, ok bool)
- func (o OptOauthFlow) IsSet() bool
- func (s OptOauthFlow) MarshalJSON() ([]byte, error)
- func (o OptOauthFlow) Or(d OauthFlow) OauthFlow
- func (o *OptOauthFlow) Reset()
- func (o *OptOauthFlow) SetTo(v OauthFlow)
- func (s *OptOauthFlow) UnmarshalJSON(data []byte) error
- type OptOauthFlows
- func (o *OptOauthFlows) Decode(d *jx.Decoder) error
- func (o OptOauthFlows) Encode(e *jx.Encoder)
- func (o OptOauthFlows) Get() (v OauthFlows, ok bool)
- func (o OptOauthFlows) IsSet() bool
- func (s OptOauthFlows) MarshalJSON() ([]byte, error)
- func (o OptOauthFlows) Or(d OauthFlows) OauthFlows
- func (o *OptOauthFlows) Reset()
- func (o *OptOauthFlows) SetTo(v OauthFlows)
- func (s *OptOauthFlows) UnmarshalJSON(data []byte) error
- type OptOperation
- func (o *OptOperation) Decode(d *jx.Decoder) error
- func (o OptOperation) Encode(e *jx.Encoder)
- func (o OptOperation) Get() (v Operation, ok bool)
- func (o OptOperation) IsSet() bool
- func (s OptOperation) MarshalJSON() ([]byte, error)
- func (o OptOperation) Or(d Operation) Operation
- func (o *OptOperation) Reset()
- func (o *OptOperation) SetTo(v Operation)
- func (s *OptOperation) UnmarshalJSON(data []byte) error
- type OptParameterStyle
- func (o *OptParameterStyle) Decode(d *jx.Decoder) error
- func (o OptParameterStyle) Encode(e *jx.Encoder)
- func (o OptParameterStyle) Get() (v ParameterStyle, ok bool)
- func (o OptParameterStyle) IsSet() bool
- func (s OptParameterStyle) MarshalJSON() ([]byte, error)
- func (o OptParameterStyle) Or(d ParameterStyle) ParameterStyle
- func (o *OptParameterStyle) Reset()
- func (o *OptParameterStyle) SetTo(v ParameterStyle)
- func (s *OptParameterStyle) UnmarshalJSON(data []byte) error
- type OptParametersOrReferences
- func (o *OptParametersOrReferences) Decode(d *jx.Decoder) error
- func (o OptParametersOrReferences) Encode(e *jx.Encoder)
- func (o OptParametersOrReferences) Get() (v ParametersOrReferences, ok bool)
- func (o OptParametersOrReferences) IsSet() bool
- func (s OptParametersOrReferences) MarshalJSON() ([]byte, error)
- func (o OptParametersOrReferences) Or(d ParametersOrReferences) ParametersOrReferences
- func (o *OptParametersOrReferences) Reset()
- func (o *OptParametersOrReferences) SetTo(v ParametersOrReferences)
- func (s *OptParametersOrReferences) UnmarshalJSON(data []byte) error
- type OptPattern
- func (o *OptPattern) Decode(d *jx.Decoder) error
- func (o OptPattern) Encode(e *jx.Encoder)
- func (o OptPattern) Get() (v Pattern, ok bool)
- func (o OptPattern) IsSet() bool
- func (s OptPattern) MarshalJSON() ([]byte, error)
- func (o OptPattern) Or(d Pattern) Pattern
- func (o *OptPattern) Reset()
- func (o *OptPattern) SetTo(v Pattern)
- func (s *OptPattern) UnmarshalJSON(data []byte) error
- type OptPositiveInteger
- func (o *OptPositiveInteger) Decode(d *jx.Decoder) error
- func (o OptPositiveInteger) Encode(e *jx.Encoder)
- func (o OptPositiveInteger) Get() (v PositiveInteger, ok bool)
- func (o OptPositiveInteger) IsSet() bool
- func (s OptPositiveInteger) MarshalJSON() ([]byte, error)
- func (o OptPositiveInteger) Or(d PositiveInteger) PositiveInteger
- func (o *OptPositiveInteger) Reset()
- func (o *OptPositiveInteger) SetTo(v PositiveInteger)
- func (s *OptPositiveInteger) UnmarshalJSON(data []byte) error
- type OptRequestBodiesOrReferences
- func (o *OptRequestBodiesOrReferences) Decode(d *jx.Decoder) error
- func (o OptRequestBodiesOrReferences) Encode(e *jx.Encoder)
- func (o OptRequestBodiesOrReferences) Get() (v RequestBodiesOrReferences, ok bool)
- func (o OptRequestBodiesOrReferences) IsSet() bool
- func (s OptRequestBodiesOrReferences) MarshalJSON() ([]byte, error)
- func (o OptRequestBodiesOrReferences) Or(d RequestBodiesOrReferences) RequestBodiesOrReferences
- func (o *OptRequestBodiesOrReferences) Reset()
- func (o *OptRequestBodiesOrReferences) SetTo(v RequestBodiesOrReferences)
- func (s *OptRequestBodiesOrReferences) UnmarshalJSON(data []byte) error
- type OptRequestBodyOrReference
- func (o *OptRequestBodyOrReference) Decode(d *jx.Decoder) error
- func (o OptRequestBodyOrReference) Encode(e *jx.Encoder)
- func (o OptRequestBodyOrReference) Get() (v RequestBodyOrReference, ok bool)
- func (o OptRequestBodyOrReference) IsSet() bool
- func (s OptRequestBodyOrReference) MarshalJSON() ([]byte, error)
- func (o OptRequestBodyOrReference) Or(d RequestBodyOrReference) RequestBodyOrReference
- func (o *OptRequestBodyOrReference) Reset()
- func (o *OptRequestBodyOrReference) SetTo(v RequestBodyOrReference)
- func (s *OptRequestBodyOrReference) UnmarshalJSON(data []byte) error
- type OptResponseOrReference
- func (o *OptResponseOrReference) Decode(d *jx.Decoder) error
- func (o OptResponseOrReference) Encode(e *jx.Encoder)
- func (o OptResponseOrReference) Get() (v ResponseOrReference, ok bool)
- func (o OptResponseOrReference) IsSet() bool
- func (s OptResponseOrReference) MarshalJSON() ([]byte, error)
- func (o OptResponseOrReference) Or(d ResponseOrReference) ResponseOrReference
- func (o *OptResponseOrReference) Reset()
- func (o *OptResponseOrReference) SetTo(v ResponseOrReference)
- func (s *OptResponseOrReference) UnmarshalJSON(data []byte) error
- type OptResponsesOrReferences
- func (o *OptResponsesOrReferences) Decode(d *jx.Decoder) error
- func (o OptResponsesOrReferences) Encode(e *jx.Encoder)
- func (o OptResponsesOrReferences) Get() (v ResponsesOrReferences, ok bool)
- func (o OptResponsesOrReferences) IsSet() bool
- func (s OptResponsesOrReferences) MarshalJSON() ([]byte, error)
- func (o OptResponsesOrReferences) Or(d ResponsesOrReferences) ResponsesOrReferences
- func (o *OptResponsesOrReferences) Reset()
- func (o *OptResponsesOrReferences) SetTo(v ResponsesOrReferences)
- func (s *OptResponsesOrReferences) UnmarshalJSON(data []byte) error
- type OptSchema
- func (o *OptSchema) Decode(d *jx.Decoder) error
- func (o OptSchema) Encode(e *jx.Encoder)
- func (o OptSchema) Get() (v Schema, ok bool)
- func (o OptSchema) IsSet() bool
- func (s OptSchema) MarshalJSON() ([]byte, error)
- func (o OptSchema) Or(d Schema) Schema
- func (o *OptSchema) Reset()
- func (o *OptSchema) SetTo(v Schema)
- func (s *OptSchema) UnmarshalJSON(data []byte) error
- type OptSchemaAdditionalProperties
- func (o *OptSchemaAdditionalProperties) Decode(d *jx.Decoder) error
- func (o OptSchemaAdditionalProperties) Encode(e *jx.Encoder)
- func (o OptSchemaAdditionalProperties) Get() (v SchemaAdditionalProperties, ok bool)
- func (o OptSchemaAdditionalProperties) IsSet() bool
- func (s OptSchemaAdditionalProperties) MarshalJSON() ([]byte, error)
- func (o OptSchemaAdditionalProperties) Or(d SchemaAdditionalProperties) SchemaAdditionalProperties
- func (o *OptSchemaAdditionalProperties) Reset()
- func (o *OptSchemaAdditionalProperties) SetTo(v SchemaAdditionalProperties)
- func (s *OptSchemaAdditionalProperties) UnmarshalJSON(data []byte) error
- type OptSchemaOrReference
- func (o *OptSchemaOrReference) Decode(d *jx.Decoder) error
- func (o OptSchemaOrReference) Encode(e *jx.Encoder)
- func (o OptSchemaOrReference) Get() (v SchemaOrReference, ok bool)
- func (o OptSchemaOrReference) IsSet() bool
- func (s OptSchemaOrReference) MarshalJSON() ([]byte, error)
- func (o OptSchemaOrReference) Or(d SchemaOrReference) SchemaOrReference
- func (o *OptSchemaOrReference) Reset()
- func (o *OptSchemaOrReference) SetTo(v SchemaOrReference)
- func (s *OptSchemaOrReference) UnmarshalJSON(data []byte) error
- type OptSchemaProperties
- func (o *OptSchemaProperties) Decode(d *jx.Decoder) error
- func (o OptSchemaProperties) Encode(e *jx.Encoder)
- func (o OptSchemaProperties) Get() (v SchemaProperties, ok bool)
- func (o OptSchemaProperties) IsSet() bool
- func (s OptSchemaProperties) MarshalJSON() ([]byte, error)
- func (o OptSchemaProperties) Or(d SchemaProperties) SchemaProperties
- func (o *OptSchemaProperties) Reset()
- func (o *OptSchemaProperties) SetTo(v SchemaProperties)
- func (s *OptSchemaProperties) UnmarshalJSON(data []byte) error
- type OptSchemaType
- func (o *OptSchemaType) Decode(d *jx.Decoder) error
- func (o OptSchemaType) Encode(e *jx.Encoder)
- func (o OptSchemaType) Get() (v SchemaType, ok bool)
- func (o OptSchemaType) IsSet() bool
- func (s OptSchemaType) MarshalJSON() ([]byte, error)
- func (o OptSchemaType) Or(d SchemaType) SchemaType
- func (o *OptSchemaType) Reset()
- func (o *OptSchemaType) SetTo(v SchemaType)
- func (s *OptSchemaType) UnmarshalJSON(data []byte) error
- type OptSchemasOrReferences
- func (o *OptSchemasOrReferences) Decode(d *jx.Decoder) error
- func (o OptSchemasOrReferences) Encode(e *jx.Encoder)
- func (o OptSchemasOrReferences) Get() (v SchemasOrReferences, ok bool)
- func (o OptSchemasOrReferences) IsSet() bool
- func (s OptSchemasOrReferences) MarshalJSON() ([]byte, error)
- func (o OptSchemasOrReferences) Or(d SchemasOrReferences) SchemasOrReferences
- func (o *OptSchemasOrReferences) Reset()
- func (o *OptSchemasOrReferences) SetTo(v SchemasOrReferences)
- func (s *OptSchemasOrReferences) UnmarshalJSON(data []byte) error
- type OptSecuritySchemesOrReferences
- func (o *OptSecuritySchemesOrReferences) Decode(d *jx.Decoder) error
- func (o OptSecuritySchemesOrReferences) Encode(e *jx.Encoder)
- func (o OptSecuritySchemesOrReferences) Get() (v SecuritySchemesOrReferences, ok bool)
- func (o OptSecuritySchemesOrReferences) IsSet() bool
- func (s OptSecuritySchemesOrReferences) MarshalJSON() ([]byte, error)
- func (o OptSecuritySchemesOrReferences) Or(d SecuritySchemesOrReferences) SecuritySchemesOrReferences
- func (o *OptSecuritySchemesOrReferences) Reset()
- func (o *OptSecuritySchemesOrReferences) SetTo(v SecuritySchemesOrReferences)
- func (s *OptSecuritySchemesOrReferences) UnmarshalJSON(data []byte) error
- type OptServer
- func (o *OptServer) Decode(d *jx.Decoder) error
- func (o OptServer) Encode(e *jx.Encoder)
- func (o OptServer) Get() (v Server, ok bool)
- func (o OptServer) IsSet() bool
- func (s OptServer) MarshalJSON() ([]byte, error)
- func (o OptServer) Or(d Server) Server
- func (o *OptServer) Reset()
- func (o *OptServer) SetTo(v Server)
- func (s *OptServer) UnmarshalJSON(data []byte) error
- type OptServerVariables
- func (o *OptServerVariables) Decode(d *jx.Decoder) error
- func (o OptServerVariables) Encode(e *jx.Encoder)
- func (o OptServerVariables) Get() (v ServerVariables, ok bool)
- func (o OptServerVariables) IsSet() bool
- func (s OptServerVariables) MarshalJSON() ([]byte, error)
- func (o OptServerVariables) Or(d ServerVariables) ServerVariables
- func (o *OptServerVariables) Reset()
- func (o *OptServerVariables) SetTo(v ServerVariables)
- func (s *OptServerVariables) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptStrings
- func (o *OptStrings) Decode(d *jx.Decoder) error
- func (o OptStrings) Encode(e *jx.Encoder)
- func (o OptStrings) Get() (v Strings, ok bool)
- func (o OptStrings) IsSet() bool
- func (s OptStrings) MarshalJSON() ([]byte, error)
- func (o OptStrings) Or(d Strings) Strings
- func (o *OptStrings) Reset()
- func (o *OptStrings) SetTo(v Strings)
- func (s *OptStrings) UnmarshalJSON(data []byte) error
- type OptTitle
- func (o *OptTitle) Decode(d *jx.Decoder) error
- func (o OptTitle) Encode(e *jx.Encoder)
- func (o OptTitle) Get() (v Title, ok bool)
- func (o OptTitle) IsSet() bool
- func (s OptTitle) MarshalJSON() ([]byte, error)
- func (o OptTitle) Or(d Title) Title
- func (o *OptTitle) Reset()
- func (o *OptTitle) SetTo(v Title)
- func (s *OptTitle) UnmarshalJSON(data []byte) error
- type OptUniqueItems
- func (o *OptUniqueItems) Decode(d *jx.Decoder) error
- func (o OptUniqueItems) Encode(e *jx.Encoder)
- func (o OptUniqueItems) Get() (v UniqueItems, ok bool)
- func (o OptUniqueItems) IsSet() bool
- func (s OptUniqueItems) MarshalJSON() ([]byte, error)
- func (o OptUniqueItems) Or(d UniqueItems) UniqueItems
- func (o *OptUniqueItems) Reset()
- func (o *OptUniqueItems) SetTo(v UniqueItems)
- func (s *OptUniqueItems) UnmarshalJSON(data []byte) error
- type OptXML
- func (o *OptXML) Decode(d *jx.Decoder) error
- func (o OptXML) Encode(e *jx.Encoder)
- func (o OptXML) Get() (v XML, ok bool)
- func (o OptXML) IsSet() bool
- func (s OptXML) MarshalJSON() ([]byte, error)
- func (o OptXML) Or(d XML) XML
- func (o *OptXML) Reset()
- func (o *OptXML) SetTo(v XML)
- func (s *OptXML) UnmarshalJSON(data []byte) error
- type Parameter
- func (s *Parameter) Decode(d *jx.Decoder) error
- func (s *Parameter) Encode(e *jx.Encoder)
- func (s *Parameter) GetAllowEmptyValue() OptBool
- func (s *Parameter) GetAllowReserved() OptBool
- func (s *Parameter) GetContent() OptMediaTypes
- func (s *Parameter) GetDeprecated() OptBool
- func (s *Parameter) GetDescription() OptString
- func (s *Parameter) GetExample() Any
- func (s *Parameter) GetExamples() OptExamplesOrReferences
- func (s *Parameter) GetExplode() OptBool
- func (s *Parameter) GetIn() ParameterIn
- func (s *Parameter) GetName() string
- func (s *Parameter) GetPattern0Props() ParameterPattern0
- func (s *Parameter) GetRequired() OptBool
- func (s *Parameter) GetSchema() *SchemaOrReference
- func (s *Parameter) GetStyle() OptParameterStyle
- func (s *Parameter) MarshalJSON() ([]byte, error)
- func (s *Parameter) SetAllowEmptyValue(val OptBool)
- func (s *Parameter) SetAllowReserved(val OptBool)
- func (s *Parameter) SetContent(val OptMediaTypes)
- func (s *Parameter) SetDeprecated(val OptBool)
- func (s *Parameter) SetDescription(val OptString)
- func (s *Parameter) SetExample(val Any)
- func (s *Parameter) SetExamples(val OptExamplesOrReferences)
- func (s *Parameter) SetExplode(val OptBool)
- func (s *Parameter) SetIn(val ParameterIn)
- func (s *Parameter) SetName(val string)
- func (s *Parameter) SetPattern0Props(val ParameterPattern0)
- func (s *Parameter) SetRequired(val OptBool)
- func (s *Parameter) SetSchema(val *SchemaOrReference)
- func (s *Parameter) SetStyle(val OptParameterStyle)
- func (s *Parameter) UnmarshalJSON(data []byte) error
- func (s *Parameter) Validate() error
- type ParameterIn
- func (ParameterIn) AllValues() []ParameterIn
- func (s *ParameterIn) Decode(d *jx.Decoder) error
- func (s ParameterIn) Encode(e *jx.Encoder)
- func (s ParameterIn) MarshalJSON() ([]byte, error)
- func (s ParameterIn) MarshalText() ([]byte, error)
- func (s *ParameterIn) UnmarshalJSON(data []byte) error
- func (s *ParameterIn) UnmarshalText(data []byte) error
- func (s ParameterIn) Validate() error
- type ParameterOrReference
- func (s *ParameterOrReference) Decode(d *jx.Decoder) error
- func (s ParameterOrReference) Encode(e *jx.Encoder)
- func (s ParameterOrReference) GetParameter() (v Parameter, ok bool)
- func (s ParameterOrReference) GetReference() (v Reference, ok bool)
- func (s ParameterOrReference) IsParameter() bool
- func (s ParameterOrReference) IsReference() bool
- func (s ParameterOrReference) MarshalJSON() ([]byte, error)
- func (s *ParameterOrReference) SetParameter(v Parameter)
- func (s *ParameterOrReference) SetReference(v Reference)
- func (s *ParameterOrReference) UnmarshalJSON(data []byte) error
- func (s ParameterOrReference) Validate() error
- type ParameterOrReferenceType
- type ParameterPattern0
- type ParameterStyle
- func (ParameterStyle) AllValues() []ParameterStyle
- func (s *ParameterStyle) Decode(d *jx.Decoder) error
- func (s ParameterStyle) Encode(e *jx.Encoder)
- func (s ParameterStyle) MarshalJSON() ([]byte, error)
- func (s ParameterStyle) MarshalText() ([]byte, error)
- func (s *ParameterStyle) UnmarshalJSON(data []byte) error
- func (s *ParameterStyle) UnmarshalText(data []byte) error
- func (s ParameterStyle) Validate() error
- type ParametersOrReferences
- type PathItem
- func (s *PathItem) Decode(d *jx.Decoder) error
- func (s *PathItem) Encode(e *jx.Encoder)
- func (s *PathItem) GetDelete() OptOperation
- func (s *PathItem) GetDescription() OptString
- func (s *PathItem) GetGet() OptOperation
- func (s *PathItem) GetHead() OptOperation
- func (s *PathItem) GetOptions() OptOperation
- func (s *PathItem) GetParameters() []ParameterOrReference
- func (s *PathItem) GetPatch() OptOperation
- func (s *PathItem) GetPattern0Props() PathItemPattern0
- func (s *PathItem) GetPost() OptOperation
- func (s *PathItem) GetPut() OptOperation
- func (s *PathItem) GetRef() OptString
- func (s *PathItem) GetServers() []Server
- func (s *PathItem) GetSummary() OptString
- func (s *PathItem) GetTrace() OptOperation
- func (s *PathItem) MarshalJSON() ([]byte, error)
- func (s *PathItem) SetDelete(val OptOperation)
- func (s *PathItem) SetDescription(val OptString)
- func (s *PathItem) SetGet(val OptOperation)
- func (s *PathItem) SetHead(val OptOperation)
- func (s *PathItem) SetOptions(val OptOperation)
- func (s *PathItem) SetParameters(val []ParameterOrReference)
- func (s *PathItem) SetPatch(val OptOperation)
- func (s *PathItem) SetPattern0Props(val PathItemPattern0)
- func (s *PathItem) SetPost(val OptOperation)
- func (s *PathItem) SetPut(val OptOperation)
- func (s *PathItem) SetRef(val OptString)
- func (s *PathItem) SetServers(val []Server)
- func (s *PathItem) SetSummary(val OptString)
- func (s *PathItem) SetTrace(val OptOperation)
- func (s *PathItem) UnmarshalJSON(data []byte) error
- func (s *PathItem) Validate() error
- type PathItemPattern0
- type Paths
- func (s *Paths) Decode(d *jx.Decoder) error
- func (s *Paths) Encode(e *jx.Encoder)
- func (s *Paths) GetPattern0Props() PathsPattern0
- func (s *Paths) GetPattern1Props() PathsPattern1
- func (s *Paths) MarshalJSON() ([]byte, error)
- func (s *Paths) SetPattern0Props(val PathsPattern0)
- func (s *Paths) SetPattern1Props(val PathsPattern1)
- func (s *Paths) UnmarshalJSON(data []byte) error
- func (s *Paths) Validate() error
- type PathsPattern0
- type PathsPattern1
- type Pattern
- type PositiveInteger
- type Reference
- type RequestBodiesOrReferences
- func (s *RequestBodiesOrReferences) Decode(d *jx.Decoder) error
- func (s RequestBodiesOrReferences) Encode(e *jx.Encoder)
- func (s RequestBodiesOrReferences) MarshalJSON() ([]byte, error)
- func (s *RequestBodiesOrReferences) UnmarshalJSON(data []byte) error
- func (s RequestBodiesOrReferences) Validate() error
- type RequestBody
- func (s *RequestBody) Decode(d *jx.Decoder) error
- func (s *RequestBody) Encode(e *jx.Encoder)
- func (s *RequestBody) GetContent() MediaTypes
- func (s *RequestBody) GetDescription() OptString
- func (s *RequestBody) GetPattern0Props() RequestBodyPattern0
- func (s *RequestBody) GetRequired() OptBool
- func (s *RequestBody) MarshalJSON() ([]byte, error)
- func (s *RequestBody) SetContent(val MediaTypes)
- func (s *RequestBody) SetDescription(val OptString)
- func (s *RequestBody) SetPattern0Props(val RequestBodyPattern0)
- func (s *RequestBody) SetRequired(val OptBool)
- func (s *RequestBody) UnmarshalJSON(data []byte) error
- func (s *RequestBody) Validate() error
- type RequestBodyOrReference
- func (s *RequestBodyOrReference) Decode(d *jx.Decoder) error
- func (s RequestBodyOrReference) Encode(e *jx.Encoder)
- func (s RequestBodyOrReference) GetReference() (v Reference, ok bool)
- func (s RequestBodyOrReference) GetRequestBody() (v RequestBody, ok bool)
- func (s RequestBodyOrReference) IsReference() bool
- func (s RequestBodyOrReference) IsRequestBody() bool
- func (s RequestBodyOrReference) MarshalJSON() ([]byte, error)
- func (s *RequestBodyOrReference) SetReference(v Reference)
- func (s *RequestBodyOrReference) SetRequestBody(v RequestBody)
- func (s *RequestBodyOrReference) UnmarshalJSON(data []byte) error
- func (s RequestBodyOrReference) Validate() error
- type RequestBodyOrReferenceType
- type RequestBodyPattern0
- type Response
- func (s *Response) Decode(d *jx.Decoder) error
- func (s *Response) Encode(e *jx.Encoder)
- func (s *Response) GetContent() OptMediaTypes
- func (s *Response) GetDescription() string
- func (s *Response) GetHeaders() OptHeadersOrReferences
- func (s *Response) GetLinks() OptLinksOrReferences
- func (s *Response) GetPattern0Props() ResponsePattern0
- func (s *Response) MarshalJSON() ([]byte, error)
- func (s *Response) SetContent(val OptMediaTypes)
- func (s *Response) SetDescription(val string)
- func (s *Response) SetHeaders(val OptHeadersOrReferences)
- func (s *Response) SetLinks(val OptLinksOrReferences)
- func (s *Response) SetPattern0Props(val ResponsePattern0)
- func (s *Response) UnmarshalJSON(data []byte) error
- func (s *Response) Validate() error
- type ResponseOrReference
- func (s *ResponseOrReference) Decode(d *jx.Decoder) error
- func (s ResponseOrReference) Encode(e *jx.Encoder)
- func (s ResponseOrReference) GetReference() (v Reference, ok bool)
- func (s ResponseOrReference) GetResponse() (v Response, ok bool)
- func (s ResponseOrReference) IsReference() bool
- func (s ResponseOrReference) IsResponse() bool
- func (s ResponseOrReference) MarshalJSON() ([]byte, error)
- func (s *ResponseOrReference) SetReference(v Reference)
- func (s *ResponseOrReference) SetResponse(v Response)
- func (s *ResponseOrReference) UnmarshalJSON(data []byte) error
- func (s ResponseOrReference) Validate() error
- type ResponseOrReferenceType
- type ResponsePattern0
- type Responses
- func (s *Responses) Decode(d *jx.Decoder) error
- func (s *Responses) Encode(e *jx.Encoder)
- func (s *Responses) GetDefault() OptResponseOrReference
- func (s *Responses) GetPattern0Props() ResponsesPattern0
- func (s *Responses) GetPattern1Props() ResponsesPattern1
- func (s *Responses) MarshalJSON() ([]byte, error)
- func (s *Responses) SetDefault(val OptResponseOrReference)
- func (s *Responses) SetPattern0Props(val ResponsesPattern0)
- func (s *Responses) SetPattern1Props(val ResponsesPattern1)
- func (s *Responses) UnmarshalJSON(data []byte) error
- func (s *Responses) Validate() error
- type ResponsesOrReferences
- type ResponsesPattern0
- type ResponsesPattern1
- type Schema
- func (s *Schema) Decode(d *jx.Decoder) error
- func (s *Schema) Encode(e *jx.Encoder)
- func (s *Schema) GetAdditionalProperties() *SchemaAdditionalProperties
- func (s *Schema) GetAllOf() []SchemaOrReference
- func (s *Schema) GetAnyOf() []SchemaOrReference
- func (s *Schema) GetDefault() DefaultType
- func (s *Schema) GetDeprecated() OptBool
- func (s *Schema) GetDescription() OptString
- func (s *Schema) GetDiscriminator() OptDiscriminator
- func (s *Schema) GetEnum() Enum
- func (s *Schema) GetExample() Any
- func (s *Schema) GetExclusiveMaximum() OptExclusiveMaximum
- func (s *Schema) GetExclusiveMinimum() OptExclusiveMinimum
- func (s *Schema) GetExternalDocs() OptExternalDocs
- func (s *Schema) GetFormat() OptString
- func (s *Schema) GetItems() *SchemaOrReference
- func (s *Schema) GetMaxItems() OptPositiveInteger
- func (s *Schema) GetMaxLength() OptPositiveInteger
- func (s *Schema) GetMaxProperties() OptPositiveInteger
- func (s *Schema) GetMaximum() OptMaximum
- func (s *Schema) GetMinItems() OptPositiveInteger
- func (s *Schema) GetMinLength() OptPositiveInteger
- func (s *Schema) GetMinProperties() OptPositiveInteger
- func (s *Schema) GetMinimum() OptMinimum
- func (s *Schema) GetMultipleOf() OptMultipleOf
- func (s *Schema) GetNot() *Schema
- func (s *Schema) GetNullable() OptBool
- func (s *Schema) GetOneOf() []SchemaOrReference
- func (s *Schema) GetPattern() OptPattern
- func (s *Schema) GetPattern0Props() SchemaPattern0
- func (s *Schema) GetProperties() OptSchemaProperties
- func (s *Schema) GetReadOnly() OptBool
- func (s *Schema) GetRequired() StringArray
- func (s *Schema) GetTitle() OptTitle
- func (s *Schema) GetType() OptSchemaType
- func (s *Schema) GetUniqueItems() OptUniqueItems
- func (s *Schema) GetWriteOnly() OptBool
- func (s *Schema) GetXML() OptXML
- func (s *Schema) MarshalJSON() ([]byte, error)
- func (s *Schema) SetAdditionalProperties(val *SchemaAdditionalProperties)
- func (s *Schema) SetAllOf(val []SchemaOrReference)
- func (s *Schema) SetAnyOf(val []SchemaOrReference)
- func (s *Schema) SetDefault(val DefaultType)
- func (s *Schema) SetDeprecated(val OptBool)
- func (s *Schema) SetDescription(val OptString)
- func (s *Schema) SetDiscriminator(val OptDiscriminator)
- func (s *Schema) SetEnum(val Enum)
- func (s *Schema) SetExample(val Any)
- func (s *Schema) SetExclusiveMaximum(val OptExclusiveMaximum)
- func (s *Schema) SetExclusiveMinimum(val OptExclusiveMinimum)
- func (s *Schema) SetExternalDocs(val OptExternalDocs)
- func (s *Schema) SetFormat(val OptString)
- func (s *Schema) SetItems(val *SchemaOrReference)
- func (s *Schema) SetMaxItems(val OptPositiveInteger)
- func (s *Schema) SetMaxLength(val OptPositiveInteger)
- func (s *Schema) SetMaxProperties(val OptPositiveInteger)
- func (s *Schema) SetMaximum(val OptMaximum)
- func (s *Schema) SetMinItems(val OptPositiveInteger)
- func (s *Schema) SetMinLength(val OptPositiveInteger)
- func (s *Schema) SetMinProperties(val OptPositiveInteger)
- func (s *Schema) SetMinimum(val OptMinimum)
- func (s *Schema) SetMultipleOf(val OptMultipleOf)
- func (s *Schema) SetNot(val *Schema)
- func (s *Schema) SetNullable(val OptBool)
- func (s *Schema) SetOneOf(val []SchemaOrReference)
- func (s *Schema) SetPattern(val OptPattern)
- func (s *Schema) SetPattern0Props(val SchemaPattern0)
- func (s *Schema) SetProperties(val OptSchemaProperties)
- func (s *Schema) SetReadOnly(val OptBool)
- func (s *Schema) SetRequired(val StringArray)
- func (s *Schema) SetTitle(val OptTitle)
- func (s *Schema) SetType(val OptSchemaType)
- func (s *Schema) SetUniqueItems(val OptUniqueItems)
- func (s *Schema) SetWriteOnly(val OptBool)
- func (s *Schema) SetXML(val OptXML)
- func (s *Schema) UnmarshalJSON(data []byte) error
- func (s *Schema) Validate() error
- type SchemaAdditionalProperties
- func (s *SchemaAdditionalProperties) Decode(d *jx.Decoder) error
- func (s SchemaAdditionalProperties) Encode(e *jx.Encoder)
- func (s SchemaAdditionalProperties) GetBool() (v bool, ok bool)
- func (s SchemaAdditionalProperties) GetSchemaOrReference() (v SchemaOrReference, ok bool)
- func (s SchemaAdditionalProperties) IsBool() bool
- func (s SchemaAdditionalProperties) IsSchemaOrReference() bool
- func (s SchemaAdditionalProperties) MarshalJSON() ([]byte, error)
- func (s *SchemaAdditionalProperties) SetBool(v bool)
- func (s *SchemaAdditionalProperties) SetSchemaOrReference(v SchemaOrReference)
- func (s *SchemaAdditionalProperties) UnmarshalJSON(data []byte) error
- func (s SchemaAdditionalProperties) Validate() error
- type SchemaAdditionalPropertiesType
- type SchemaOrReference
- func (s *SchemaOrReference) Decode(d *jx.Decoder) error
- func (s SchemaOrReference) Encode(e *jx.Encoder)
- func (s SchemaOrReference) GetReference() (v Reference, ok bool)
- func (s SchemaOrReference) GetSchema() (v Schema, ok bool)
- func (s SchemaOrReference) IsReference() bool
- func (s SchemaOrReference) IsSchema() bool
- func (s SchemaOrReference) MarshalJSON() ([]byte, error)
- func (s *SchemaOrReference) SetReference(v Reference)
- func (s *SchemaOrReference) SetSchema(v Schema)
- func (s *SchemaOrReference) UnmarshalJSON(data []byte) error
- func (s SchemaOrReference) Validate() error
- type SchemaOrReferenceType
- type SchemaPattern0
- type SchemaProperties
- type SchemaType
- func (SchemaType) AllValues() []SchemaType
- func (s *SchemaType) Decode(d *jx.Decoder) error
- func (s SchemaType) Encode(e *jx.Encoder)
- func (s SchemaType) MarshalJSON() ([]byte, error)
- func (s SchemaType) MarshalText() ([]byte, error)
- func (s *SchemaType) UnmarshalJSON(data []byte) error
- func (s *SchemaType) UnmarshalText(data []byte) error
- func (s SchemaType) Validate() error
- type SchemasOrReferences
- type SecurityRequirement
- type SecurityScheme
- func (s *SecurityScheme) Decode(d *jx.Decoder) error
- func (s *SecurityScheme) Encode(e *jx.Encoder)
- func (s *SecurityScheme) GetBearerFormat() OptString
- func (s *SecurityScheme) GetDescription() OptString
- func (s *SecurityScheme) GetFlows() OptOauthFlows
- func (s *SecurityScheme) GetIn() OptString
- func (s *SecurityScheme) GetName() OptString
- func (s *SecurityScheme) GetOpenIdConnectUrl() OptString
- func (s *SecurityScheme) GetPattern0Props() SecuritySchemePattern0
- func (s *SecurityScheme) GetScheme() OptString
- func (s *SecurityScheme) GetType() string
- func (s *SecurityScheme) MarshalJSON() ([]byte, error)
- func (s *SecurityScheme) SetBearerFormat(val OptString)
- func (s *SecurityScheme) SetDescription(val OptString)
- func (s *SecurityScheme) SetFlows(val OptOauthFlows)
- func (s *SecurityScheme) SetIn(val OptString)
- func (s *SecurityScheme) SetName(val OptString)
- func (s *SecurityScheme) SetOpenIdConnectUrl(val OptString)
- func (s *SecurityScheme) SetPattern0Props(val SecuritySchemePattern0)
- func (s *SecurityScheme) SetScheme(val OptString)
- func (s *SecurityScheme) SetType(val string)
- func (s *SecurityScheme) UnmarshalJSON(data []byte) error
- type SecuritySchemeOrReference
- func (s *SecuritySchemeOrReference) Decode(d *jx.Decoder) error
- func (s SecuritySchemeOrReference) Encode(e *jx.Encoder)
- func (s SecuritySchemeOrReference) GetReference() (v Reference, ok bool)
- func (s SecuritySchemeOrReference) GetSecurityScheme() (v SecurityScheme, ok bool)
- func (s SecuritySchemeOrReference) IsReference() bool
- func (s SecuritySchemeOrReference) IsSecurityScheme() bool
- func (s SecuritySchemeOrReference) MarshalJSON() ([]byte, error)
- func (s *SecuritySchemeOrReference) SetReference(v Reference)
- func (s *SecuritySchemeOrReference) SetSecurityScheme(v SecurityScheme)
- func (s *SecuritySchemeOrReference) UnmarshalJSON(data []byte) error
- type SecuritySchemeOrReferenceType
- type SecuritySchemePattern0
- type SecuritySchemesOrReferences
- type Server
- func (s *Server) Decode(d *jx.Decoder) error
- func (s *Server) Encode(e *jx.Encoder)
- func (s *Server) GetDescription() OptString
- func (s *Server) GetPattern0Props() ServerPattern0
- func (s *Server) GetURL() string
- func (s *Server) GetVariables() OptServerVariables
- func (s *Server) MarshalJSON() ([]byte, error)
- func (s *Server) SetDescription(val OptString)
- func (s *Server) SetPattern0Props(val ServerPattern0)
- func (s *Server) SetURL(val string)
- func (s *Server) SetVariables(val OptServerVariables)
- func (s *Server) UnmarshalJSON(data []byte) error
- type ServerPattern0
- type ServerVariable
- func (s *ServerVariable) Decode(d *jx.Decoder) error
- func (s *ServerVariable) Encode(e *jx.Encoder)
- func (s *ServerVariable) GetDefault() string
- func (s *ServerVariable) GetDescription() OptString
- func (s *ServerVariable) GetEnum() []string
- func (s *ServerVariable) GetPattern0Props() ServerVariablePattern0
- func (s *ServerVariable) MarshalJSON() ([]byte, error)
- func (s *ServerVariable) SetDefault(val string)
- func (s *ServerVariable) SetDescription(val OptString)
- func (s *ServerVariable) SetEnum(val []string)
- func (s *ServerVariable) SetPattern0Props(val ServerVariablePattern0)
- func (s *ServerVariable) UnmarshalJSON(data []byte) error
- type ServerVariablePattern0
- type ServerVariables
- type Spec
- func (s *Spec) Decode(d *jx.Decoder) error
- func (s *Spec) Encode(e *jx.Encoder)
- func (s *Spec) GetComponents() OptComponents
- func (s *Spec) GetExternalDocs() OptExternalDocs
- func (s *Spec) GetInfo() Info
- func (s *Spec) GetOpenapi() string
- func (s *Spec) GetPaths() Paths
- func (s *Spec) GetPattern0Props() SpecPattern0
- func (s *Spec) GetSecurity() []SecurityRequirement
- func (s *Spec) GetServers() []Server
- func (s *Spec) GetTags() []Tag
- func (s *Spec) MarshalJSON() ([]byte, error)
- func (s *Spec) SetComponents(val OptComponents)
- func (s *Spec) SetExternalDocs(val OptExternalDocs)
- func (s *Spec) SetInfo(val Info)
- func (s *Spec) SetOpenapi(val string)
- func (s *Spec) SetPaths(val Paths)
- func (s *Spec) SetPattern0Props(val SpecPattern0)
- func (s *Spec) SetSecurity(val []SecurityRequirement)
- func (s *Spec) SetServers(val []Server)
- func (s *Spec) SetTags(val []Tag)
- func (s *Spec) UnmarshalJSON(data []byte) error
- func (s *Spec) Validate() error
- type SpecPattern0
- type SpecificationExtension
- type StringArray
- type Strings
- type Tag
- func (s *Tag) Decode(d *jx.Decoder) error
- func (s *Tag) Encode(e *jx.Encoder)
- func (s *Tag) GetDescription() OptString
- func (s *Tag) GetExternalDocs() OptExternalDocs
- func (s *Tag) GetName() string
- func (s *Tag) GetPattern0Props() TagPattern0
- func (s *Tag) MarshalJSON() ([]byte, error)
- func (s *Tag) SetDescription(val OptString)
- func (s *Tag) SetExternalDocs(val OptExternalDocs)
- func (s *Tag) SetName(val string)
- func (s *Tag) SetPattern0Props(val TagPattern0)
- func (s *Tag) UnmarshalJSON(data []byte) error
- type TagPattern0
- type Title
- type UniqueItems
- type XML
- func (s *XML) Decode(d *jx.Decoder) error
- func (s *XML) Encode(e *jx.Encoder)
- func (s *XML) GetAttribute() OptBool
- func (s *XML) GetName() OptString
- func (s *XML) GetNamespace() OptString
- func (s *XML) GetPattern0Props() XMLPattern0
- func (s *XML) GetPrefix() OptString
- func (s *XML) GetWrapped() OptBool
- func (s *XML) MarshalJSON() ([]byte, error)
- func (s *XML) SetAttribute(val OptBool)
- func (s *XML) SetName(val OptString)
- func (s *XML) SetNamespace(val OptString)
- func (s *XML) SetPattern0Props(val XMLPattern0)
- func (s *XML) SetPrefix(val OptString)
- func (s *XML) SetWrapped(val OptBool)
- func (s *XML) UnmarshalJSON(data []byte) error
- type XMLPattern0
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Any ¶
func (Any) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Any) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type AnysOrExpressions ¶
Ref: #/definitions/anysOrExpressions
func (*AnysOrExpressions) Decode ¶
func (s *AnysOrExpressions) Decode(d *jx.Decoder) error
Decode decodes AnysOrExpressions from json.
func (AnysOrExpressions) Encode ¶
func (s AnysOrExpressions) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (AnysOrExpressions) MarshalJSON ¶
func (s AnysOrExpressions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AnysOrExpressions) UnmarshalJSON ¶
func (s *AnysOrExpressions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Callback ¶
type Callback struct {
// Pattern: "^".
Pattern0Props CallbackPattern0
// Pattern: "^x-".
Pattern1Props CallbackPattern1
}
A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the callback object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation. Ref: #/definitions/callback
func (*Callback) GetPattern0Props ¶
func (s *Callback) GetPattern0Props() CallbackPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Callback) GetPattern1Props ¶
func (s *Callback) GetPattern1Props() CallbackPattern1
GetPattern1Props returns the value of Pattern1Props.
func (*Callback) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Callback) SetPattern0Props ¶
func (s *Callback) SetPattern0Props(val CallbackPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Callback) SetPattern1Props ¶
func (s *Callback) SetPattern1Props(val CallbackPattern1)
SetPattern1Props sets the value of Pattern1Props.
func (*Callback) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type CallbackOrReference ¶
type CallbackOrReference struct {
Type CallbackOrReferenceType // switch on this field
Callback Callback
Reference Reference
}
Ref: #/definitions/callbackOrReference CallbackOrReference represents sum type.
func NewCallbackCallbackOrReference ¶
func NewCallbackCallbackOrReference(v Callback) CallbackOrReference
NewCallbackCallbackOrReference returns new CallbackOrReference from Callback.
func NewReferenceCallbackOrReference ¶
func NewReferenceCallbackOrReference(v Reference) CallbackOrReference
NewReferenceCallbackOrReference returns new CallbackOrReference from Reference.
func (*CallbackOrReference) Decode ¶
func (s *CallbackOrReference) Decode(d *jx.Decoder) error
Decode decodes CallbackOrReference from json.
func (CallbackOrReference) Encode ¶
func (s CallbackOrReference) Encode(e *jx.Encoder)
Encode encodes CallbackOrReference as json.
func (CallbackOrReference) GetCallback ¶
func (s CallbackOrReference) GetCallback() (v Callback, ok bool)
GetCallback returns Callback and true boolean if CallbackOrReference is Callback.
func (CallbackOrReference) GetReference ¶
func (s CallbackOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if CallbackOrReference is Reference.
func (CallbackOrReference) IsCallback ¶
func (s CallbackOrReference) IsCallback() bool
IsCallback reports whether CallbackOrReference is Callback.
func (CallbackOrReference) IsReference ¶
func (s CallbackOrReference) IsReference() bool
IsReference reports whether CallbackOrReference is Reference.
func (CallbackOrReference) MarshalJSON ¶
func (s CallbackOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CallbackOrReference) SetCallback ¶
func (s *CallbackOrReference) SetCallback(v Callback)
SetCallback sets CallbackOrReference to Callback.
func (*CallbackOrReference) SetReference ¶
func (s *CallbackOrReference) SetReference(v Reference)
SetReference sets CallbackOrReference to Reference.
func (*CallbackOrReference) UnmarshalJSON ¶
func (s *CallbackOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CallbackOrReference) Validate ¶
func (s CallbackOrReference) Validate() error
type CallbackOrReferenceType ¶
type CallbackOrReferenceType string
CallbackOrReferenceType is oneOf type of CallbackOrReference.
const ( CallbackCallbackOrReference CallbackOrReferenceType = "Callback" ReferenceCallbackOrReference CallbackOrReferenceType = "Reference" )
Possible values for CallbackOrReferenceType.
type CallbackPattern0 ¶
func (*CallbackPattern0) Decode ¶
func (s *CallbackPattern0) Decode(d *jx.Decoder) error
Decode decodes CallbackPattern0 from json.
func (CallbackPattern0) Encode ¶
func (s CallbackPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CallbackPattern0) MarshalJSON ¶
func (s CallbackPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CallbackPattern0) UnmarshalJSON ¶
func (s *CallbackPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CallbackPattern0) Validate ¶
func (s CallbackPattern0) Validate() error
type CallbackPattern1 ¶
type CallbackPattern1 map[string]SpecificationExtension
func (*CallbackPattern1) Decode ¶
func (s *CallbackPattern1) Decode(d *jx.Decoder) error
Decode decodes CallbackPattern1 from json.
func (CallbackPattern1) Encode ¶
func (s CallbackPattern1) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CallbackPattern1) MarshalJSON ¶
func (s CallbackPattern1) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CallbackPattern1) UnmarshalJSON ¶
func (s *CallbackPattern1) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CallbacksOrReferences ¶
type CallbacksOrReferences map[string]CallbackOrReference
Ref: #/definitions/callbacksOrReferences
func (*CallbacksOrReferences) Decode ¶
func (s *CallbacksOrReferences) Decode(d *jx.Decoder) error
Decode decodes CallbacksOrReferences from json.
func (CallbacksOrReferences) Encode ¶
func (s CallbacksOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (CallbacksOrReferences) MarshalJSON ¶
func (s CallbacksOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CallbacksOrReferences) UnmarshalJSON ¶
func (s *CallbacksOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CallbacksOrReferences) Validate ¶
func (s CallbacksOrReferences) Validate() error
type Components ¶
type Components struct {
Schemas OptSchemasOrReferences `json:"schemas"`
Responses OptResponsesOrReferences `json:"responses"`
Parameters OptParametersOrReferences `json:"parameters"`
Examples OptExamplesOrReferences `json:"examples"`
RequestBodies OptRequestBodiesOrReferences `json:"requestBodies"`
Headers OptHeadersOrReferences `json:"headers"`
SecuritySchemes OptSecuritySchemesOrReferences `json:"securitySchemes"`
Links OptLinksOrReferences `json:"links"`
Callbacks OptCallbacksOrReferences `json:"callbacks"`
// Pattern: "^x-".
Pattern0Props ComponentsPattern0
}
Holds a set of reusable objects for different aspects of the OAS. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object. Ref: #/definitions/components
func (*Components) Decode ¶
func (s *Components) Decode(d *jx.Decoder) error
Decode decodes Components from json.
func (*Components) Encode ¶
func (s *Components) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Components) GetCallbacks ¶
func (s *Components) GetCallbacks() OptCallbacksOrReferences
GetCallbacks returns the value of Callbacks.
func (*Components) GetExamples ¶
func (s *Components) GetExamples() OptExamplesOrReferences
GetExamples returns the value of Examples.
func (*Components) GetHeaders ¶
func (s *Components) GetHeaders() OptHeadersOrReferences
GetHeaders returns the value of Headers.
func (*Components) GetLinks ¶
func (s *Components) GetLinks() OptLinksOrReferences
GetLinks returns the value of Links.
func (*Components) GetParameters ¶
func (s *Components) GetParameters() OptParametersOrReferences
GetParameters returns the value of Parameters.
func (*Components) GetPattern0Props ¶
func (s *Components) GetPattern0Props() ComponentsPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Components) GetRequestBodies ¶
func (s *Components) GetRequestBodies() OptRequestBodiesOrReferences
GetRequestBodies returns the value of RequestBodies.
func (*Components) GetResponses ¶
func (s *Components) GetResponses() OptResponsesOrReferences
GetResponses returns the value of Responses.
func (*Components) GetSchemas ¶
func (s *Components) GetSchemas() OptSchemasOrReferences
GetSchemas returns the value of Schemas.
func (*Components) GetSecuritySchemes ¶
func (s *Components) GetSecuritySchemes() OptSecuritySchemesOrReferences
GetSecuritySchemes returns the value of SecuritySchemes.
func (*Components) MarshalJSON ¶
func (s *Components) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Components) SetCallbacks ¶
func (s *Components) SetCallbacks(val OptCallbacksOrReferences)
SetCallbacks sets the value of Callbacks.
func (*Components) SetExamples ¶
func (s *Components) SetExamples(val OptExamplesOrReferences)
SetExamples sets the value of Examples.
func (*Components) SetHeaders ¶
func (s *Components) SetHeaders(val OptHeadersOrReferences)
SetHeaders sets the value of Headers.
func (*Components) SetLinks ¶
func (s *Components) SetLinks(val OptLinksOrReferences)
SetLinks sets the value of Links.
func (*Components) SetParameters ¶
func (s *Components) SetParameters(val OptParametersOrReferences)
SetParameters sets the value of Parameters.
func (*Components) SetPattern0Props ¶
func (s *Components) SetPattern0Props(val ComponentsPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Components) SetRequestBodies ¶
func (s *Components) SetRequestBodies(val OptRequestBodiesOrReferences)
SetRequestBodies sets the value of RequestBodies.
func (*Components) SetResponses ¶
func (s *Components) SetResponses(val OptResponsesOrReferences)
SetResponses sets the value of Responses.
func (*Components) SetSchemas ¶
func (s *Components) SetSchemas(val OptSchemasOrReferences)
SetSchemas sets the value of Schemas.
func (*Components) SetSecuritySchemes ¶
func (s *Components) SetSecuritySchemes(val OptSecuritySchemesOrReferences)
SetSecuritySchemes sets the value of SecuritySchemes.
func (*Components) UnmarshalJSON ¶
func (s *Components) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*Components) Validate ¶
func (s *Components) Validate() error
type ComponentsPattern0 ¶
type ComponentsPattern0 map[string]SpecificationExtension
func (*ComponentsPattern0) Decode ¶
func (s *ComponentsPattern0) Decode(d *jx.Decoder) error
Decode decodes ComponentsPattern0 from json.
func (ComponentsPattern0) Encode ¶
func (s ComponentsPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ComponentsPattern0) MarshalJSON ¶
func (s ComponentsPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ComponentsPattern0) UnmarshalJSON ¶
func (s *ComponentsPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Contact ¶
type Contact struct {
Name OptString `json:"name"`
URL OptString `json:"url"`
Email OptString `json:"email"`
// Pattern: "^x-".
Pattern0Props ContactPattern0
}
Contact information for the exposed API. Ref: #/definitions/contact
func (*Contact) GetPattern0Props ¶
func (s *Contact) GetPattern0Props() ContactPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Contact) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Contact) SetPattern0Props ¶
func (s *Contact) SetPattern0Props(val ContactPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Contact) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ContactPattern0 ¶
type ContactPattern0 map[string]SpecificationExtension
func (*ContactPattern0) Decode ¶
func (s *ContactPattern0) Decode(d *jx.Decoder) error
Decode decodes ContactPattern0 from json.
func (ContactPattern0) Encode ¶
func (s ContactPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ContactPattern0) MarshalJSON ¶
func (s ContactPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ContactPattern0) UnmarshalJSON ¶
func (s *ContactPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DefaultType ¶
func (*DefaultType) Decode ¶
func (s *DefaultType) Decode(d *jx.Decoder) error
Decode decodes DefaultType from json.
func (DefaultType) Encode ¶
func (s DefaultType) Encode(e *jx.Encoder)
Encode encodes DefaultType as json.
func (DefaultType) MarshalJSON ¶
func (s DefaultType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DefaultType) UnmarshalJSON ¶
func (s *DefaultType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Discriminator ¶
type Discriminator struct {
PropertyName string `json:"propertyName"`
Mapping OptStrings `json:"mapping"`
}
When request bodies or response payloads may be one of a number of different schemas, a `discriminator` object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the specification of an alternative schema based on the value associated with it. When using the discriminator, _inline_ schemas will not be considered. Ref: #/definitions/discriminator
func (*Discriminator) Decode ¶
func (s *Discriminator) Decode(d *jx.Decoder) error
Decode decodes Discriminator from json.
func (*Discriminator) Encode ¶
func (s *Discriminator) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Discriminator) GetMapping ¶
func (s *Discriminator) GetMapping() OptStrings
GetMapping returns the value of Mapping.
func (*Discriminator) GetPropertyName ¶
func (s *Discriminator) GetPropertyName() string
GetPropertyName returns the value of PropertyName.
func (*Discriminator) MarshalJSON ¶
func (s *Discriminator) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Discriminator) SetMapping ¶
func (s *Discriminator) SetMapping(val OptStrings)
SetMapping sets the value of Mapping.
func (*Discriminator) SetPropertyName ¶
func (s *Discriminator) SetPropertyName(val string)
SetPropertyName sets the value of PropertyName.
func (*Discriminator) UnmarshalJSON ¶
func (s *Discriminator) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Encoding ¶
type Encoding struct {
ContentType OptString `json:"contentType"`
Headers OptHeadersOrReferences `json:"headers"`
Style OptString `json:"style"`
Explode OptBool `json:"explode"`
AllowReserved OptBool `json:"allowReserved"`
// Pattern: "^x-".
Pattern0Props EncodingPattern0
}
A single encoding definition applied to a single schema property. Ref: #/definitions/encoding
func (*Encoding) GetAllowReserved ¶
GetAllowReserved returns the value of AllowReserved.
func (*Encoding) GetContentType ¶
GetContentType returns the value of ContentType.
func (*Encoding) GetExplode ¶
GetExplode returns the value of Explode.
func (*Encoding) GetHeaders ¶
func (s *Encoding) GetHeaders() OptHeadersOrReferences
GetHeaders returns the value of Headers.
func (*Encoding) GetPattern0Props ¶
func (s *Encoding) GetPattern0Props() EncodingPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Encoding) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Encoding) SetAllowReserved ¶
SetAllowReserved sets the value of AllowReserved.
func (*Encoding) SetContentType ¶
SetContentType sets the value of ContentType.
func (*Encoding) SetExplode ¶
SetExplode sets the value of Explode.
func (*Encoding) SetHeaders ¶
func (s *Encoding) SetHeaders(val OptHeadersOrReferences)
SetHeaders sets the value of Headers.
func (*Encoding) SetPattern0Props ¶
func (s *Encoding) SetPattern0Props(val EncodingPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Encoding) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EncodingPattern0 ¶
type EncodingPattern0 map[string]SpecificationExtension
func (*EncodingPattern0) Decode ¶
func (s *EncodingPattern0) Decode(d *jx.Decoder) error
Decode decodes EncodingPattern0 from json.
func (EncodingPattern0) Encode ¶
func (s EncodingPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (EncodingPattern0) MarshalJSON ¶
func (s EncodingPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EncodingPattern0) UnmarshalJSON ¶
func (s *EncodingPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Encodings ¶
Ref: #/definitions/encodings
func (Encodings) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Encodings) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Enum ¶
func (Enum) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Enum) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Example ¶
type Example struct {
Summary OptString `json:"summary"`
Description OptString `json:"description"`
Value Any `json:"value"`
ExternalValue OptString `json:"externalValue"`
// Pattern: "^x-".
Pattern0Props ExamplePattern0
}
Ref: #/definitions/example
func (*Example) GetDescription ¶
GetDescription returns the value of Description.
func (*Example) GetExternalValue ¶
GetExternalValue returns the value of ExternalValue.
func (*Example) GetPattern0Props ¶
func (s *Example) GetPattern0Props() ExamplePattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Example) GetSummary ¶
GetSummary returns the value of Summary.
func (*Example) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Example) SetDescription ¶
SetDescription sets the value of Description.
func (*Example) SetExternalValue ¶
SetExternalValue sets the value of ExternalValue.
func (*Example) SetPattern0Props ¶
func (s *Example) SetPattern0Props(val ExamplePattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Example) SetSummary ¶
SetSummary sets the value of Summary.
func (*Example) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ExampleOrReference ¶
type ExampleOrReference struct {
Type ExampleOrReferenceType // switch on this field
Example Example
Reference Reference
}
Ref: #/definitions/exampleOrReference ExampleOrReference represents sum type.
func NewExampleExampleOrReference ¶
func NewExampleExampleOrReference(v Example) ExampleOrReference
NewExampleExampleOrReference returns new ExampleOrReference from Example.
func NewReferenceExampleOrReference ¶
func NewReferenceExampleOrReference(v Reference) ExampleOrReference
NewReferenceExampleOrReference returns new ExampleOrReference from Reference.
func (*ExampleOrReference) Decode ¶
func (s *ExampleOrReference) Decode(d *jx.Decoder) error
Decode decodes ExampleOrReference from json.
func (ExampleOrReference) Encode ¶
func (s ExampleOrReference) Encode(e *jx.Encoder)
Encode encodes ExampleOrReference as json.
func (ExampleOrReference) GetExample ¶
func (s ExampleOrReference) GetExample() (v Example, ok bool)
GetExample returns Example and true boolean if ExampleOrReference is Example.
func (ExampleOrReference) GetReference ¶
func (s ExampleOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if ExampleOrReference is Reference.
func (ExampleOrReference) IsExample ¶
func (s ExampleOrReference) IsExample() bool
IsExample reports whether ExampleOrReference is Example.
func (ExampleOrReference) IsReference ¶
func (s ExampleOrReference) IsReference() bool
IsReference reports whether ExampleOrReference is Reference.
func (ExampleOrReference) MarshalJSON ¶
func (s ExampleOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExampleOrReference) SetExample ¶
func (s *ExampleOrReference) SetExample(v Example)
SetExample sets ExampleOrReference to Example.
func (*ExampleOrReference) SetReference ¶
func (s *ExampleOrReference) SetReference(v Reference)
SetReference sets ExampleOrReference to Reference.
func (*ExampleOrReference) UnmarshalJSON ¶
func (s *ExampleOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExampleOrReferenceType ¶
type ExampleOrReferenceType string
ExampleOrReferenceType is oneOf type of ExampleOrReference.
const ( ExampleExampleOrReference ExampleOrReferenceType = "Example" ReferenceExampleOrReference ExampleOrReferenceType = "Reference" )
Possible values for ExampleOrReferenceType.
type ExamplePattern0 ¶
type ExamplePattern0 map[string]SpecificationExtension
func (*ExamplePattern0) Decode ¶
func (s *ExamplePattern0) Decode(d *jx.Decoder) error
Decode decodes ExamplePattern0 from json.
func (ExamplePattern0) Encode ¶
func (s ExamplePattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ExamplePattern0) MarshalJSON ¶
func (s ExamplePattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExamplePattern0) UnmarshalJSON ¶
func (s *ExamplePattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExamplesOrReferences ¶
type ExamplesOrReferences map[string]ExampleOrReference
Ref: #/definitions/examplesOrReferences
func (*ExamplesOrReferences) Decode ¶
func (s *ExamplesOrReferences) Decode(d *jx.Decoder) error
Decode decodes ExamplesOrReferences from json.
func (ExamplesOrReferences) Encode ¶
func (s ExamplesOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ExamplesOrReferences) MarshalJSON ¶
func (s ExamplesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExamplesOrReferences) UnmarshalJSON ¶
func (s *ExamplesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExclusiveMaximum ¶
type ExclusiveMaximum bool
func (*ExclusiveMaximum) Decode ¶
func (s *ExclusiveMaximum) Decode(d *jx.Decoder) error
Decode decodes ExclusiveMaximum from json.
func (ExclusiveMaximum) Encode ¶
func (s ExclusiveMaximum) Encode(e *jx.Encoder)
Encode encodes ExclusiveMaximum as json.
func (ExclusiveMaximum) MarshalJSON ¶
func (s ExclusiveMaximum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExclusiveMaximum) UnmarshalJSON ¶
func (s *ExclusiveMaximum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExclusiveMinimum ¶
type ExclusiveMinimum bool
func (*ExclusiveMinimum) Decode ¶
func (s *ExclusiveMinimum) Decode(d *jx.Decoder) error
Decode decodes ExclusiveMinimum from json.
func (ExclusiveMinimum) Encode ¶
func (s ExclusiveMinimum) Encode(e *jx.Encoder)
Encode encodes ExclusiveMinimum as json.
func (ExclusiveMinimum) MarshalJSON ¶
func (s ExclusiveMinimum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExclusiveMinimum) UnmarshalJSON ¶
func (s *ExclusiveMinimum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExternalDocs ¶
type ExternalDocs struct {
Description OptString `json:"description"`
URL string `json:"url"`
// Pattern: "^x-".
Pattern0Props ExternalDocsPattern0
}
Allows referencing an external resource for extended documentation. Ref: #/definitions/externalDocs
func (*ExternalDocs) Decode ¶
func (s *ExternalDocs) Decode(d *jx.Decoder) error
Decode decodes ExternalDocs from json.
func (*ExternalDocs) Encode ¶
func (s *ExternalDocs) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ExternalDocs) GetDescription ¶
func (s *ExternalDocs) GetDescription() OptString
GetDescription returns the value of Description.
func (*ExternalDocs) GetPattern0Props ¶
func (s *ExternalDocs) GetPattern0Props() ExternalDocsPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*ExternalDocs) GetURL ¶
func (s *ExternalDocs) GetURL() string
GetURL returns the value of URL.
func (*ExternalDocs) MarshalJSON ¶
func (s *ExternalDocs) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExternalDocs) SetDescription ¶
func (s *ExternalDocs) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*ExternalDocs) SetPattern0Props ¶
func (s *ExternalDocs) SetPattern0Props(val ExternalDocsPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*ExternalDocs) SetURL ¶
func (s *ExternalDocs) SetURL(val string)
SetURL sets the value of URL.
func (*ExternalDocs) UnmarshalJSON ¶
func (s *ExternalDocs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ExternalDocsPattern0 ¶
type ExternalDocsPattern0 map[string]SpecificationExtension
func (*ExternalDocsPattern0) Decode ¶
func (s *ExternalDocsPattern0) Decode(d *jx.Decoder) error
Decode decodes ExternalDocsPattern0 from json.
func (ExternalDocsPattern0) Encode ¶
func (s ExternalDocsPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ExternalDocsPattern0) MarshalJSON ¶
func (s ExternalDocsPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExternalDocsPattern0) UnmarshalJSON ¶
func (s *ExternalDocsPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Header ¶
type Header struct {
Description OptString `json:"description"`
Required OptBool `json:"required"`
Deprecated OptBool `json:"deprecated"`
AllowEmptyValue OptBool `json:"allowEmptyValue"`
Style OptString `json:"style"`
Explode OptBool `json:"explode"`
AllowReserved OptBool `json:"allowReserved"`
Schema *SchemaOrReference `json:"schema"`
Example Any `json:"example"`
Examples OptExamplesOrReferences `json:"examples"`
Content OptMediaTypes `json:"content"`
// Pattern: "^x-".
Pattern0Props HeaderPattern0
}
The Header Object follows the structure of the Parameter Object with the following changes: 1. `name` MUST NOT be specified, it is given in the corresponding `headers` map. 1. `in` MUST NOT be specified, it is implicitly in `header`. 1. All traits that are affected by the location MUST be applicable to a location of `header` (for example, `style`). Ref: #/definitions/header
func (*Header) GetAllowEmptyValue ¶
GetAllowEmptyValue returns the value of AllowEmptyValue.
func (*Header) GetAllowReserved ¶
GetAllowReserved returns the value of AllowReserved.
func (*Header) GetContent ¶
func (s *Header) GetContent() OptMediaTypes
GetContent returns the value of Content.
func (*Header) GetDeprecated ¶
GetDeprecated returns the value of Deprecated.
func (*Header) GetDescription ¶
GetDescription returns the value of Description.
func (*Header) GetExample ¶
GetExample returns the value of Example.
func (*Header) GetExamples ¶
func (s *Header) GetExamples() OptExamplesOrReferences
GetExamples returns the value of Examples.
func (*Header) GetExplode ¶
GetExplode returns the value of Explode.
func (*Header) GetPattern0Props ¶
func (s *Header) GetPattern0Props() HeaderPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Header) GetRequired ¶
GetRequired returns the value of Required.
func (*Header) GetSchema ¶
func (s *Header) GetSchema() *SchemaOrReference
GetSchema returns the value of Schema.
func (*Header) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Header) SetAllowEmptyValue ¶
SetAllowEmptyValue sets the value of AllowEmptyValue.
func (*Header) SetAllowReserved ¶
SetAllowReserved sets the value of AllowReserved.
func (*Header) SetContent ¶
func (s *Header) SetContent(val OptMediaTypes)
SetContent sets the value of Content.
func (*Header) SetDeprecated ¶
SetDeprecated sets the value of Deprecated.
func (*Header) SetDescription ¶
SetDescription sets the value of Description.
func (*Header) SetExample ¶
SetExample sets the value of Example.
func (*Header) SetExamples ¶
func (s *Header) SetExamples(val OptExamplesOrReferences)
SetExamples sets the value of Examples.
func (*Header) SetExplode ¶
SetExplode sets the value of Explode.
func (*Header) SetPattern0Props ¶
func (s *Header) SetPattern0Props(val HeaderPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Header) SetRequired ¶
SetRequired sets the value of Required.
func (*Header) SetSchema ¶
func (s *Header) SetSchema(val *SchemaOrReference)
SetSchema sets the value of Schema.
func (*Header) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HeaderOrReference ¶
type HeaderOrReference struct {
Type HeaderOrReferenceType // switch on this field
Header Header
Reference Reference
}
Ref: #/definitions/headerOrReference HeaderOrReference represents sum type.
func NewHeaderHeaderOrReference ¶
func NewHeaderHeaderOrReference(v Header) HeaderOrReference
NewHeaderHeaderOrReference returns new HeaderOrReference from Header.
func NewReferenceHeaderOrReference ¶
func NewReferenceHeaderOrReference(v Reference) HeaderOrReference
NewReferenceHeaderOrReference returns new HeaderOrReference from Reference.
func (*HeaderOrReference) Decode ¶
func (s *HeaderOrReference) Decode(d *jx.Decoder) error
Decode decodes HeaderOrReference from json.
func (HeaderOrReference) Encode ¶
func (s HeaderOrReference) Encode(e *jx.Encoder)
Encode encodes HeaderOrReference as json.
func (HeaderOrReference) GetHeader ¶
func (s HeaderOrReference) GetHeader() (v Header, ok bool)
GetHeader returns Header and true boolean if HeaderOrReference is Header.
func (HeaderOrReference) GetReference ¶
func (s HeaderOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if HeaderOrReference is Reference.
func (HeaderOrReference) IsHeader ¶
func (s HeaderOrReference) IsHeader() bool
IsHeader reports whether HeaderOrReference is Header.
func (HeaderOrReference) IsReference ¶
func (s HeaderOrReference) IsReference() bool
IsReference reports whether HeaderOrReference is Reference.
func (HeaderOrReference) MarshalJSON ¶
func (s HeaderOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HeaderOrReference) SetHeader ¶
func (s *HeaderOrReference) SetHeader(v Header)
SetHeader sets HeaderOrReference to Header.
func (*HeaderOrReference) SetReference ¶
func (s *HeaderOrReference) SetReference(v Reference)
SetReference sets HeaderOrReference to Reference.
func (*HeaderOrReference) UnmarshalJSON ¶
func (s *HeaderOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (HeaderOrReference) Validate ¶
func (s HeaderOrReference) Validate() error
type HeaderOrReferenceType ¶
type HeaderOrReferenceType string
HeaderOrReferenceType is oneOf type of HeaderOrReference.
const ( HeaderHeaderOrReference HeaderOrReferenceType = "Header" ReferenceHeaderOrReference HeaderOrReferenceType = "Reference" )
Possible values for HeaderOrReferenceType.
type HeaderPattern0 ¶
type HeaderPattern0 map[string]SpecificationExtension
func (*HeaderPattern0) Decode ¶
func (s *HeaderPattern0) Decode(d *jx.Decoder) error
Decode decodes HeaderPattern0 from json.
func (HeaderPattern0) Encode ¶
func (s HeaderPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (HeaderPattern0) MarshalJSON ¶
func (s HeaderPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HeaderPattern0) UnmarshalJSON ¶
func (s *HeaderPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type HeadersOrReferences ¶
type HeadersOrReferences map[string]HeaderOrReference
Ref: #/definitions/headersOrReferences
func (*HeadersOrReferences) Decode ¶
func (s *HeadersOrReferences) Decode(d *jx.Decoder) error
Decode decodes HeadersOrReferences from json.
func (HeadersOrReferences) Encode ¶
func (s HeadersOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (HeadersOrReferences) MarshalJSON ¶
func (s HeadersOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HeadersOrReferences) UnmarshalJSON ¶
func (s *HeadersOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (HeadersOrReferences) Validate ¶
func (s HeadersOrReferences) Validate() error
type Info ¶
type Info struct {
Title string `json:"title"`
Description OptString `json:"description"`
TermsOfService OptString `json:"termsOfService"`
Contact OptContact `json:"contact"`
License OptLicense `json:"license"`
Version string `json:"version"`
// Pattern: "^x-".
Pattern0Props InfoPattern0
}
The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience. Ref: #/definitions/info
func (*Info) GetContact ¶
func (s *Info) GetContact() OptContact
GetContact returns the value of Contact.
func (*Info) GetDescription ¶
GetDescription returns the value of Description.
func (*Info) GetLicense ¶
func (s *Info) GetLicense() OptLicense
GetLicense returns the value of License.
func (*Info) GetPattern0Props ¶
func (s *Info) GetPattern0Props() InfoPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Info) GetTermsOfService ¶
GetTermsOfService returns the value of TermsOfService.
func (*Info) GetVersion ¶
GetVersion returns the value of Version.
func (*Info) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Info) SetContact ¶
func (s *Info) SetContact(val OptContact)
SetContact sets the value of Contact.
func (*Info) SetDescription ¶
SetDescription sets the value of Description.
func (*Info) SetLicense ¶
func (s *Info) SetLicense(val OptLicense)
SetLicense sets the value of License.
func (*Info) SetPattern0Props ¶
func (s *Info) SetPattern0Props(val InfoPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Info) SetTermsOfService ¶
SetTermsOfService sets the value of TermsOfService.
func (*Info) SetVersion ¶
SetVersion sets the value of Version.
func (*Info) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type InfoPattern0 ¶
type InfoPattern0 map[string]SpecificationExtension
func (*InfoPattern0) Decode ¶
func (s *InfoPattern0) Decode(d *jx.Decoder) error
Decode decodes InfoPattern0 from json.
func (InfoPattern0) Encode ¶
func (s InfoPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (InfoPattern0) MarshalJSON ¶
func (s InfoPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InfoPattern0) UnmarshalJSON ¶
func (s *InfoPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type License ¶
type License struct {
Name string `json:"name"`
URL OptString `json:"url"`
// Pattern: "^x-".
Pattern0Props LicensePattern0
}
License information for the exposed API. Ref: #/definitions/license
func (*License) GetPattern0Props ¶
func (s *License) GetPattern0Props() LicensePattern0
GetPattern0Props returns the value of Pattern0Props.
func (*License) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*License) SetPattern0Props ¶
func (s *License) SetPattern0Props(val LicensePattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*License) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type LicensePattern0 ¶
type LicensePattern0 map[string]SpecificationExtension
func (*LicensePattern0) Decode ¶
func (s *LicensePattern0) Decode(d *jx.Decoder) error
Decode decodes LicensePattern0 from json.
func (LicensePattern0) Encode ¶
func (s LicensePattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (LicensePattern0) MarshalJSON ¶
func (s LicensePattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LicensePattern0) UnmarshalJSON ¶
func (s *LicensePattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Link ¶
type Link struct {
OperationRef OptString `json:"operationRef"`
OperationId OptString `json:"operationId"`
Parameters OptAnysOrExpressions `json:"parameters"`
RequestBody Any `json:"requestBody"`
Description OptString `json:"description"`
Server OptServer `json:"server"`
// Pattern: "^x-".
Pattern0Props LinkPattern0
}
The `Link object` represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations. Unlike _dynamic_ links (i.e. links provided **in** the response payload), the OAS linking mechanism does not require link information in the runtime response. For computing links, and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation. Ref: #/definitions/link
func (*Link) GetDescription ¶
GetDescription returns the value of Description.
func (*Link) GetOperationId ¶
GetOperationId returns the value of OperationId.
func (*Link) GetOperationRef ¶
GetOperationRef returns the value of OperationRef.
func (*Link) GetParameters ¶
func (s *Link) GetParameters() OptAnysOrExpressions
GetParameters returns the value of Parameters.
func (*Link) GetPattern0Props ¶
func (s *Link) GetPattern0Props() LinkPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Link) GetRequestBody ¶
GetRequestBody returns the value of RequestBody.
func (*Link) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Link) SetDescription ¶
SetDescription sets the value of Description.
func (*Link) SetOperationId ¶
SetOperationId sets the value of OperationId.
func (*Link) SetOperationRef ¶
SetOperationRef sets the value of OperationRef.
func (*Link) SetParameters ¶
func (s *Link) SetParameters(val OptAnysOrExpressions)
SetParameters sets the value of Parameters.
func (*Link) SetPattern0Props ¶
func (s *Link) SetPattern0Props(val LinkPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Link) SetRequestBody ¶
SetRequestBody sets the value of RequestBody.
func (*Link) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type LinkOrReference ¶
type LinkOrReference struct {
Type LinkOrReferenceType // switch on this field
Link Link
Reference Reference
}
Ref: #/definitions/linkOrReference LinkOrReference represents sum type.
func NewLinkLinkOrReference ¶
func NewLinkLinkOrReference(v Link) LinkOrReference
NewLinkLinkOrReference returns new LinkOrReference from Link.
func NewReferenceLinkOrReference ¶
func NewReferenceLinkOrReference(v Reference) LinkOrReference
NewReferenceLinkOrReference returns new LinkOrReference from Reference.
func (*LinkOrReference) Decode ¶
func (s *LinkOrReference) Decode(d *jx.Decoder) error
Decode decodes LinkOrReference from json.
func (LinkOrReference) Encode ¶
func (s LinkOrReference) Encode(e *jx.Encoder)
Encode encodes LinkOrReference as json.
func (LinkOrReference) GetLink ¶
func (s LinkOrReference) GetLink() (v Link, ok bool)
GetLink returns Link and true boolean if LinkOrReference is Link.
func (LinkOrReference) GetReference ¶
func (s LinkOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if LinkOrReference is Reference.
func (LinkOrReference) IsLink ¶
func (s LinkOrReference) IsLink() bool
IsLink reports whether LinkOrReference is Link.
func (LinkOrReference) IsReference ¶
func (s LinkOrReference) IsReference() bool
IsReference reports whether LinkOrReference is Reference.
func (LinkOrReference) MarshalJSON ¶
func (s LinkOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LinkOrReference) SetLink ¶
func (s *LinkOrReference) SetLink(v Link)
SetLink sets LinkOrReference to Link.
func (*LinkOrReference) SetReference ¶
func (s *LinkOrReference) SetReference(v Reference)
SetReference sets LinkOrReference to Reference.
func (*LinkOrReference) UnmarshalJSON ¶
func (s *LinkOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type LinkOrReferenceType ¶
type LinkOrReferenceType string
LinkOrReferenceType is oneOf type of LinkOrReference.
const ( LinkLinkOrReference LinkOrReferenceType = "Link" ReferenceLinkOrReference LinkOrReferenceType = "Reference" )
Possible values for LinkOrReferenceType.
type LinkPattern0 ¶
type LinkPattern0 map[string]SpecificationExtension
func (*LinkPattern0) Decode ¶
func (s *LinkPattern0) Decode(d *jx.Decoder) error
Decode decodes LinkPattern0 from json.
func (LinkPattern0) Encode ¶
func (s LinkPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (LinkPattern0) MarshalJSON ¶
func (s LinkPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LinkPattern0) UnmarshalJSON ¶
func (s *LinkPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type LinksOrReferences ¶
type LinksOrReferences map[string]LinkOrReference
Ref: #/definitions/linksOrReferences
func (*LinksOrReferences) Decode ¶
func (s *LinksOrReferences) Decode(d *jx.Decoder) error
Decode decodes LinksOrReferences from json.
func (LinksOrReferences) Encode ¶
func (s LinksOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (LinksOrReferences) MarshalJSON ¶
func (s LinksOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LinksOrReferences) UnmarshalJSON ¶
func (s *LinksOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Maximum ¶
type Maximum float64
func (Maximum) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Maximum) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MediaType ¶
type MediaType struct {
Schema *SchemaOrReference `json:"schema"`
Example Any `json:"example"`
Examples OptExamplesOrReferences `json:"examples"`
Encoding OptEncodings `json:"encoding"`
// Pattern: "^x-".
Pattern0Props MediaTypePattern0
}
Each Media Type Object provides schema and examples for the media type identified by its key. Ref: #/definitions/mediaType
func (*MediaType) GetEncoding ¶
func (s *MediaType) GetEncoding() OptEncodings
GetEncoding returns the value of Encoding.
func (*MediaType) GetExample ¶
GetExample returns the value of Example.
func (*MediaType) GetExamples ¶
func (s *MediaType) GetExamples() OptExamplesOrReferences
GetExamples returns the value of Examples.
func (*MediaType) GetPattern0Props ¶
func (s *MediaType) GetPattern0Props() MediaTypePattern0
GetPattern0Props returns the value of Pattern0Props.
func (*MediaType) GetSchema ¶
func (s *MediaType) GetSchema() *SchemaOrReference
GetSchema returns the value of Schema.
func (*MediaType) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*MediaType) SetEncoding ¶
func (s *MediaType) SetEncoding(val OptEncodings)
SetEncoding sets the value of Encoding.
func (*MediaType) SetExample ¶
SetExample sets the value of Example.
func (*MediaType) SetExamples ¶
func (s *MediaType) SetExamples(val OptExamplesOrReferences)
SetExamples sets the value of Examples.
func (*MediaType) SetPattern0Props ¶
func (s *MediaType) SetPattern0Props(val MediaTypePattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*MediaType) SetSchema ¶
func (s *MediaType) SetSchema(val *SchemaOrReference)
SetSchema sets the value of Schema.
func (*MediaType) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MediaTypePattern0 ¶
type MediaTypePattern0 map[string]SpecificationExtension
func (*MediaTypePattern0) Decode ¶
func (s *MediaTypePattern0) Decode(d *jx.Decoder) error
Decode decodes MediaTypePattern0 from json.
func (MediaTypePattern0) Encode ¶
func (s MediaTypePattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (MediaTypePattern0) MarshalJSON ¶
func (s MediaTypePattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MediaTypePattern0) UnmarshalJSON ¶
func (s *MediaTypePattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type MediaTypes ¶
Ref: #/definitions/mediaTypes
func (*MediaTypes) Decode ¶
func (s *MediaTypes) Decode(d *jx.Decoder) error
Decode decodes MediaTypes from json.
func (MediaTypes) Encode ¶
func (s MediaTypes) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (MediaTypes) MarshalJSON ¶
func (s MediaTypes) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MediaTypes) UnmarshalJSON ¶
func (s *MediaTypes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (MediaTypes) Validate ¶
func (s MediaTypes) Validate() error
type Minimum ¶
type Minimum float64
func (Minimum) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Minimum) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MultipleOf ¶
type MultipleOf float64
func (*MultipleOf) Decode ¶
func (s *MultipleOf) Decode(d *jx.Decoder) error
Decode decodes MultipleOf from json.
func (MultipleOf) Encode ¶
func (s MultipleOf) Encode(e *jx.Encoder)
Encode encodes MultipleOf as json.
func (MultipleOf) MarshalJSON ¶
func (s MultipleOf) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MultipleOf) UnmarshalJSON ¶
func (s *MultipleOf) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (MultipleOf) Validate ¶
func (s MultipleOf) Validate() error
type OauthFlow ¶
type OauthFlow struct {
AuthorizationUrl OptString `json:"authorizationUrl"`
TokenUrl OptString `json:"tokenUrl"`
RefreshUrl OptString `json:"refreshUrl"`
Scopes OptStrings `json:"scopes"`
// Pattern: "^x-".
Pattern0Props OauthFlowPattern0
}
Configuration details for a supported OAuth Flow. Ref: #/definitions/oauthFlow
func (*OauthFlow) GetAuthorizationUrl ¶
GetAuthorizationUrl returns the value of AuthorizationUrl.
func (*OauthFlow) GetPattern0Props ¶
func (s *OauthFlow) GetPattern0Props() OauthFlowPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*OauthFlow) GetRefreshUrl ¶
GetRefreshUrl returns the value of RefreshUrl.
func (*OauthFlow) GetScopes ¶
func (s *OauthFlow) GetScopes() OptStrings
GetScopes returns the value of Scopes.
func (*OauthFlow) GetTokenUrl ¶
GetTokenUrl returns the value of TokenUrl.
func (*OauthFlow) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OauthFlow) SetAuthorizationUrl ¶
SetAuthorizationUrl sets the value of AuthorizationUrl.
func (*OauthFlow) SetPattern0Props ¶
func (s *OauthFlow) SetPattern0Props(val OauthFlowPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*OauthFlow) SetRefreshUrl ¶
SetRefreshUrl sets the value of RefreshUrl.
func (*OauthFlow) SetScopes ¶
func (s *OauthFlow) SetScopes(val OptStrings)
SetScopes sets the value of Scopes.
func (*OauthFlow) SetTokenUrl ¶
SetTokenUrl sets the value of TokenUrl.
func (*OauthFlow) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OauthFlowPattern0 ¶
type OauthFlowPattern0 map[string]SpecificationExtension
func (*OauthFlowPattern0) Decode ¶
func (s *OauthFlowPattern0) Decode(d *jx.Decoder) error
Decode decodes OauthFlowPattern0 from json.
func (OauthFlowPattern0) Encode ¶
func (s OauthFlowPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (OauthFlowPattern0) MarshalJSON ¶
func (s OauthFlowPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OauthFlowPattern0) UnmarshalJSON ¶
func (s *OauthFlowPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OauthFlows ¶
type OauthFlows struct {
Implicit OptOauthFlow `json:"implicit"`
Password OptOauthFlow `json:"password"`
ClientCredentials OptOauthFlow `json:"clientCredentials"`
AuthorizationCode OptOauthFlow `json:"authorizationCode"`
// Pattern: "^x-".
Pattern0Props OauthFlowsPattern0
}
Allows configuration of the supported OAuth Flows. Ref: #/definitions/oauthFlows
func (*OauthFlows) Decode ¶
func (s *OauthFlows) Decode(d *jx.Decoder) error
Decode decodes OauthFlows from json.
func (*OauthFlows) Encode ¶
func (s *OauthFlows) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*OauthFlows) GetAuthorizationCode ¶
func (s *OauthFlows) GetAuthorizationCode() OptOauthFlow
GetAuthorizationCode returns the value of AuthorizationCode.
func (*OauthFlows) GetClientCredentials ¶
func (s *OauthFlows) GetClientCredentials() OptOauthFlow
GetClientCredentials returns the value of ClientCredentials.
func (*OauthFlows) GetImplicit ¶
func (s *OauthFlows) GetImplicit() OptOauthFlow
GetImplicit returns the value of Implicit.
func (*OauthFlows) GetPassword ¶
func (s *OauthFlows) GetPassword() OptOauthFlow
GetPassword returns the value of Password.
func (*OauthFlows) GetPattern0Props ¶
func (s *OauthFlows) GetPattern0Props() OauthFlowsPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*OauthFlows) MarshalJSON ¶
func (s *OauthFlows) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OauthFlows) SetAuthorizationCode ¶
func (s *OauthFlows) SetAuthorizationCode(val OptOauthFlow)
SetAuthorizationCode sets the value of AuthorizationCode.
func (*OauthFlows) SetClientCredentials ¶
func (s *OauthFlows) SetClientCredentials(val OptOauthFlow)
SetClientCredentials sets the value of ClientCredentials.
func (*OauthFlows) SetImplicit ¶
func (s *OauthFlows) SetImplicit(val OptOauthFlow)
SetImplicit sets the value of Implicit.
func (*OauthFlows) SetPassword ¶
func (s *OauthFlows) SetPassword(val OptOauthFlow)
SetPassword sets the value of Password.
func (*OauthFlows) SetPattern0Props ¶
func (s *OauthFlows) SetPattern0Props(val OauthFlowsPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*OauthFlows) UnmarshalJSON ¶
func (s *OauthFlows) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OauthFlowsPattern0 ¶
type OauthFlowsPattern0 map[string]SpecificationExtension
func (*OauthFlowsPattern0) Decode ¶
func (s *OauthFlowsPattern0) Decode(d *jx.Decoder) error
Decode decodes OauthFlowsPattern0 from json.
func (OauthFlowsPattern0) Encode ¶
func (s OauthFlowsPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (OauthFlowsPattern0) MarshalJSON ¶
func (s OauthFlowsPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OauthFlowsPattern0) UnmarshalJSON ¶
func (s *OauthFlowsPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Operation ¶
type Operation struct {
Tags []string `json:"tags"`
Summary OptString `json:"summary"`
Description OptString `json:"description"`
ExternalDocs OptExternalDocs `json:"externalDocs"`
OperationId OptString `json:"operationId"`
Parameters []ParameterOrReference `json:"parameters"`
RequestBody OptRequestBodyOrReference `json:"requestBody"`
Responses Responses `json:"responses"`
Callbacks OptCallbacksOrReferences `json:"callbacks"`
Deprecated OptBool `json:"deprecated"`
Security []SecurityRequirement `json:"security"`
Servers []Server `json:"servers"`
// Pattern: "^x-".
Pattern0Props OperationPattern0
}
Describes a single API operation on a path. Ref: #/definitions/operation
func (*Operation) GetCallbacks ¶
func (s *Operation) GetCallbacks() OptCallbacksOrReferences
GetCallbacks returns the value of Callbacks.
func (*Operation) GetDeprecated ¶
GetDeprecated returns the value of Deprecated.
func (*Operation) GetDescription ¶
GetDescription returns the value of Description.
func (*Operation) GetExternalDocs ¶
func (s *Operation) GetExternalDocs() OptExternalDocs
GetExternalDocs returns the value of ExternalDocs.
func (*Operation) GetOperationId ¶
GetOperationId returns the value of OperationId.
func (*Operation) GetParameters ¶
func (s *Operation) GetParameters() []ParameterOrReference
GetParameters returns the value of Parameters.
func (*Operation) GetPattern0Props ¶
func (s *Operation) GetPattern0Props() OperationPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Operation) GetRequestBody ¶
func (s *Operation) GetRequestBody() OptRequestBodyOrReference
GetRequestBody returns the value of RequestBody.
func (*Operation) GetResponses ¶
GetResponses returns the value of Responses.
func (*Operation) GetSecurity ¶
func (s *Operation) GetSecurity() []SecurityRequirement
GetSecurity returns the value of Security.
func (*Operation) GetServers ¶
GetServers returns the value of Servers.
func (*Operation) GetSummary ¶
GetSummary returns the value of Summary.
func (*Operation) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Operation) SetCallbacks ¶
func (s *Operation) SetCallbacks(val OptCallbacksOrReferences)
SetCallbacks sets the value of Callbacks.
func (*Operation) SetDeprecated ¶
SetDeprecated sets the value of Deprecated.
func (*Operation) SetDescription ¶
SetDescription sets the value of Description.
func (*Operation) SetExternalDocs ¶
func (s *Operation) SetExternalDocs(val OptExternalDocs)
SetExternalDocs sets the value of ExternalDocs.
func (*Operation) SetOperationId ¶
SetOperationId sets the value of OperationId.
func (*Operation) SetParameters ¶
func (s *Operation) SetParameters(val []ParameterOrReference)
SetParameters sets the value of Parameters.
func (*Operation) SetPattern0Props ¶
func (s *Operation) SetPattern0Props(val OperationPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Operation) SetRequestBody ¶
func (s *Operation) SetRequestBody(val OptRequestBodyOrReference)
SetRequestBody sets the value of RequestBody.
func (*Operation) SetResponses ¶
SetResponses sets the value of Responses.
func (*Operation) SetSecurity ¶
func (s *Operation) SetSecurity(val []SecurityRequirement)
SetSecurity sets the value of Security.
func (*Operation) SetServers ¶
SetServers sets the value of Servers.
func (*Operation) SetSummary ¶
SetSummary sets the value of Summary.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OperationPattern0 ¶
type OperationPattern0 map[string]SpecificationExtension
func (*OperationPattern0) Decode ¶
func (s *OperationPattern0) Decode(d *jx.Decoder) error
Decode decodes OperationPattern0 from json.
func (OperationPattern0) Encode ¶
func (s OperationPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (OperationPattern0) MarshalJSON ¶
func (s OperationPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OperationPattern0) UnmarshalJSON ¶
func (s *OperationPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptAnysOrExpressions ¶
type OptAnysOrExpressions struct {
Value AnysOrExpressions
Set bool
}
OptAnysOrExpressions is optional AnysOrExpressions.
func NewOptAnysOrExpressions ¶
func NewOptAnysOrExpressions(v AnysOrExpressions) OptAnysOrExpressions
NewOptAnysOrExpressions returns new OptAnysOrExpressions with value set to v.
func (*OptAnysOrExpressions) Decode ¶
func (o *OptAnysOrExpressions) Decode(d *jx.Decoder) error
Decode decodes AnysOrExpressions from json.
func (OptAnysOrExpressions) Encode ¶
func (o OptAnysOrExpressions) Encode(e *jx.Encoder)
Encode encodes AnysOrExpressions as json.
func (OptAnysOrExpressions) Get ¶
func (o OptAnysOrExpressions) Get() (v AnysOrExpressions, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAnysOrExpressions) IsSet ¶
func (o OptAnysOrExpressions) IsSet() bool
IsSet returns true if OptAnysOrExpressions was set.
func (OptAnysOrExpressions) MarshalJSON ¶
func (s OptAnysOrExpressions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAnysOrExpressions) Or ¶
func (o OptAnysOrExpressions) Or(d AnysOrExpressions) AnysOrExpressions
Or returns value if set, or given parameter if does not.
func (*OptAnysOrExpressions) SetTo ¶
func (o *OptAnysOrExpressions) SetTo(v AnysOrExpressions)
SetTo sets value to v.
func (*OptAnysOrExpressions) UnmarshalJSON ¶
func (s *OptAnysOrExpressions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCallbacksOrReferences ¶
type OptCallbacksOrReferences struct {
Value CallbacksOrReferences
Set bool
}
OptCallbacksOrReferences is optional CallbacksOrReferences.
func NewOptCallbacksOrReferences ¶
func NewOptCallbacksOrReferences(v CallbacksOrReferences) OptCallbacksOrReferences
NewOptCallbacksOrReferences returns new OptCallbacksOrReferences with value set to v.
func (*OptCallbacksOrReferences) Decode ¶
func (o *OptCallbacksOrReferences) Decode(d *jx.Decoder) error
Decode decodes CallbacksOrReferences from json.
func (OptCallbacksOrReferences) Encode ¶
func (o OptCallbacksOrReferences) Encode(e *jx.Encoder)
Encode encodes CallbacksOrReferences as json.
func (OptCallbacksOrReferences) Get ¶
func (o OptCallbacksOrReferences) Get() (v CallbacksOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCallbacksOrReferences) IsSet ¶
func (o OptCallbacksOrReferences) IsSet() bool
IsSet returns true if OptCallbacksOrReferences was set.
func (OptCallbacksOrReferences) MarshalJSON ¶
func (s OptCallbacksOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCallbacksOrReferences) Or ¶
func (o OptCallbacksOrReferences) Or(d CallbacksOrReferences) CallbacksOrReferences
Or returns value if set, or given parameter if does not.
func (*OptCallbacksOrReferences) Reset ¶
func (o *OptCallbacksOrReferences) Reset()
Reset unsets value.
func (*OptCallbacksOrReferences) SetTo ¶
func (o *OptCallbacksOrReferences) SetTo(v CallbacksOrReferences)
SetTo sets value to v.
func (*OptCallbacksOrReferences) UnmarshalJSON ¶
func (s *OptCallbacksOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptComponents ¶
type OptComponents struct {
Value Components
Set bool
}
OptComponents is optional Components.
func NewOptComponents ¶
func NewOptComponents(v Components) OptComponents
NewOptComponents returns new OptComponents with value set to v.
func (*OptComponents) Decode ¶
func (o *OptComponents) Decode(d *jx.Decoder) error
Decode decodes Components from json.
func (OptComponents) Encode ¶
func (o OptComponents) Encode(e *jx.Encoder)
Encode encodes Components as json.
func (OptComponents) Get ¶
func (o OptComponents) Get() (v Components, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptComponents) IsSet ¶
func (o OptComponents) IsSet() bool
IsSet returns true if OptComponents was set.
func (OptComponents) MarshalJSON ¶
func (s OptComponents) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptComponents) Or ¶
func (o OptComponents) Or(d Components) Components
Or returns value if set, or given parameter if does not.
func (*OptComponents) UnmarshalJSON ¶
func (s *OptComponents) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptContact ¶
OptContact is optional Contact.
func NewOptContact ¶
func NewOptContact(v Contact) OptContact
NewOptContact returns new OptContact with value set to v.
func (*OptContact) Decode ¶
func (o *OptContact) Decode(d *jx.Decoder) error
Decode decodes Contact from json.
func (OptContact) Encode ¶
func (o OptContact) Encode(e *jx.Encoder)
Encode encodes Contact as json.
func (OptContact) Get ¶
func (o OptContact) Get() (v Contact, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptContact) IsSet ¶
func (o OptContact) IsSet() bool
IsSet returns true if OptContact was set.
func (OptContact) MarshalJSON ¶
func (s OptContact) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptContact) Or ¶
func (o OptContact) Or(d Contact) Contact
Or returns value if set, or given parameter if does not.
func (*OptContact) UnmarshalJSON ¶
func (s *OptContact) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDiscriminator ¶
type OptDiscriminator struct {
Value Discriminator
Set bool
}
OptDiscriminator is optional Discriminator.
func NewOptDiscriminator ¶
func NewOptDiscriminator(v Discriminator) OptDiscriminator
NewOptDiscriminator returns new OptDiscriminator with value set to v.
func (*OptDiscriminator) Decode ¶
func (o *OptDiscriminator) Decode(d *jx.Decoder) error
Decode decodes Discriminator from json.
func (OptDiscriminator) Encode ¶
func (o OptDiscriminator) Encode(e *jx.Encoder)
Encode encodes Discriminator as json.
func (OptDiscriminator) Get ¶
func (o OptDiscriminator) Get() (v Discriminator, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDiscriminator) IsSet ¶
func (o OptDiscriminator) IsSet() bool
IsSet returns true if OptDiscriminator was set.
func (OptDiscriminator) MarshalJSON ¶
func (s OptDiscriminator) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDiscriminator) Or ¶
func (o OptDiscriminator) Or(d Discriminator) Discriminator
Or returns value if set, or given parameter if does not.
func (*OptDiscriminator) SetTo ¶
func (o *OptDiscriminator) SetTo(v Discriminator)
SetTo sets value to v.
func (*OptDiscriminator) UnmarshalJSON ¶
func (s *OptDiscriminator) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEncodings ¶
OptEncodings is optional Encodings.
func NewOptEncodings ¶
func NewOptEncodings(v Encodings) OptEncodings
NewOptEncodings returns new OptEncodings with value set to v.
func (*OptEncodings) Decode ¶
func (o *OptEncodings) Decode(d *jx.Decoder) error
Decode decodes Encodings from json.
func (OptEncodings) Encode ¶
func (o OptEncodings) Encode(e *jx.Encoder)
Encode encodes Encodings as json.
func (OptEncodings) Get ¶
func (o OptEncodings) Get() (v Encodings, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEncodings) IsSet ¶
func (o OptEncodings) IsSet() bool
IsSet returns true if OptEncodings was set.
func (OptEncodings) MarshalJSON ¶
func (s OptEncodings) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEncodings) Or ¶
func (o OptEncodings) Or(d Encodings) Encodings
Or returns value if set, or given parameter if does not.
func (*OptEncodings) UnmarshalJSON ¶
func (s *OptEncodings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptExamplesOrReferences ¶
type OptExamplesOrReferences struct {
Value ExamplesOrReferences
Set bool
}
OptExamplesOrReferences is optional ExamplesOrReferences.
func NewOptExamplesOrReferences ¶
func NewOptExamplesOrReferences(v ExamplesOrReferences) OptExamplesOrReferences
NewOptExamplesOrReferences returns new OptExamplesOrReferences with value set to v.
func (*OptExamplesOrReferences) Decode ¶
func (o *OptExamplesOrReferences) Decode(d *jx.Decoder) error
Decode decodes ExamplesOrReferences from json.
func (OptExamplesOrReferences) Encode ¶
func (o OptExamplesOrReferences) Encode(e *jx.Encoder)
Encode encodes ExamplesOrReferences as json.
func (OptExamplesOrReferences) Get ¶
func (o OptExamplesOrReferences) Get() (v ExamplesOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptExamplesOrReferences) IsSet ¶
func (o OptExamplesOrReferences) IsSet() bool
IsSet returns true if OptExamplesOrReferences was set.
func (OptExamplesOrReferences) MarshalJSON ¶
func (s OptExamplesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptExamplesOrReferences) Or ¶
func (o OptExamplesOrReferences) Or(d ExamplesOrReferences) ExamplesOrReferences
Or returns value if set, or given parameter if does not.
func (*OptExamplesOrReferences) Reset ¶
func (o *OptExamplesOrReferences) Reset()
Reset unsets value.
func (*OptExamplesOrReferences) SetTo ¶
func (o *OptExamplesOrReferences) SetTo(v ExamplesOrReferences)
SetTo sets value to v.
func (*OptExamplesOrReferences) UnmarshalJSON ¶
func (s *OptExamplesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptExclusiveMaximum ¶
type OptExclusiveMaximum struct {
Value ExclusiveMaximum
Set bool
}
OptExclusiveMaximum is optional ExclusiveMaximum.
func NewOptExclusiveMaximum ¶
func NewOptExclusiveMaximum(v ExclusiveMaximum) OptExclusiveMaximum
NewOptExclusiveMaximum returns new OptExclusiveMaximum with value set to v.
func (*OptExclusiveMaximum) Decode ¶
func (o *OptExclusiveMaximum) Decode(d *jx.Decoder) error
Decode decodes ExclusiveMaximum from json.
func (OptExclusiveMaximum) Encode ¶
func (o OptExclusiveMaximum) Encode(e *jx.Encoder)
Encode encodes ExclusiveMaximum as json.
func (OptExclusiveMaximum) Get ¶
func (o OptExclusiveMaximum) Get() (v ExclusiveMaximum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptExclusiveMaximum) IsSet ¶
func (o OptExclusiveMaximum) IsSet() bool
IsSet returns true if OptExclusiveMaximum was set.
func (OptExclusiveMaximum) MarshalJSON ¶
func (s OptExclusiveMaximum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptExclusiveMaximum) Or ¶
func (o OptExclusiveMaximum) Or(d ExclusiveMaximum) ExclusiveMaximum
Or returns value if set, or given parameter if does not.
func (*OptExclusiveMaximum) SetTo ¶
func (o *OptExclusiveMaximum) SetTo(v ExclusiveMaximum)
SetTo sets value to v.
func (*OptExclusiveMaximum) UnmarshalJSON ¶
func (s *OptExclusiveMaximum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptExclusiveMinimum ¶
type OptExclusiveMinimum struct {
Value ExclusiveMinimum
Set bool
}
OptExclusiveMinimum is optional ExclusiveMinimum.
func NewOptExclusiveMinimum ¶
func NewOptExclusiveMinimum(v ExclusiveMinimum) OptExclusiveMinimum
NewOptExclusiveMinimum returns new OptExclusiveMinimum with value set to v.
func (*OptExclusiveMinimum) Decode ¶
func (o *OptExclusiveMinimum) Decode(d *jx.Decoder) error
Decode decodes ExclusiveMinimum from json.
func (OptExclusiveMinimum) Encode ¶
func (o OptExclusiveMinimum) Encode(e *jx.Encoder)
Encode encodes ExclusiveMinimum as json.
func (OptExclusiveMinimum) Get ¶
func (o OptExclusiveMinimum) Get() (v ExclusiveMinimum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptExclusiveMinimum) IsSet ¶
func (o OptExclusiveMinimum) IsSet() bool
IsSet returns true if OptExclusiveMinimum was set.
func (OptExclusiveMinimum) MarshalJSON ¶
func (s OptExclusiveMinimum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptExclusiveMinimum) Or ¶
func (o OptExclusiveMinimum) Or(d ExclusiveMinimum) ExclusiveMinimum
Or returns value if set, or given parameter if does not.
func (*OptExclusiveMinimum) SetTo ¶
func (o *OptExclusiveMinimum) SetTo(v ExclusiveMinimum)
SetTo sets value to v.
func (*OptExclusiveMinimum) UnmarshalJSON ¶
func (s *OptExclusiveMinimum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptExternalDocs ¶
type OptExternalDocs struct {
Value ExternalDocs
Set bool
}
OptExternalDocs is optional ExternalDocs.
func NewOptExternalDocs ¶
func NewOptExternalDocs(v ExternalDocs) OptExternalDocs
NewOptExternalDocs returns new OptExternalDocs with value set to v.
func (*OptExternalDocs) Decode ¶
func (o *OptExternalDocs) Decode(d *jx.Decoder) error
Decode decodes ExternalDocs from json.
func (OptExternalDocs) Encode ¶
func (o OptExternalDocs) Encode(e *jx.Encoder)
Encode encodes ExternalDocs as json.
func (OptExternalDocs) Get ¶
func (o OptExternalDocs) Get() (v ExternalDocs, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptExternalDocs) IsSet ¶
func (o OptExternalDocs) IsSet() bool
IsSet returns true if OptExternalDocs was set.
func (OptExternalDocs) MarshalJSON ¶
func (s OptExternalDocs) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptExternalDocs) Or ¶
func (o OptExternalDocs) Or(d ExternalDocs) ExternalDocs
Or returns value if set, or given parameter if does not.
func (*OptExternalDocs) SetTo ¶
func (o *OptExternalDocs) SetTo(v ExternalDocs)
SetTo sets value to v.
func (*OptExternalDocs) UnmarshalJSON ¶
func (s *OptExternalDocs) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptHeadersOrReferences ¶
type OptHeadersOrReferences struct {
Value HeadersOrReferences
Set bool
}
OptHeadersOrReferences is optional HeadersOrReferences.
func NewOptHeadersOrReferences ¶
func NewOptHeadersOrReferences(v HeadersOrReferences) OptHeadersOrReferences
NewOptHeadersOrReferences returns new OptHeadersOrReferences with value set to v.
func (*OptHeadersOrReferences) Decode ¶
func (o *OptHeadersOrReferences) Decode(d *jx.Decoder) error
Decode decodes HeadersOrReferences from json.
func (OptHeadersOrReferences) Encode ¶
func (o OptHeadersOrReferences) Encode(e *jx.Encoder)
Encode encodes HeadersOrReferences as json.
func (OptHeadersOrReferences) Get ¶
func (o OptHeadersOrReferences) Get() (v HeadersOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptHeadersOrReferences) IsSet ¶
func (o OptHeadersOrReferences) IsSet() bool
IsSet returns true if OptHeadersOrReferences was set.
func (OptHeadersOrReferences) MarshalJSON ¶
func (s OptHeadersOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptHeadersOrReferences) Or ¶
func (o OptHeadersOrReferences) Or(d HeadersOrReferences) HeadersOrReferences
Or returns value if set, or given parameter if does not.
func (*OptHeadersOrReferences) SetTo ¶
func (o *OptHeadersOrReferences) SetTo(v HeadersOrReferences)
SetTo sets value to v.
func (*OptHeadersOrReferences) UnmarshalJSON ¶
func (s *OptHeadersOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptLicense ¶
OptLicense is optional License.
func NewOptLicense ¶
func NewOptLicense(v License) OptLicense
NewOptLicense returns new OptLicense with value set to v.
func (*OptLicense) Decode ¶
func (o *OptLicense) Decode(d *jx.Decoder) error
Decode decodes License from json.
func (OptLicense) Encode ¶
func (o OptLicense) Encode(e *jx.Encoder)
Encode encodes License as json.
func (OptLicense) Get ¶
func (o OptLicense) Get() (v License, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptLicense) IsSet ¶
func (o OptLicense) IsSet() bool
IsSet returns true if OptLicense was set.
func (OptLicense) MarshalJSON ¶
func (s OptLicense) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptLicense) Or ¶
func (o OptLicense) Or(d License) License
Or returns value if set, or given parameter if does not.
func (*OptLicense) UnmarshalJSON ¶
func (s *OptLicense) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptLinksOrReferences ¶
type OptLinksOrReferences struct {
Value LinksOrReferences
Set bool
}
OptLinksOrReferences is optional LinksOrReferences.
func NewOptLinksOrReferences ¶
func NewOptLinksOrReferences(v LinksOrReferences) OptLinksOrReferences
NewOptLinksOrReferences returns new OptLinksOrReferences with value set to v.
func (*OptLinksOrReferences) Decode ¶
func (o *OptLinksOrReferences) Decode(d *jx.Decoder) error
Decode decodes LinksOrReferences from json.
func (OptLinksOrReferences) Encode ¶
func (o OptLinksOrReferences) Encode(e *jx.Encoder)
Encode encodes LinksOrReferences as json.
func (OptLinksOrReferences) Get ¶
func (o OptLinksOrReferences) Get() (v LinksOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptLinksOrReferences) IsSet ¶
func (o OptLinksOrReferences) IsSet() bool
IsSet returns true if OptLinksOrReferences was set.
func (OptLinksOrReferences) MarshalJSON ¶
func (s OptLinksOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptLinksOrReferences) Or ¶
func (o OptLinksOrReferences) Or(d LinksOrReferences) LinksOrReferences
Or returns value if set, or given parameter if does not.
func (*OptLinksOrReferences) SetTo ¶
func (o *OptLinksOrReferences) SetTo(v LinksOrReferences)
SetTo sets value to v.
func (*OptLinksOrReferences) UnmarshalJSON ¶
func (s *OptLinksOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMaximum ¶
OptMaximum is optional Maximum.
func NewOptMaximum ¶
func NewOptMaximum(v Maximum) OptMaximum
NewOptMaximum returns new OptMaximum with value set to v.
func (*OptMaximum) Decode ¶
func (o *OptMaximum) Decode(d *jx.Decoder) error
Decode decodes Maximum from json.
func (OptMaximum) Encode ¶
func (o OptMaximum) Encode(e *jx.Encoder)
Encode encodes Maximum as json.
func (OptMaximum) Get ¶
func (o OptMaximum) Get() (v Maximum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMaximum) IsSet ¶
func (o OptMaximum) IsSet() bool
IsSet returns true if OptMaximum was set.
func (OptMaximum) MarshalJSON ¶
func (s OptMaximum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMaximum) Or ¶
func (o OptMaximum) Or(d Maximum) Maximum
Or returns value if set, or given parameter if does not.
func (*OptMaximum) UnmarshalJSON ¶
func (s *OptMaximum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMediaTypes ¶
type OptMediaTypes struct {
Value MediaTypes
Set bool
}
OptMediaTypes is optional MediaTypes.
func NewOptMediaTypes ¶
func NewOptMediaTypes(v MediaTypes) OptMediaTypes
NewOptMediaTypes returns new OptMediaTypes with value set to v.
func (*OptMediaTypes) Decode ¶
func (o *OptMediaTypes) Decode(d *jx.Decoder) error
Decode decodes MediaTypes from json.
func (OptMediaTypes) Encode ¶
func (o OptMediaTypes) Encode(e *jx.Encoder)
Encode encodes MediaTypes as json.
func (OptMediaTypes) Get ¶
func (o OptMediaTypes) Get() (v MediaTypes, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMediaTypes) IsSet ¶
func (o OptMediaTypes) IsSet() bool
IsSet returns true if OptMediaTypes was set.
func (OptMediaTypes) MarshalJSON ¶
func (s OptMediaTypes) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMediaTypes) Or ¶
func (o OptMediaTypes) Or(d MediaTypes) MediaTypes
Or returns value if set, or given parameter if does not.
func (*OptMediaTypes) UnmarshalJSON ¶
func (s *OptMediaTypes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMinimum ¶
OptMinimum is optional Minimum.
func NewOptMinimum ¶
func NewOptMinimum(v Minimum) OptMinimum
NewOptMinimum returns new OptMinimum with value set to v.
func (*OptMinimum) Decode ¶
func (o *OptMinimum) Decode(d *jx.Decoder) error
Decode decodes Minimum from json.
func (OptMinimum) Encode ¶
func (o OptMinimum) Encode(e *jx.Encoder)
Encode encodes Minimum as json.
func (OptMinimum) Get ¶
func (o OptMinimum) Get() (v Minimum, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMinimum) IsSet ¶
func (o OptMinimum) IsSet() bool
IsSet returns true if OptMinimum was set.
func (OptMinimum) MarshalJSON ¶
func (s OptMinimum) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMinimum) Or ¶
func (o OptMinimum) Or(d Minimum) Minimum
Or returns value if set, or given parameter if does not.
func (*OptMinimum) UnmarshalJSON ¶
func (s *OptMinimum) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMultipleOf ¶
type OptMultipleOf struct {
Value MultipleOf
Set bool
}
OptMultipleOf is optional MultipleOf.
func NewOptMultipleOf ¶
func NewOptMultipleOf(v MultipleOf) OptMultipleOf
NewOptMultipleOf returns new OptMultipleOf with value set to v.
func (*OptMultipleOf) Decode ¶
func (o *OptMultipleOf) Decode(d *jx.Decoder) error
Decode decodes MultipleOf from json.
func (OptMultipleOf) Encode ¶
func (o OptMultipleOf) Encode(e *jx.Encoder)
Encode encodes MultipleOf as json.
func (OptMultipleOf) Get ¶
func (o OptMultipleOf) Get() (v MultipleOf, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMultipleOf) IsSet ¶
func (o OptMultipleOf) IsSet() bool
IsSet returns true if OptMultipleOf was set.
func (OptMultipleOf) MarshalJSON ¶
func (s OptMultipleOf) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMultipleOf) Or ¶
func (o OptMultipleOf) Or(d MultipleOf) MultipleOf
Or returns value if set, or given parameter if does not.
func (*OptMultipleOf) UnmarshalJSON ¶
func (s *OptMultipleOf) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptOauthFlow ¶
OptOauthFlow is optional OauthFlow.
func NewOptOauthFlow ¶
func NewOptOauthFlow(v OauthFlow) OptOauthFlow
NewOptOauthFlow returns new OptOauthFlow with value set to v.
func (*OptOauthFlow) Decode ¶
func (o *OptOauthFlow) Decode(d *jx.Decoder) error
Decode decodes OauthFlow from json.
func (OptOauthFlow) Encode ¶
func (o OptOauthFlow) Encode(e *jx.Encoder)
Encode encodes OauthFlow as json.
func (OptOauthFlow) Get ¶
func (o OptOauthFlow) Get() (v OauthFlow, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptOauthFlow) IsSet ¶
func (o OptOauthFlow) IsSet() bool
IsSet returns true if OptOauthFlow was set.
func (OptOauthFlow) MarshalJSON ¶
func (s OptOauthFlow) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptOauthFlow) Or ¶
func (o OptOauthFlow) Or(d OauthFlow) OauthFlow
Or returns value if set, or given parameter if does not.
func (*OptOauthFlow) UnmarshalJSON ¶
func (s *OptOauthFlow) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptOauthFlows ¶
type OptOauthFlows struct {
Value OauthFlows
Set bool
}
OptOauthFlows is optional OauthFlows.
func NewOptOauthFlows ¶
func NewOptOauthFlows(v OauthFlows) OptOauthFlows
NewOptOauthFlows returns new OptOauthFlows with value set to v.
func (*OptOauthFlows) Decode ¶
func (o *OptOauthFlows) Decode(d *jx.Decoder) error
Decode decodes OauthFlows from json.
func (OptOauthFlows) Encode ¶
func (o OptOauthFlows) Encode(e *jx.Encoder)
Encode encodes OauthFlows as json.
func (OptOauthFlows) Get ¶
func (o OptOauthFlows) Get() (v OauthFlows, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptOauthFlows) IsSet ¶
func (o OptOauthFlows) IsSet() bool
IsSet returns true if OptOauthFlows was set.
func (OptOauthFlows) MarshalJSON ¶
func (s OptOauthFlows) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptOauthFlows) Or ¶
func (o OptOauthFlows) Or(d OauthFlows) OauthFlows
Or returns value if set, or given parameter if does not.
func (*OptOauthFlows) UnmarshalJSON ¶
func (s *OptOauthFlows) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptOperation ¶
OptOperation is optional Operation.
func NewOptOperation ¶
func NewOptOperation(v Operation) OptOperation
NewOptOperation returns new OptOperation with value set to v.
func (*OptOperation) Decode ¶
func (o *OptOperation) Decode(d *jx.Decoder) error
Decode decodes Operation from json.
func (OptOperation) Encode ¶
func (o OptOperation) Encode(e *jx.Encoder)
Encode encodes Operation as json.
func (OptOperation) Get ¶
func (o OptOperation) Get() (v Operation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptOperation) IsSet ¶
func (o OptOperation) IsSet() bool
IsSet returns true if OptOperation was set.
func (OptOperation) MarshalJSON ¶
func (s OptOperation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptOperation) Or ¶
func (o OptOperation) Or(d Operation) Operation
Or returns value if set, or given parameter if does not.
func (*OptOperation) UnmarshalJSON ¶
func (s *OptOperation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptParameterStyle ¶
type OptParameterStyle struct {
Value ParameterStyle
Set bool
}
OptParameterStyle is optional ParameterStyle.
func NewOptParameterStyle ¶
func NewOptParameterStyle(v ParameterStyle) OptParameterStyle
NewOptParameterStyle returns new OptParameterStyle with value set to v.
func (*OptParameterStyle) Decode ¶
func (o *OptParameterStyle) Decode(d *jx.Decoder) error
Decode decodes ParameterStyle from json.
func (OptParameterStyle) Encode ¶
func (o OptParameterStyle) Encode(e *jx.Encoder)
Encode encodes ParameterStyle as json.
func (OptParameterStyle) Get ¶
func (o OptParameterStyle) Get() (v ParameterStyle, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptParameterStyle) IsSet ¶
func (o OptParameterStyle) IsSet() bool
IsSet returns true if OptParameterStyle was set.
func (OptParameterStyle) MarshalJSON ¶
func (s OptParameterStyle) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptParameterStyle) Or ¶
func (o OptParameterStyle) Or(d ParameterStyle) ParameterStyle
Or returns value if set, or given parameter if does not.
func (*OptParameterStyle) SetTo ¶
func (o *OptParameterStyle) SetTo(v ParameterStyle)
SetTo sets value to v.
func (*OptParameterStyle) UnmarshalJSON ¶
func (s *OptParameterStyle) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptParametersOrReferences ¶
type OptParametersOrReferences struct {
Value ParametersOrReferences
Set bool
}
OptParametersOrReferences is optional ParametersOrReferences.
func NewOptParametersOrReferences ¶
func NewOptParametersOrReferences(v ParametersOrReferences) OptParametersOrReferences
NewOptParametersOrReferences returns new OptParametersOrReferences with value set to v.
func (*OptParametersOrReferences) Decode ¶
func (o *OptParametersOrReferences) Decode(d *jx.Decoder) error
Decode decodes ParametersOrReferences from json.
func (OptParametersOrReferences) Encode ¶
func (o OptParametersOrReferences) Encode(e *jx.Encoder)
Encode encodes ParametersOrReferences as json.
func (OptParametersOrReferences) Get ¶
func (o OptParametersOrReferences) Get() (v ParametersOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptParametersOrReferences) IsSet ¶
func (o OptParametersOrReferences) IsSet() bool
IsSet returns true if OptParametersOrReferences was set.
func (OptParametersOrReferences) MarshalJSON ¶
func (s OptParametersOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptParametersOrReferences) Reset ¶
func (o *OptParametersOrReferences) Reset()
Reset unsets value.
func (*OptParametersOrReferences) SetTo ¶
func (o *OptParametersOrReferences) SetTo(v ParametersOrReferences)
SetTo sets value to v.
func (*OptParametersOrReferences) UnmarshalJSON ¶
func (s *OptParametersOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPattern ¶
OptPattern is optional Pattern.
func NewOptPattern ¶
func NewOptPattern(v Pattern) OptPattern
NewOptPattern returns new OptPattern with value set to v.
func (*OptPattern) Decode ¶
func (o *OptPattern) Decode(d *jx.Decoder) error
Decode decodes Pattern from json.
func (OptPattern) Encode ¶
func (o OptPattern) Encode(e *jx.Encoder)
Encode encodes Pattern as json.
func (OptPattern) Get ¶
func (o OptPattern) Get() (v Pattern, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPattern) IsSet ¶
func (o OptPattern) IsSet() bool
IsSet returns true if OptPattern was set.
func (OptPattern) MarshalJSON ¶
func (s OptPattern) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPattern) Or ¶
func (o OptPattern) Or(d Pattern) Pattern
Or returns value if set, or given parameter if does not.
func (*OptPattern) UnmarshalJSON ¶
func (s *OptPattern) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPositiveInteger ¶
type OptPositiveInteger struct {
Value PositiveInteger
Set bool
}
OptPositiveInteger is optional PositiveInteger.
func NewOptPositiveInteger ¶
func NewOptPositiveInteger(v PositiveInteger) OptPositiveInteger
NewOptPositiveInteger returns new OptPositiveInteger with value set to v.
func (*OptPositiveInteger) Decode ¶
func (o *OptPositiveInteger) Decode(d *jx.Decoder) error
Decode decodes PositiveInteger from json.
func (OptPositiveInteger) Encode ¶
func (o OptPositiveInteger) Encode(e *jx.Encoder)
Encode encodes PositiveInteger as json.
func (OptPositiveInteger) Get ¶
func (o OptPositiveInteger) Get() (v PositiveInteger, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPositiveInteger) IsSet ¶
func (o OptPositiveInteger) IsSet() bool
IsSet returns true if OptPositiveInteger was set.
func (OptPositiveInteger) MarshalJSON ¶
func (s OptPositiveInteger) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPositiveInteger) Or ¶
func (o OptPositiveInteger) Or(d PositiveInteger) PositiveInteger
Or returns value if set, or given parameter if does not.
func (*OptPositiveInteger) SetTo ¶
func (o *OptPositiveInteger) SetTo(v PositiveInteger)
SetTo sets value to v.
func (*OptPositiveInteger) UnmarshalJSON ¶
func (s *OptPositiveInteger) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptRequestBodiesOrReferences ¶
type OptRequestBodiesOrReferences struct {
Value RequestBodiesOrReferences
Set bool
}
OptRequestBodiesOrReferences is optional RequestBodiesOrReferences.
func NewOptRequestBodiesOrReferences ¶
func NewOptRequestBodiesOrReferences(v RequestBodiesOrReferences) OptRequestBodiesOrReferences
NewOptRequestBodiesOrReferences returns new OptRequestBodiesOrReferences with value set to v.
func (*OptRequestBodiesOrReferences) Decode ¶
func (o *OptRequestBodiesOrReferences) Decode(d *jx.Decoder) error
Decode decodes RequestBodiesOrReferences from json.
func (OptRequestBodiesOrReferences) Encode ¶
func (o OptRequestBodiesOrReferences) Encode(e *jx.Encoder)
Encode encodes RequestBodiesOrReferences as json.
func (OptRequestBodiesOrReferences) Get ¶
func (o OptRequestBodiesOrReferences) Get() (v RequestBodiesOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptRequestBodiesOrReferences) IsSet ¶
func (o OptRequestBodiesOrReferences) IsSet() bool
IsSet returns true if OptRequestBodiesOrReferences was set.
func (OptRequestBodiesOrReferences) MarshalJSON ¶
func (s OptRequestBodiesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptRequestBodiesOrReferences) Reset ¶
func (o *OptRequestBodiesOrReferences) Reset()
Reset unsets value.
func (*OptRequestBodiesOrReferences) SetTo ¶
func (o *OptRequestBodiesOrReferences) SetTo(v RequestBodiesOrReferences)
SetTo sets value to v.
func (*OptRequestBodiesOrReferences) UnmarshalJSON ¶
func (s *OptRequestBodiesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptRequestBodyOrReference ¶
type OptRequestBodyOrReference struct {
Value RequestBodyOrReference
Set bool
}
OptRequestBodyOrReference is optional RequestBodyOrReference.
func NewOptRequestBodyOrReference ¶
func NewOptRequestBodyOrReference(v RequestBodyOrReference) OptRequestBodyOrReference
NewOptRequestBodyOrReference returns new OptRequestBodyOrReference with value set to v.
func (*OptRequestBodyOrReference) Decode ¶
func (o *OptRequestBodyOrReference) Decode(d *jx.Decoder) error
Decode decodes RequestBodyOrReference from json.
func (OptRequestBodyOrReference) Encode ¶
func (o OptRequestBodyOrReference) Encode(e *jx.Encoder)
Encode encodes RequestBodyOrReference as json.
func (OptRequestBodyOrReference) Get ¶
func (o OptRequestBodyOrReference) Get() (v RequestBodyOrReference, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptRequestBodyOrReference) IsSet ¶
func (o OptRequestBodyOrReference) IsSet() bool
IsSet returns true if OptRequestBodyOrReference was set.
func (OptRequestBodyOrReference) MarshalJSON ¶
func (s OptRequestBodyOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptRequestBodyOrReference) Reset ¶
func (o *OptRequestBodyOrReference) Reset()
Reset unsets value.
func (*OptRequestBodyOrReference) SetTo ¶
func (o *OptRequestBodyOrReference) SetTo(v RequestBodyOrReference)
SetTo sets value to v.
func (*OptRequestBodyOrReference) UnmarshalJSON ¶
func (s *OptRequestBodyOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptResponseOrReference ¶
type OptResponseOrReference struct {
Value ResponseOrReference
Set bool
}
OptResponseOrReference is optional ResponseOrReference.
func NewOptResponseOrReference ¶
func NewOptResponseOrReference(v ResponseOrReference) OptResponseOrReference
NewOptResponseOrReference returns new OptResponseOrReference with value set to v.
func (*OptResponseOrReference) Decode ¶
func (o *OptResponseOrReference) Decode(d *jx.Decoder) error
Decode decodes ResponseOrReference from json.
func (OptResponseOrReference) Encode ¶
func (o OptResponseOrReference) Encode(e *jx.Encoder)
Encode encodes ResponseOrReference as json.
func (OptResponseOrReference) Get ¶
func (o OptResponseOrReference) Get() (v ResponseOrReference, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptResponseOrReference) IsSet ¶
func (o OptResponseOrReference) IsSet() bool
IsSet returns true if OptResponseOrReference was set.
func (OptResponseOrReference) MarshalJSON ¶
func (s OptResponseOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptResponseOrReference) Or ¶
func (o OptResponseOrReference) Or(d ResponseOrReference) ResponseOrReference
Or returns value if set, or given parameter if does not.
func (*OptResponseOrReference) SetTo ¶
func (o *OptResponseOrReference) SetTo(v ResponseOrReference)
SetTo sets value to v.
func (*OptResponseOrReference) UnmarshalJSON ¶
func (s *OptResponseOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptResponsesOrReferences ¶
type OptResponsesOrReferences struct {
Value ResponsesOrReferences
Set bool
}
OptResponsesOrReferences is optional ResponsesOrReferences.
func NewOptResponsesOrReferences ¶
func NewOptResponsesOrReferences(v ResponsesOrReferences) OptResponsesOrReferences
NewOptResponsesOrReferences returns new OptResponsesOrReferences with value set to v.
func (*OptResponsesOrReferences) Decode ¶
func (o *OptResponsesOrReferences) Decode(d *jx.Decoder) error
Decode decodes ResponsesOrReferences from json.
func (OptResponsesOrReferences) Encode ¶
func (o OptResponsesOrReferences) Encode(e *jx.Encoder)
Encode encodes ResponsesOrReferences as json.
func (OptResponsesOrReferences) Get ¶
func (o OptResponsesOrReferences) Get() (v ResponsesOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptResponsesOrReferences) IsSet ¶
func (o OptResponsesOrReferences) IsSet() bool
IsSet returns true if OptResponsesOrReferences was set.
func (OptResponsesOrReferences) MarshalJSON ¶
func (s OptResponsesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptResponsesOrReferences) Or ¶
func (o OptResponsesOrReferences) Or(d ResponsesOrReferences) ResponsesOrReferences
Or returns value if set, or given parameter if does not.
func (*OptResponsesOrReferences) Reset ¶
func (o *OptResponsesOrReferences) Reset()
Reset unsets value.
func (*OptResponsesOrReferences) SetTo ¶
func (o *OptResponsesOrReferences) SetTo(v ResponsesOrReferences)
SetTo sets value to v.
func (*OptResponsesOrReferences) UnmarshalJSON ¶
func (s *OptResponsesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchema ¶
OptSchema is optional Schema.
func NewOptSchema ¶
NewOptSchema returns new OptSchema with value set to v.
func (OptSchema) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptSchema) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchemaAdditionalProperties ¶
type OptSchemaAdditionalProperties struct {
Value SchemaAdditionalProperties
Set bool
}
OptSchemaAdditionalProperties is optional SchemaAdditionalProperties.
func NewOptSchemaAdditionalProperties ¶
func NewOptSchemaAdditionalProperties(v SchemaAdditionalProperties) OptSchemaAdditionalProperties
NewOptSchemaAdditionalProperties returns new OptSchemaAdditionalProperties with value set to v.
func (*OptSchemaAdditionalProperties) Decode ¶
func (o *OptSchemaAdditionalProperties) Decode(d *jx.Decoder) error
Decode decodes SchemaAdditionalProperties from json.
func (OptSchemaAdditionalProperties) Encode ¶
func (o OptSchemaAdditionalProperties) Encode(e *jx.Encoder)
Encode encodes SchemaAdditionalProperties as json.
func (OptSchemaAdditionalProperties) Get ¶
func (o OptSchemaAdditionalProperties) Get() (v SchemaAdditionalProperties, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchemaAdditionalProperties) IsSet ¶
func (o OptSchemaAdditionalProperties) IsSet() bool
IsSet returns true if OptSchemaAdditionalProperties was set.
func (OptSchemaAdditionalProperties) MarshalJSON ¶
func (s OptSchemaAdditionalProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSchemaAdditionalProperties) Reset ¶
func (o *OptSchemaAdditionalProperties) Reset()
Reset unsets value.
func (*OptSchemaAdditionalProperties) SetTo ¶
func (o *OptSchemaAdditionalProperties) SetTo(v SchemaAdditionalProperties)
SetTo sets value to v.
func (*OptSchemaAdditionalProperties) UnmarshalJSON ¶
func (s *OptSchemaAdditionalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchemaOrReference ¶
type OptSchemaOrReference struct {
Value SchemaOrReference
Set bool
}
OptSchemaOrReference is optional SchemaOrReference.
func NewOptSchemaOrReference ¶
func NewOptSchemaOrReference(v SchemaOrReference) OptSchemaOrReference
NewOptSchemaOrReference returns new OptSchemaOrReference with value set to v.
func (*OptSchemaOrReference) Decode ¶
func (o *OptSchemaOrReference) Decode(d *jx.Decoder) error
Decode decodes SchemaOrReference from json.
func (OptSchemaOrReference) Encode ¶
func (o OptSchemaOrReference) Encode(e *jx.Encoder)
Encode encodes SchemaOrReference as json.
func (OptSchemaOrReference) Get ¶
func (o OptSchemaOrReference) Get() (v SchemaOrReference, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchemaOrReference) IsSet ¶
func (o OptSchemaOrReference) IsSet() bool
IsSet returns true if OptSchemaOrReference was set.
func (OptSchemaOrReference) MarshalJSON ¶
func (s OptSchemaOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSchemaOrReference) Or ¶
func (o OptSchemaOrReference) Or(d SchemaOrReference) SchemaOrReference
Or returns value if set, or given parameter if does not.
func (*OptSchemaOrReference) SetTo ¶
func (o *OptSchemaOrReference) SetTo(v SchemaOrReference)
SetTo sets value to v.
func (*OptSchemaOrReference) UnmarshalJSON ¶
func (s *OptSchemaOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchemaProperties ¶
type OptSchemaProperties struct {
Value SchemaProperties
Set bool
}
OptSchemaProperties is optional SchemaProperties.
func NewOptSchemaProperties ¶
func NewOptSchemaProperties(v SchemaProperties) OptSchemaProperties
NewOptSchemaProperties returns new OptSchemaProperties with value set to v.
func (*OptSchemaProperties) Decode ¶
func (o *OptSchemaProperties) Decode(d *jx.Decoder) error
Decode decodes SchemaProperties from json.
func (OptSchemaProperties) Encode ¶
func (o OptSchemaProperties) Encode(e *jx.Encoder)
Encode encodes SchemaProperties as json.
func (OptSchemaProperties) Get ¶
func (o OptSchemaProperties) Get() (v SchemaProperties, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchemaProperties) IsSet ¶
func (o OptSchemaProperties) IsSet() bool
IsSet returns true if OptSchemaProperties was set.
func (OptSchemaProperties) MarshalJSON ¶
func (s OptSchemaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSchemaProperties) Or ¶
func (o OptSchemaProperties) Or(d SchemaProperties) SchemaProperties
Or returns value if set, or given parameter if does not.
func (*OptSchemaProperties) SetTo ¶
func (o *OptSchemaProperties) SetTo(v SchemaProperties)
SetTo sets value to v.
func (*OptSchemaProperties) UnmarshalJSON ¶
func (s *OptSchemaProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchemaType ¶
type OptSchemaType struct {
Value SchemaType
Set bool
}
OptSchemaType is optional SchemaType.
func NewOptSchemaType ¶
func NewOptSchemaType(v SchemaType) OptSchemaType
NewOptSchemaType returns new OptSchemaType with value set to v.
func (*OptSchemaType) Decode ¶
func (o *OptSchemaType) Decode(d *jx.Decoder) error
Decode decodes SchemaType from json.
func (OptSchemaType) Encode ¶
func (o OptSchemaType) Encode(e *jx.Encoder)
Encode encodes SchemaType as json.
func (OptSchemaType) Get ¶
func (o OptSchemaType) Get() (v SchemaType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchemaType) IsSet ¶
func (o OptSchemaType) IsSet() bool
IsSet returns true if OptSchemaType was set.
func (OptSchemaType) MarshalJSON ¶
func (s OptSchemaType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSchemaType) Or ¶
func (o OptSchemaType) Or(d SchemaType) SchemaType
Or returns value if set, or given parameter if does not.
func (*OptSchemaType) UnmarshalJSON ¶
func (s *OptSchemaType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchemasOrReferences ¶
type OptSchemasOrReferences struct {
Value SchemasOrReferences
Set bool
}
OptSchemasOrReferences is optional SchemasOrReferences.
func NewOptSchemasOrReferences ¶
func NewOptSchemasOrReferences(v SchemasOrReferences) OptSchemasOrReferences
NewOptSchemasOrReferences returns new OptSchemasOrReferences with value set to v.
func (*OptSchemasOrReferences) Decode ¶
func (o *OptSchemasOrReferences) Decode(d *jx.Decoder) error
Decode decodes SchemasOrReferences from json.
func (OptSchemasOrReferences) Encode ¶
func (o OptSchemasOrReferences) Encode(e *jx.Encoder)
Encode encodes SchemasOrReferences as json.
func (OptSchemasOrReferences) Get ¶
func (o OptSchemasOrReferences) Get() (v SchemasOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchemasOrReferences) IsSet ¶
func (o OptSchemasOrReferences) IsSet() bool
IsSet returns true if OptSchemasOrReferences was set.
func (OptSchemasOrReferences) MarshalJSON ¶
func (s OptSchemasOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSchemasOrReferences) Or ¶
func (o OptSchemasOrReferences) Or(d SchemasOrReferences) SchemasOrReferences
Or returns value if set, or given parameter if does not.
func (*OptSchemasOrReferences) SetTo ¶
func (o *OptSchemasOrReferences) SetTo(v SchemasOrReferences)
SetTo sets value to v.
func (*OptSchemasOrReferences) UnmarshalJSON ¶
func (s *OptSchemasOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSecuritySchemesOrReferences ¶
type OptSecuritySchemesOrReferences struct {
Value SecuritySchemesOrReferences
Set bool
}
OptSecuritySchemesOrReferences is optional SecuritySchemesOrReferences.
func NewOptSecuritySchemesOrReferences ¶
func NewOptSecuritySchemesOrReferences(v SecuritySchemesOrReferences) OptSecuritySchemesOrReferences
NewOptSecuritySchemesOrReferences returns new OptSecuritySchemesOrReferences with value set to v.
func (*OptSecuritySchemesOrReferences) Decode ¶
func (o *OptSecuritySchemesOrReferences) Decode(d *jx.Decoder) error
Decode decodes SecuritySchemesOrReferences from json.
func (OptSecuritySchemesOrReferences) Encode ¶
func (o OptSecuritySchemesOrReferences) Encode(e *jx.Encoder)
Encode encodes SecuritySchemesOrReferences as json.
func (OptSecuritySchemesOrReferences) Get ¶
func (o OptSecuritySchemesOrReferences) Get() (v SecuritySchemesOrReferences, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSecuritySchemesOrReferences) IsSet ¶
func (o OptSecuritySchemesOrReferences) IsSet() bool
IsSet returns true if OptSecuritySchemesOrReferences was set.
func (OptSecuritySchemesOrReferences) MarshalJSON ¶
func (s OptSecuritySchemesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSecuritySchemesOrReferences) Or ¶
func (o OptSecuritySchemesOrReferences) Or(d SecuritySchemesOrReferences) SecuritySchemesOrReferences
Or returns value if set, or given parameter if does not.
func (*OptSecuritySchemesOrReferences) Reset ¶
func (o *OptSecuritySchemesOrReferences) Reset()
Reset unsets value.
func (*OptSecuritySchemesOrReferences) SetTo ¶
func (o *OptSecuritySchemesOrReferences) SetTo(v SecuritySchemesOrReferences)
SetTo sets value to v.
func (*OptSecuritySchemesOrReferences) UnmarshalJSON ¶
func (s *OptSecuritySchemesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptServer ¶
OptServer is optional Server.
func NewOptServer ¶
NewOptServer returns new OptServer with value set to v.
func (OptServer) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptServer) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptServerVariables ¶
type OptServerVariables struct {
Value ServerVariables
Set bool
}
OptServerVariables is optional ServerVariables.
func NewOptServerVariables ¶
func NewOptServerVariables(v ServerVariables) OptServerVariables
NewOptServerVariables returns new OptServerVariables with value set to v.
func (*OptServerVariables) Decode ¶
func (o *OptServerVariables) Decode(d *jx.Decoder) error
Decode decodes ServerVariables from json.
func (OptServerVariables) Encode ¶
func (o OptServerVariables) Encode(e *jx.Encoder)
Encode encodes ServerVariables as json.
func (OptServerVariables) Get ¶
func (o OptServerVariables) Get() (v ServerVariables, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptServerVariables) IsSet ¶
func (o OptServerVariables) IsSet() bool
IsSet returns true if OptServerVariables was set.
func (OptServerVariables) MarshalJSON ¶
func (s OptServerVariables) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptServerVariables) Or ¶
func (o OptServerVariables) Or(d ServerVariables) ServerVariables
Or returns value if set, or given parameter if does not.
func (*OptServerVariables) SetTo ¶
func (o *OptServerVariables) SetTo(v ServerVariables)
SetTo sets value to v.
func (*OptServerVariables) UnmarshalJSON ¶
func (s *OptServerVariables) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptStrings ¶
OptStrings is optional Strings.
func NewOptStrings ¶
func NewOptStrings(v Strings) OptStrings
NewOptStrings returns new OptStrings with value set to v.
func (*OptStrings) Decode ¶
func (o *OptStrings) Decode(d *jx.Decoder) error
Decode decodes Strings from json.
func (OptStrings) Encode ¶
func (o OptStrings) Encode(e *jx.Encoder)
Encode encodes Strings as json.
func (OptStrings) Get ¶
func (o OptStrings) Get() (v Strings, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptStrings) IsSet ¶
func (o OptStrings) IsSet() bool
IsSet returns true if OptStrings was set.
func (OptStrings) MarshalJSON ¶
func (s OptStrings) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptStrings) Or ¶
func (o OptStrings) Or(d Strings) Strings
Or returns value if set, or given parameter if does not.
func (*OptStrings) UnmarshalJSON ¶
func (s *OptStrings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptTitle ¶
OptTitle is optional Title.
func NewOptTitle ¶
NewOptTitle returns new OptTitle with value set to v.
func (OptTitle) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptTitle) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUniqueItems ¶
type OptUniqueItems struct {
Value UniqueItems
Set bool
}
OptUniqueItems is optional UniqueItems.
func NewOptUniqueItems ¶
func NewOptUniqueItems(v UniqueItems) OptUniqueItems
NewOptUniqueItems returns new OptUniqueItems with value set to v.
func (*OptUniqueItems) Decode ¶
func (o *OptUniqueItems) Decode(d *jx.Decoder) error
Decode decodes UniqueItems from json.
func (OptUniqueItems) Encode ¶
func (o OptUniqueItems) Encode(e *jx.Encoder)
Encode encodes UniqueItems as json.
func (OptUniqueItems) Get ¶
func (o OptUniqueItems) Get() (v UniqueItems, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUniqueItems) IsSet ¶
func (o OptUniqueItems) IsSet() bool
IsSet returns true if OptUniqueItems was set.
func (OptUniqueItems) MarshalJSON ¶
func (s OptUniqueItems) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUniqueItems) Or ¶
func (o OptUniqueItems) Or(d UniqueItems) UniqueItems
Or returns value if set, or given parameter if does not.
func (*OptUniqueItems) UnmarshalJSON ¶
func (s *OptUniqueItems) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptXML ¶
OptXML is optional XML.
func (OptXML) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptXML) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Parameter ¶
type Parameter struct {
Name string `json:"name"`
In ParameterIn `json:"in"`
Description OptString `json:"description"`
Required OptBool `json:"required"`
Deprecated OptBool `json:"deprecated"`
AllowEmptyValue OptBool `json:"allowEmptyValue"`
Style OptParameterStyle `json:"style"`
Explode OptBool `json:"explode"`
AllowReserved OptBool `json:"allowReserved"`
Schema *SchemaOrReference `json:"schema"`
Example Any `json:"example"`
Examples OptExamplesOrReferences `json:"examples"`
Content OptMediaTypes `json:"content"`
// Pattern: "^x-".
Pattern0Props ParameterPattern0
}
Describes a single operation parameter. A unique parameter is defined by a combination of a name and location. Ref: #/definitions/parameter
func (*Parameter) GetAllowEmptyValue ¶
GetAllowEmptyValue returns the value of AllowEmptyValue.
func (*Parameter) GetAllowReserved ¶
GetAllowReserved returns the value of AllowReserved.
func (*Parameter) GetContent ¶
func (s *Parameter) GetContent() OptMediaTypes
GetContent returns the value of Content.
func (*Parameter) GetDeprecated ¶
GetDeprecated returns the value of Deprecated.
func (*Parameter) GetDescription ¶
GetDescription returns the value of Description.
func (*Parameter) GetExample ¶
GetExample returns the value of Example.
func (*Parameter) GetExamples ¶
func (s *Parameter) GetExamples() OptExamplesOrReferences
GetExamples returns the value of Examples.
func (*Parameter) GetExplode ¶
GetExplode returns the value of Explode.
func (*Parameter) GetPattern0Props ¶
func (s *Parameter) GetPattern0Props() ParameterPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Parameter) GetRequired ¶
GetRequired returns the value of Required.
func (*Parameter) GetSchema ¶
func (s *Parameter) GetSchema() *SchemaOrReference
GetSchema returns the value of Schema.
func (*Parameter) GetStyle ¶
func (s *Parameter) GetStyle() OptParameterStyle
GetStyle returns the value of Style.
func (*Parameter) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Parameter) SetAllowEmptyValue ¶
SetAllowEmptyValue sets the value of AllowEmptyValue.
func (*Parameter) SetAllowReserved ¶
SetAllowReserved sets the value of AllowReserved.
func (*Parameter) SetContent ¶
func (s *Parameter) SetContent(val OptMediaTypes)
SetContent sets the value of Content.
func (*Parameter) SetDeprecated ¶
SetDeprecated sets the value of Deprecated.
func (*Parameter) SetDescription ¶
SetDescription sets the value of Description.
func (*Parameter) SetExample ¶
SetExample sets the value of Example.
func (*Parameter) SetExamples ¶
func (s *Parameter) SetExamples(val OptExamplesOrReferences)
SetExamples sets the value of Examples.
func (*Parameter) SetExplode ¶
SetExplode sets the value of Explode.
func (*Parameter) SetPattern0Props ¶
func (s *Parameter) SetPattern0Props(val ParameterPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Parameter) SetRequired ¶
SetRequired sets the value of Required.
func (*Parameter) SetSchema ¶
func (s *Parameter) SetSchema(val *SchemaOrReference)
SetSchema sets the value of Schema.
func (*Parameter) SetStyle ¶
func (s *Parameter) SetStyle(val OptParameterStyle)
SetStyle sets the value of Style.
func (*Parameter) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ParameterIn ¶
type ParameterIn string
const ( ParameterInPath ParameterIn = "path" ParameterInQuery ParameterIn = "query" ParameterInCookie ParameterIn = "cookie" ParameterInHeader ParameterIn = "header" )
func (ParameterIn) AllValues ¶
func (ParameterIn) AllValues() []ParameterIn
AllValues returns all ParameterIn values.
func (*ParameterIn) Decode ¶
func (s *ParameterIn) Decode(d *jx.Decoder) error
Decode decodes ParameterIn from json.
func (ParameterIn) Encode ¶
func (s ParameterIn) Encode(e *jx.Encoder)
Encode encodes ParameterIn as json.
func (ParameterIn) MarshalJSON ¶
func (s ParameterIn) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ParameterIn) MarshalText ¶
func (s ParameterIn) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ParameterIn) UnmarshalJSON ¶
func (s *ParameterIn) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ParameterIn) UnmarshalText ¶
func (s *ParameterIn) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ParameterIn) Validate ¶
func (s ParameterIn) Validate() error
type ParameterOrReference ¶
type ParameterOrReference struct {
Type ParameterOrReferenceType // switch on this field
Parameter Parameter
Reference Reference
}
Ref: #/definitions/parameterOrReference ParameterOrReference represents sum type.
func NewParameterParameterOrReference ¶
func NewParameterParameterOrReference(v Parameter) ParameterOrReference
NewParameterParameterOrReference returns new ParameterOrReference from Parameter.
func NewReferenceParameterOrReference ¶
func NewReferenceParameterOrReference(v Reference) ParameterOrReference
NewReferenceParameterOrReference returns new ParameterOrReference from Reference.
func (*ParameterOrReference) Decode ¶
func (s *ParameterOrReference) Decode(d *jx.Decoder) error
Decode decodes ParameterOrReference from json.
func (ParameterOrReference) Encode ¶
func (s ParameterOrReference) Encode(e *jx.Encoder)
Encode encodes ParameterOrReference as json.
func (ParameterOrReference) GetParameter ¶
func (s ParameterOrReference) GetParameter() (v Parameter, ok bool)
GetParameter returns Parameter and true boolean if ParameterOrReference is Parameter.
func (ParameterOrReference) GetReference ¶
func (s ParameterOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if ParameterOrReference is Reference.
func (ParameterOrReference) IsParameter ¶
func (s ParameterOrReference) IsParameter() bool
IsParameter reports whether ParameterOrReference is Parameter.
func (ParameterOrReference) IsReference ¶
func (s ParameterOrReference) IsReference() bool
IsReference reports whether ParameterOrReference is Reference.
func (ParameterOrReference) MarshalJSON ¶
func (s ParameterOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ParameterOrReference) SetParameter ¶
func (s *ParameterOrReference) SetParameter(v Parameter)
SetParameter sets ParameterOrReference to Parameter.
func (*ParameterOrReference) SetReference ¶
func (s *ParameterOrReference) SetReference(v Reference)
SetReference sets ParameterOrReference to Reference.
func (*ParameterOrReference) UnmarshalJSON ¶
func (s *ParameterOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ParameterOrReference) Validate ¶
func (s ParameterOrReference) Validate() error
type ParameterOrReferenceType ¶
type ParameterOrReferenceType string
ParameterOrReferenceType is oneOf type of ParameterOrReference.
const ( ParameterParameterOrReference ParameterOrReferenceType = "Parameter" ReferenceParameterOrReference ParameterOrReferenceType = "Reference" )
Possible values for ParameterOrReferenceType.
type ParameterPattern0 ¶
type ParameterPattern0 map[string]SpecificationExtension
func (*ParameterPattern0) Decode ¶
func (s *ParameterPattern0) Decode(d *jx.Decoder) error
Decode decodes ParameterPattern0 from json.
func (ParameterPattern0) Encode ¶
func (s ParameterPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ParameterPattern0) MarshalJSON ¶
func (s ParameterPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ParameterPattern0) UnmarshalJSON ¶
func (s *ParameterPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ParameterStyle ¶
type ParameterStyle string
const ( ParameterStyleMatrix ParameterStyle = "matrix" ParameterStyleLabel ParameterStyle = "label" ParameterStyleForm ParameterStyle = "form" ParameterStyleSimple ParameterStyle = "simple" ParameterStyleSpaceDelimited ParameterStyle = "spaceDelimited" ParameterStylePipeDelimited ParameterStyle = "pipeDelimited" ParameterStyleDeepObject ParameterStyle = "deepObject" )
func (ParameterStyle) AllValues ¶
func (ParameterStyle) AllValues() []ParameterStyle
AllValues returns all ParameterStyle values.
func (*ParameterStyle) Decode ¶
func (s *ParameterStyle) Decode(d *jx.Decoder) error
Decode decodes ParameterStyle from json.
func (ParameterStyle) Encode ¶
func (s ParameterStyle) Encode(e *jx.Encoder)
Encode encodes ParameterStyle as json.
func (ParameterStyle) MarshalJSON ¶
func (s ParameterStyle) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ParameterStyle) MarshalText ¶
func (s ParameterStyle) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ParameterStyle) UnmarshalJSON ¶
func (s *ParameterStyle) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ParameterStyle) UnmarshalText ¶
func (s *ParameterStyle) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ParameterStyle) Validate ¶
func (s ParameterStyle) Validate() error
type ParametersOrReferences ¶
type ParametersOrReferences map[string]ParameterOrReference
Ref: #/definitions/parametersOrReferences
func (*ParametersOrReferences) Decode ¶
func (s *ParametersOrReferences) Decode(d *jx.Decoder) error
Decode decodes ParametersOrReferences from json.
func (ParametersOrReferences) Encode ¶
func (s ParametersOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ParametersOrReferences) MarshalJSON ¶
func (s ParametersOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ParametersOrReferences) UnmarshalJSON ¶
func (s *ParametersOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ParametersOrReferences) Validate ¶
func (s ParametersOrReferences) Validate() error
type PathItem ¶
type PathItem struct {
Ref OptString `json:"$ref"`
Summary OptString `json:"summary"`
Description OptString `json:"description"`
Get OptOperation `json:"get"`
Put OptOperation `json:"put"`
Post OptOperation `json:"post"`
Delete OptOperation `json:"delete"`
Options OptOperation `json:"options"`
Head OptOperation `json:"head"`
Patch OptOperation `json:"patch"`
Trace OptOperation `json:"trace"`
Servers []Server `json:"servers"`
Parameters []ParameterOrReference `json:"parameters"`
// Pattern: "^x-".
Pattern0Props PathItemPattern0
}
Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available. Ref: #/definitions/pathItem
func (*PathItem) GetDelete ¶
func (s *PathItem) GetDelete() OptOperation
GetDelete returns the value of Delete.
func (*PathItem) GetDescription ¶
GetDescription returns the value of Description.
func (*PathItem) GetHead ¶
func (s *PathItem) GetHead() OptOperation
GetHead returns the value of Head.
func (*PathItem) GetOptions ¶
func (s *PathItem) GetOptions() OptOperation
GetOptions returns the value of Options.
func (*PathItem) GetParameters ¶
func (s *PathItem) GetParameters() []ParameterOrReference
GetParameters returns the value of Parameters.
func (*PathItem) GetPatch ¶
func (s *PathItem) GetPatch() OptOperation
GetPatch returns the value of Patch.
func (*PathItem) GetPattern0Props ¶
func (s *PathItem) GetPattern0Props() PathItemPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*PathItem) GetPost ¶
func (s *PathItem) GetPost() OptOperation
GetPost returns the value of Post.
func (*PathItem) GetServers ¶
GetServers returns the value of Servers.
func (*PathItem) GetSummary ¶
GetSummary returns the value of Summary.
func (*PathItem) GetTrace ¶
func (s *PathItem) GetTrace() OptOperation
GetTrace returns the value of Trace.
func (*PathItem) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PathItem) SetDelete ¶
func (s *PathItem) SetDelete(val OptOperation)
SetDelete sets the value of Delete.
func (*PathItem) SetDescription ¶
SetDescription sets the value of Description.
func (*PathItem) SetHead ¶
func (s *PathItem) SetHead(val OptOperation)
SetHead sets the value of Head.
func (*PathItem) SetOptions ¶
func (s *PathItem) SetOptions(val OptOperation)
SetOptions sets the value of Options.
func (*PathItem) SetParameters ¶
func (s *PathItem) SetParameters(val []ParameterOrReference)
SetParameters sets the value of Parameters.
func (*PathItem) SetPatch ¶
func (s *PathItem) SetPatch(val OptOperation)
SetPatch sets the value of Patch.
func (*PathItem) SetPattern0Props ¶
func (s *PathItem) SetPattern0Props(val PathItemPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*PathItem) SetPost ¶
func (s *PathItem) SetPost(val OptOperation)
SetPost sets the value of Post.
func (*PathItem) SetServers ¶
SetServers sets the value of Servers.
func (*PathItem) SetSummary ¶
SetSummary sets the value of Summary.
func (*PathItem) SetTrace ¶
func (s *PathItem) SetTrace(val OptOperation)
SetTrace sets the value of Trace.
func (*PathItem) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PathItemPattern0 ¶
type PathItemPattern0 map[string]SpecificationExtension
func (*PathItemPattern0) Decode ¶
func (s *PathItemPattern0) Decode(d *jx.Decoder) error
Decode decodes PathItemPattern0 from json.
func (PathItemPattern0) Encode ¶
func (s PathItemPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (PathItemPattern0) MarshalJSON ¶
func (s PathItemPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PathItemPattern0) UnmarshalJSON ¶
func (s *PathItemPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Paths ¶
type Paths struct {
// Pattern: "^/".
Pattern0Props PathsPattern0
// Pattern: "^x-".
Pattern1Props PathsPattern1
}
Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the `Server Object` in order to construct the full URL. The Paths MAY be empty, due to ACL constraints. Ref: #/definitions/paths
func (*Paths) GetPattern0Props ¶
func (s *Paths) GetPattern0Props() PathsPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Paths) GetPattern1Props ¶
func (s *Paths) GetPattern1Props() PathsPattern1
GetPattern1Props returns the value of Pattern1Props.
func (*Paths) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Paths) SetPattern0Props ¶
func (s *Paths) SetPattern0Props(val PathsPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Paths) SetPattern1Props ¶
func (s *Paths) SetPattern1Props(val PathsPattern1)
SetPattern1Props sets the value of Pattern1Props.
func (*Paths) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PathsPattern0 ¶
func (*PathsPattern0) Decode ¶
func (s *PathsPattern0) Decode(d *jx.Decoder) error
Decode decodes PathsPattern0 from json.
func (PathsPattern0) Encode ¶
func (s PathsPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (PathsPattern0) MarshalJSON ¶
func (s PathsPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PathsPattern0) UnmarshalJSON ¶
func (s *PathsPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PathsPattern0) Validate ¶
func (s PathsPattern0) Validate() error
type PathsPattern1 ¶
type PathsPattern1 map[string]SpecificationExtension
func (*PathsPattern1) Decode ¶
func (s *PathsPattern1) Decode(d *jx.Decoder) error
Decode decodes PathsPattern1 from json.
func (PathsPattern1) Encode ¶
func (s PathsPattern1) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (PathsPattern1) MarshalJSON ¶
func (s PathsPattern1) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PathsPattern1) UnmarshalJSON ¶
func (s *PathsPattern1) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Pattern ¶
type Pattern string
func (Pattern) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Pattern) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PositiveInteger ¶
type PositiveInteger int
func (*PositiveInteger) Decode ¶
func (s *PositiveInteger) Decode(d *jx.Decoder) error
Decode decodes PositiveInteger from json.
func (PositiveInteger) Encode ¶
func (s PositiveInteger) Encode(e *jx.Encoder)
Encode encodes PositiveInteger as json.
func (PositiveInteger) MarshalJSON ¶
func (s PositiveInteger) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PositiveInteger) UnmarshalJSON ¶
func (s *PositiveInteger) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PositiveInteger) Validate ¶
func (s PositiveInteger) Validate() error
type Reference ¶
type Reference struct {
Ref string `json:"$ref"`
}
A simple object to allow referencing other components in the specification, internally and externally. The Reference Object is defined by JSON Reference and follows the same structure, behavior and rules. For this specification, reference resolution is accomplished as defined by the JSON Reference specification and not by the JSON Schema specification. Ref: #/definitions/reference
func (*Reference) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Reference) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type RequestBodiesOrReferences ¶
type RequestBodiesOrReferences map[string]RequestBodyOrReference
Ref: #/definitions/requestBodiesOrReferences
func (*RequestBodiesOrReferences) Decode ¶
func (s *RequestBodiesOrReferences) Decode(d *jx.Decoder) error
Decode decodes RequestBodiesOrReferences from json.
func (RequestBodiesOrReferences) Encode ¶
func (s RequestBodiesOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (RequestBodiesOrReferences) MarshalJSON ¶
func (s RequestBodiesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RequestBodiesOrReferences) UnmarshalJSON ¶
func (s *RequestBodiesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (RequestBodiesOrReferences) Validate ¶
func (s RequestBodiesOrReferences) Validate() error
type RequestBody ¶
type RequestBody struct {
Description OptString `json:"description"`
Content MediaTypes `json:"content"`
Required OptBool `json:"required"`
// Pattern: "^x-".
Pattern0Props RequestBodyPattern0
}
Describes a single request body. Ref: #/definitions/requestBody
func (*RequestBody) Decode ¶
func (s *RequestBody) Decode(d *jx.Decoder) error
Decode decodes RequestBody from json.
func (*RequestBody) Encode ¶
func (s *RequestBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*RequestBody) GetContent ¶
func (s *RequestBody) GetContent() MediaTypes
GetContent returns the value of Content.
func (*RequestBody) GetDescription ¶
func (s *RequestBody) GetDescription() OptString
GetDescription returns the value of Description.
func (*RequestBody) GetPattern0Props ¶
func (s *RequestBody) GetPattern0Props() RequestBodyPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*RequestBody) GetRequired ¶
func (s *RequestBody) GetRequired() OptBool
GetRequired returns the value of Required.
func (*RequestBody) MarshalJSON ¶
func (s *RequestBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RequestBody) SetContent ¶
func (s *RequestBody) SetContent(val MediaTypes)
SetContent sets the value of Content.
func (*RequestBody) SetDescription ¶
func (s *RequestBody) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*RequestBody) SetPattern0Props ¶
func (s *RequestBody) SetPattern0Props(val RequestBodyPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*RequestBody) SetRequired ¶
func (s *RequestBody) SetRequired(val OptBool)
SetRequired sets the value of Required.
func (*RequestBody) UnmarshalJSON ¶
func (s *RequestBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*RequestBody) Validate ¶
func (s *RequestBody) Validate() error
type RequestBodyOrReference ¶
type RequestBodyOrReference struct {
Type RequestBodyOrReferenceType // switch on this field
RequestBody RequestBody
Reference Reference
}
Ref: #/definitions/requestBodyOrReference RequestBodyOrReference represents sum type.
func NewReferenceRequestBodyOrReference ¶
func NewReferenceRequestBodyOrReference(v Reference) RequestBodyOrReference
NewReferenceRequestBodyOrReference returns new RequestBodyOrReference from Reference.
func NewRequestBodyRequestBodyOrReference ¶
func NewRequestBodyRequestBodyOrReference(v RequestBody) RequestBodyOrReference
NewRequestBodyRequestBodyOrReference returns new RequestBodyOrReference from RequestBody.
func (*RequestBodyOrReference) Decode ¶
func (s *RequestBodyOrReference) Decode(d *jx.Decoder) error
Decode decodes RequestBodyOrReference from json.
func (RequestBodyOrReference) Encode ¶
func (s RequestBodyOrReference) Encode(e *jx.Encoder)
Encode encodes RequestBodyOrReference as json.
func (RequestBodyOrReference) GetReference ¶
func (s RequestBodyOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if RequestBodyOrReference is Reference.
func (RequestBodyOrReference) GetRequestBody ¶
func (s RequestBodyOrReference) GetRequestBody() (v RequestBody, ok bool)
GetRequestBody returns RequestBody and true boolean if RequestBodyOrReference is RequestBody.
func (RequestBodyOrReference) IsReference ¶
func (s RequestBodyOrReference) IsReference() bool
IsReference reports whether RequestBodyOrReference is Reference.
func (RequestBodyOrReference) IsRequestBody ¶
func (s RequestBodyOrReference) IsRequestBody() bool
IsRequestBody reports whether RequestBodyOrReference is RequestBody.
func (RequestBodyOrReference) MarshalJSON ¶
func (s RequestBodyOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RequestBodyOrReference) SetReference ¶
func (s *RequestBodyOrReference) SetReference(v Reference)
SetReference sets RequestBodyOrReference to Reference.
func (*RequestBodyOrReference) SetRequestBody ¶
func (s *RequestBodyOrReference) SetRequestBody(v RequestBody)
SetRequestBody sets RequestBodyOrReference to RequestBody.
func (*RequestBodyOrReference) UnmarshalJSON ¶
func (s *RequestBodyOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (RequestBodyOrReference) Validate ¶
func (s RequestBodyOrReference) Validate() error
type RequestBodyOrReferenceType ¶
type RequestBodyOrReferenceType string
RequestBodyOrReferenceType is oneOf type of RequestBodyOrReference.
const ( RequestBodyRequestBodyOrReference RequestBodyOrReferenceType = "RequestBody" ReferenceRequestBodyOrReference RequestBodyOrReferenceType = "Reference" )
Possible values for RequestBodyOrReferenceType.
type RequestBodyPattern0 ¶
type RequestBodyPattern0 map[string]SpecificationExtension
func (*RequestBodyPattern0) Decode ¶
func (s *RequestBodyPattern0) Decode(d *jx.Decoder) error
Decode decodes RequestBodyPattern0 from json.
func (RequestBodyPattern0) Encode ¶
func (s RequestBodyPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (RequestBodyPattern0) MarshalJSON ¶
func (s RequestBodyPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RequestBodyPattern0) UnmarshalJSON ¶
func (s *RequestBodyPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Response ¶
type Response struct {
Description string `json:"description"`
Headers OptHeadersOrReferences `json:"headers"`
Content OptMediaTypes `json:"content"`
Links OptLinksOrReferences `json:"links"`
// Pattern: "^x-".
Pattern0Props ResponsePattern0
}
Describes a single response from an API Operation, including design-time, static `links` to operations based on the response. Ref: #/definitions/response
func (*Response) GetContent ¶
func (s *Response) GetContent() OptMediaTypes
GetContent returns the value of Content.
func (*Response) GetDescription ¶
GetDescription returns the value of Description.
func (*Response) GetHeaders ¶
func (s *Response) GetHeaders() OptHeadersOrReferences
GetHeaders returns the value of Headers.
func (*Response) GetLinks ¶
func (s *Response) GetLinks() OptLinksOrReferences
GetLinks returns the value of Links.
func (*Response) GetPattern0Props ¶
func (s *Response) GetPattern0Props() ResponsePattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Response) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Response) SetContent ¶
func (s *Response) SetContent(val OptMediaTypes)
SetContent sets the value of Content.
func (*Response) SetDescription ¶
SetDescription sets the value of Description.
func (*Response) SetHeaders ¶
func (s *Response) SetHeaders(val OptHeadersOrReferences)
SetHeaders sets the value of Headers.
func (*Response) SetLinks ¶
func (s *Response) SetLinks(val OptLinksOrReferences)
SetLinks sets the value of Links.
func (*Response) SetPattern0Props ¶
func (s *Response) SetPattern0Props(val ResponsePattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Response) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ResponseOrReference ¶
type ResponseOrReference struct {
Type ResponseOrReferenceType // switch on this field
Response Response
Reference Reference
}
Ref: #/definitions/responseOrReference ResponseOrReference represents sum type.
func NewReferenceResponseOrReference ¶
func NewReferenceResponseOrReference(v Reference) ResponseOrReference
NewReferenceResponseOrReference returns new ResponseOrReference from Reference.
func NewResponseResponseOrReference ¶
func NewResponseResponseOrReference(v Response) ResponseOrReference
NewResponseResponseOrReference returns new ResponseOrReference from Response.
func (*ResponseOrReference) Decode ¶
func (s *ResponseOrReference) Decode(d *jx.Decoder) error
Decode decodes ResponseOrReference from json.
func (ResponseOrReference) Encode ¶
func (s ResponseOrReference) Encode(e *jx.Encoder)
Encode encodes ResponseOrReference as json.
func (ResponseOrReference) GetReference ¶
func (s ResponseOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if ResponseOrReference is Reference.
func (ResponseOrReference) GetResponse ¶
func (s ResponseOrReference) GetResponse() (v Response, ok bool)
GetResponse returns Response and true boolean if ResponseOrReference is Response.
func (ResponseOrReference) IsReference ¶
func (s ResponseOrReference) IsReference() bool
IsReference reports whether ResponseOrReference is Reference.
func (ResponseOrReference) IsResponse ¶
func (s ResponseOrReference) IsResponse() bool
IsResponse reports whether ResponseOrReference is Response.
func (ResponseOrReference) MarshalJSON ¶
func (s ResponseOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResponseOrReference) SetReference ¶
func (s *ResponseOrReference) SetReference(v Reference)
SetReference sets ResponseOrReference to Reference.
func (*ResponseOrReference) SetResponse ¶
func (s *ResponseOrReference) SetResponse(v Response)
SetResponse sets ResponseOrReference to Response.
func (*ResponseOrReference) UnmarshalJSON ¶
func (s *ResponseOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ResponseOrReference) Validate ¶
func (s ResponseOrReference) Validate() error
type ResponseOrReferenceType ¶
type ResponseOrReferenceType string
ResponseOrReferenceType is oneOf type of ResponseOrReference.
const ( ResponseResponseOrReference ResponseOrReferenceType = "Response" ReferenceResponseOrReference ResponseOrReferenceType = "Reference" )
Possible values for ResponseOrReferenceType.
type ResponsePattern0 ¶
type ResponsePattern0 map[string]SpecificationExtension
func (*ResponsePattern0) Decode ¶
func (s *ResponsePattern0) Decode(d *jx.Decoder) error
Decode decodes ResponsePattern0 from json.
func (ResponsePattern0) Encode ¶
func (s ResponsePattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ResponsePattern0) MarshalJSON ¶
func (s ResponsePattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResponsePattern0) UnmarshalJSON ¶
func (s *ResponsePattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Responses ¶
type Responses struct {
Default OptResponseOrReference `json:"default"`
// Pattern: "^([0-9X]{3})$".
Pattern0Props ResponsesPattern0
// Pattern: "^x-".
Pattern1Props ResponsesPattern1
}
A container for the expected responses of an operation. The container maps a HTTP response code to the expected response. The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors. The `default` MAY be used as a default response object for all HTTP codes that are not covered individually by the specification.
The `Responses Object` MUST contain at least one response code, and it SHOULD be the response
for a successful operation call. Ref: #/definitions/responses
func (*Responses) GetDefault ¶
func (s *Responses) GetDefault() OptResponseOrReference
GetDefault returns the value of Default.
func (*Responses) GetPattern0Props ¶
func (s *Responses) GetPattern0Props() ResponsesPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Responses) GetPattern1Props ¶
func (s *Responses) GetPattern1Props() ResponsesPattern1
GetPattern1Props returns the value of Pattern1Props.
func (*Responses) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Responses) SetDefault ¶
func (s *Responses) SetDefault(val OptResponseOrReference)
SetDefault sets the value of Default.
func (*Responses) SetPattern0Props ¶
func (s *Responses) SetPattern0Props(val ResponsesPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Responses) SetPattern1Props ¶
func (s *Responses) SetPattern1Props(val ResponsesPattern1)
SetPattern1Props sets the value of Pattern1Props.
func (*Responses) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ResponsesOrReferences ¶
type ResponsesOrReferences map[string]ResponseOrReference
Ref: #/definitions/responsesOrReferences
func (*ResponsesOrReferences) Decode ¶
func (s *ResponsesOrReferences) Decode(d *jx.Decoder) error
Decode decodes ResponsesOrReferences from json.
func (ResponsesOrReferences) Encode ¶
func (s ResponsesOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ResponsesOrReferences) MarshalJSON ¶
func (s ResponsesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResponsesOrReferences) UnmarshalJSON ¶
func (s *ResponsesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ResponsesOrReferences) Validate ¶
func (s ResponsesOrReferences) Validate() error
type ResponsesPattern0 ¶
type ResponsesPattern0 map[string]ResponseOrReference
func (*ResponsesPattern0) Decode ¶
func (s *ResponsesPattern0) Decode(d *jx.Decoder) error
Decode decodes ResponsesPattern0 from json.
func (ResponsesPattern0) Encode ¶
func (s ResponsesPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ResponsesPattern0) MarshalJSON ¶
func (s ResponsesPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResponsesPattern0) UnmarshalJSON ¶
func (s *ResponsesPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (ResponsesPattern0) Validate ¶
func (s ResponsesPattern0) Validate() error
type ResponsesPattern1 ¶
type ResponsesPattern1 map[string]SpecificationExtension
func (*ResponsesPattern1) Decode ¶
func (s *ResponsesPattern1) Decode(d *jx.Decoder) error
Decode decodes ResponsesPattern1 from json.
func (ResponsesPattern1) Encode ¶
func (s ResponsesPattern1) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ResponsesPattern1) MarshalJSON ¶
func (s ResponsesPattern1) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResponsesPattern1) UnmarshalJSON ¶
func (s *ResponsesPattern1) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Schema ¶
type Schema struct {
Nullable OptBool `json:"nullable"`
Discriminator OptDiscriminator `json:"discriminator"`
ReadOnly OptBool `json:"readOnly"`
WriteOnly OptBool `json:"writeOnly"`
XML OptXML `json:"xml"`
ExternalDocs OptExternalDocs `json:"externalDocs"`
Example Any `json:"example"`
Deprecated OptBool `json:"deprecated"`
Title OptTitle `json:"title"`
MultipleOf OptMultipleOf `json:"multipleOf"`
Maximum OptMaximum `json:"maximum"`
ExclusiveMaximum OptExclusiveMaximum `json:"exclusiveMaximum"`
Minimum OptMinimum `json:"minimum"`
ExclusiveMinimum OptExclusiveMinimum `json:"exclusiveMinimum"`
MaxLength OptPositiveInteger `json:"maxLength"`
MinLength OptPositiveInteger `json:"minLength"`
Pattern OptPattern `json:"pattern"`
MaxItems OptPositiveInteger `json:"maxItems"`
MinItems OptPositiveInteger `json:"minItems"`
UniqueItems OptUniqueItems `json:"uniqueItems"`
MaxProperties OptPositiveInteger `json:"maxProperties"`
MinProperties OptPositiveInteger `json:"minProperties"`
Required StringArray `json:"required"`
Enum Enum `json:"enum"`
Type OptSchemaType `json:"type"`
AllOf []SchemaOrReference `json:"allOf"`
OneOf []SchemaOrReference `json:"oneOf"`
AnyOf []SchemaOrReference `json:"anyOf"`
Not *Schema `json:"not"`
Items *SchemaOrReference `json:"items"`
Properties OptSchemaProperties `json:"properties"`
AdditionalProperties *SchemaAdditionalProperties `json:"additionalProperties"`
Default DefaultType `json:"default"`
Description OptString `json:"description"`
Format OptString `json:"format"`
// Pattern: "^x-".
Pattern0Props SchemaPattern0
}
The Schema Object allows the definition of input and output data types. These types can be objects,
but also primitives and arrays. This object is an extended subset of the JSON Schema
Specification Wright Draft 00. For more information about the properties, see JSON Schema Core and JSON Schema Validation. Unless stated otherwise, the property definitions follow the JSON Schema. Ref: #/definitions/schema
func (*Schema) GetAdditionalProperties ¶
func (s *Schema) GetAdditionalProperties() *SchemaAdditionalProperties
GetAdditionalProperties returns the value of AdditionalProperties.
func (*Schema) GetAllOf ¶
func (s *Schema) GetAllOf() []SchemaOrReference
GetAllOf returns the value of AllOf.
func (*Schema) GetAnyOf ¶
func (s *Schema) GetAnyOf() []SchemaOrReference
GetAnyOf returns the value of AnyOf.
func (*Schema) GetDefault ¶
func (s *Schema) GetDefault() DefaultType
GetDefault returns the value of Default.
func (*Schema) GetDeprecated ¶
GetDeprecated returns the value of Deprecated.
func (*Schema) GetDescription ¶
GetDescription returns the value of Description.
func (*Schema) GetDiscriminator ¶
func (s *Schema) GetDiscriminator() OptDiscriminator
GetDiscriminator returns the value of Discriminator.
func (*Schema) GetExample ¶
GetExample returns the value of Example.
func (*Schema) GetExclusiveMaximum ¶
func (s *Schema) GetExclusiveMaximum() OptExclusiveMaximum
GetExclusiveMaximum returns the value of ExclusiveMaximum.
func (*Schema) GetExclusiveMinimum ¶
func (s *Schema) GetExclusiveMinimum() OptExclusiveMinimum
GetExclusiveMinimum returns the value of ExclusiveMinimum.
func (*Schema) GetExternalDocs ¶
func (s *Schema) GetExternalDocs() OptExternalDocs
GetExternalDocs returns the value of ExternalDocs.
func (*Schema) GetItems ¶
func (s *Schema) GetItems() *SchemaOrReference
GetItems returns the value of Items.
func (*Schema) GetMaxItems ¶
func (s *Schema) GetMaxItems() OptPositiveInteger
GetMaxItems returns the value of MaxItems.
func (*Schema) GetMaxLength ¶
func (s *Schema) GetMaxLength() OptPositiveInteger
GetMaxLength returns the value of MaxLength.
func (*Schema) GetMaxProperties ¶
func (s *Schema) GetMaxProperties() OptPositiveInteger
GetMaxProperties returns the value of MaxProperties.
func (*Schema) GetMaximum ¶
func (s *Schema) GetMaximum() OptMaximum
GetMaximum returns the value of Maximum.
func (*Schema) GetMinItems ¶
func (s *Schema) GetMinItems() OptPositiveInteger
GetMinItems returns the value of MinItems.
func (*Schema) GetMinLength ¶
func (s *Schema) GetMinLength() OptPositiveInteger
GetMinLength returns the value of MinLength.
func (*Schema) GetMinProperties ¶
func (s *Schema) GetMinProperties() OptPositiveInteger
GetMinProperties returns the value of MinProperties.
func (*Schema) GetMinimum ¶
func (s *Schema) GetMinimum() OptMinimum
GetMinimum returns the value of Minimum.
func (*Schema) GetMultipleOf ¶
func (s *Schema) GetMultipleOf() OptMultipleOf
GetMultipleOf returns the value of MultipleOf.
func (*Schema) GetNullable ¶
GetNullable returns the value of Nullable.
func (*Schema) GetOneOf ¶
func (s *Schema) GetOneOf() []SchemaOrReference
GetOneOf returns the value of OneOf.
func (*Schema) GetPattern ¶
func (s *Schema) GetPattern() OptPattern
GetPattern returns the value of Pattern.
func (*Schema) GetPattern0Props ¶
func (s *Schema) GetPattern0Props() SchemaPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Schema) GetProperties ¶
func (s *Schema) GetProperties() OptSchemaProperties
GetProperties returns the value of Properties.
func (*Schema) GetReadOnly ¶
GetReadOnly returns the value of ReadOnly.
func (*Schema) GetRequired ¶
func (s *Schema) GetRequired() StringArray
GetRequired returns the value of Required.
func (*Schema) GetType ¶
func (s *Schema) GetType() OptSchemaType
GetType returns the value of Type.
func (*Schema) GetUniqueItems ¶
func (s *Schema) GetUniqueItems() OptUniqueItems
GetUniqueItems returns the value of UniqueItems.
func (*Schema) GetWriteOnly ¶
GetWriteOnly returns the value of WriteOnly.
func (*Schema) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Schema) SetAdditionalProperties ¶
func (s *Schema) SetAdditionalProperties(val *SchemaAdditionalProperties)
SetAdditionalProperties sets the value of AdditionalProperties.
func (*Schema) SetAllOf ¶
func (s *Schema) SetAllOf(val []SchemaOrReference)
SetAllOf sets the value of AllOf.
func (*Schema) SetAnyOf ¶
func (s *Schema) SetAnyOf(val []SchemaOrReference)
SetAnyOf sets the value of AnyOf.
func (*Schema) SetDefault ¶
func (s *Schema) SetDefault(val DefaultType)
SetDefault sets the value of Default.
func (*Schema) SetDeprecated ¶
SetDeprecated sets the value of Deprecated.
func (*Schema) SetDescription ¶
SetDescription sets the value of Description.
func (*Schema) SetDiscriminator ¶
func (s *Schema) SetDiscriminator(val OptDiscriminator)
SetDiscriminator sets the value of Discriminator.
func (*Schema) SetExample ¶
SetExample sets the value of Example.
func (*Schema) SetExclusiveMaximum ¶
func (s *Schema) SetExclusiveMaximum(val OptExclusiveMaximum)
SetExclusiveMaximum sets the value of ExclusiveMaximum.
func (*Schema) SetExclusiveMinimum ¶
func (s *Schema) SetExclusiveMinimum(val OptExclusiveMinimum)
SetExclusiveMinimum sets the value of ExclusiveMinimum.
func (*Schema) SetExternalDocs ¶
func (s *Schema) SetExternalDocs(val OptExternalDocs)
SetExternalDocs sets the value of ExternalDocs.
func (*Schema) SetItems ¶
func (s *Schema) SetItems(val *SchemaOrReference)
SetItems sets the value of Items.
func (*Schema) SetMaxItems ¶
func (s *Schema) SetMaxItems(val OptPositiveInteger)
SetMaxItems sets the value of MaxItems.
func (*Schema) SetMaxLength ¶
func (s *Schema) SetMaxLength(val OptPositiveInteger)
SetMaxLength sets the value of MaxLength.
func (*Schema) SetMaxProperties ¶
func (s *Schema) SetMaxProperties(val OptPositiveInteger)
SetMaxProperties sets the value of MaxProperties.
func (*Schema) SetMaximum ¶
func (s *Schema) SetMaximum(val OptMaximum)
SetMaximum sets the value of Maximum.
func (*Schema) SetMinItems ¶
func (s *Schema) SetMinItems(val OptPositiveInteger)
SetMinItems sets the value of MinItems.
func (*Schema) SetMinLength ¶
func (s *Schema) SetMinLength(val OptPositiveInteger)
SetMinLength sets the value of MinLength.
func (*Schema) SetMinProperties ¶
func (s *Schema) SetMinProperties(val OptPositiveInteger)
SetMinProperties sets the value of MinProperties.
func (*Schema) SetMinimum ¶
func (s *Schema) SetMinimum(val OptMinimum)
SetMinimum sets the value of Minimum.
func (*Schema) SetMultipleOf ¶
func (s *Schema) SetMultipleOf(val OptMultipleOf)
SetMultipleOf sets the value of MultipleOf.
func (*Schema) SetNullable ¶
SetNullable sets the value of Nullable.
func (*Schema) SetOneOf ¶
func (s *Schema) SetOneOf(val []SchemaOrReference)
SetOneOf sets the value of OneOf.
func (*Schema) SetPattern ¶
func (s *Schema) SetPattern(val OptPattern)
SetPattern sets the value of Pattern.
func (*Schema) SetPattern0Props ¶
func (s *Schema) SetPattern0Props(val SchemaPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Schema) SetProperties ¶
func (s *Schema) SetProperties(val OptSchemaProperties)
SetProperties sets the value of Properties.
func (*Schema) SetReadOnly ¶
SetReadOnly sets the value of ReadOnly.
func (*Schema) SetRequired ¶
func (s *Schema) SetRequired(val StringArray)
SetRequired sets the value of Required.
func (*Schema) SetType ¶
func (s *Schema) SetType(val OptSchemaType)
SetType sets the value of Type.
func (*Schema) SetUniqueItems ¶
func (s *Schema) SetUniqueItems(val OptUniqueItems)
SetUniqueItems sets the value of UniqueItems.
func (*Schema) SetWriteOnly ¶
SetWriteOnly sets the value of WriteOnly.
func (*Schema) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SchemaAdditionalProperties ¶
type SchemaAdditionalProperties struct {
Type SchemaAdditionalPropertiesType // switch on this field
SchemaOrReference SchemaOrReference
Bool bool
}
SchemaAdditionalProperties represents sum type.
func NewBoolSchemaAdditionalProperties ¶
func NewBoolSchemaAdditionalProperties(v bool) SchemaAdditionalProperties
NewBoolSchemaAdditionalProperties returns new SchemaAdditionalProperties from bool.
func NewSchemaOrReferenceSchemaAdditionalProperties ¶
func NewSchemaOrReferenceSchemaAdditionalProperties(v SchemaOrReference) SchemaAdditionalProperties
NewSchemaOrReferenceSchemaAdditionalProperties returns new SchemaAdditionalProperties from SchemaOrReference.
func (*SchemaAdditionalProperties) Decode ¶
func (s *SchemaAdditionalProperties) Decode(d *jx.Decoder) error
Decode decodes SchemaAdditionalProperties from json.
func (SchemaAdditionalProperties) Encode ¶
func (s SchemaAdditionalProperties) Encode(e *jx.Encoder)
Encode encodes SchemaAdditionalProperties as json.
func (SchemaAdditionalProperties) GetBool ¶
func (s SchemaAdditionalProperties) GetBool() (v bool, ok bool)
GetBool returns bool and true boolean if SchemaAdditionalProperties is bool.
func (SchemaAdditionalProperties) GetSchemaOrReference ¶
func (s SchemaAdditionalProperties) GetSchemaOrReference() (v SchemaOrReference, ok bool)
GetSchemaOrReference returns SchemaOrReference and true boolean if SchemaAdditionalProperties is SchemaOrReference.
func (SchemaAdditionalProperties) IsBool ¶
func (s SchemaAdditionalProperties) IsBool() bool
IsBool reports whether SchemaAdditionalProperties is bool.
func (SchemaAdditionalProperties) IsSchemaOrReference ¶
func (s SchemaAdditionalProperties) IsSchemaOrReference() bool
IsSchemaOrReference reports whether SchemaAdditionalProperties is SchemaOrReference.
func (SchemaAdditionalProperties) MarshalJSON ¶
func (s SchemaAdditionalProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SchemaAdditionalProperties) SetBool ¶
func (s *SchemaAdditionalProperties) SetBool(v bool)
SetBool sets SchemaAdditionalProperties to bool.
func (*SchemaAdditionalProperties) SetSchemaOrReference ¶
func (s *SchemaAdditionalProperties) SetSchemaOrReference(v SchemaOrReference)
SetSchemaOrReference sets SchemaAdditionalProperties to SchemaOrReference.
func (*SchemaAdditionalProperties) UnmarshalJSON ¶
func (s *SchemaAdditionalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SchemaAdditionalProperties) Validate ¶
func (s SchemaAdditionalProperties) Validate() error
type SchemaAdditionalPropertiesType ¶
type SchemaAdditionalPropertiesType string
SchemaAdditionalPropertiesType is oneOf type of SchemaAdditionalProperties.
const ( SchemaOrReferenceSchemaAdditionalProperties SchemaAdditionalPropertiesType = "SchemaOrReference" BoolSchemaAdditionalProperties SchemaAdditionalPropertiesType = "bool" )
Possible values for SchemaAdditionalPropertiesType.
type SchemaOrReference ¶
type SchemaOrReference struct {
Type SchemaOrReferenceType // switch on this field
Schema Schema
Reference Reference
}
Ref: #/definitions/schemaOrReference SchemaOrReference represents sum type.
func NewReferenceSchemaOrReference ¶
func NewReferenceSchemaOrReference(v Reference) SchemaOrReference
NewReferenceSchemaOrReference returns new SchemaOrReference from Reference.
func NewSchemaSchemaOrReference ¶
func NewSchemaSchemaOrReference(v Schema) SchemaOrReference
NewSchemaSchemaOrReference returns new SchemaOrReference from Schema.
func (*SchemaOrReference) Decode ¶
func (s *SchemaOrReference) Decode(d *jx.Decoder) error
Decode decodes SchemaOrReference from json.
func (SchemaOrReference) Encode ¶
func (s SchemaOrReference) Encode(e *jx.Encoder)
Encode encodes SchemaOrReference as json.
func (SchemaOrReference) GetReference ¶
func (s SchemaOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if SchemaOrReference is Reference.
func (SchemaOrReference) GetSchema ¶
func (s SchemaOrReference) GetSchema() (v Schema, ok bool)
GetSchema returns Schema and true boolean if SchemaOrReference is Schema.
func (SchemaOrReference) IsReference ¶
func (s SchemaOrReference) IsReference() bool
IsReference reports whether SchemaOrReference is Reference.
func (SchemaOrReference) IsSchema ¶
func (s SchemaOrReference) IsSchema() bool
IsSchema reports whether SchemaOrReference is Schema.
func (SchemaOrReference) MarshalJSON ¶
func (s SchemaOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SchemaOrReference) SetReference ¶
func (s *SchemaOrReference) SetReference(v Reference)
SetReference sets SchemaOrReference to Reference.
func (*SchemaOrReference) SetSchema ¶
func (s *SchemaOrReference) SetSchema(v Schema)
SetSchema sets SchemaOrReference to Schema.
func (*SchemaOrReference) UnmarshalJSON ¶
func (s *SchemaOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SchemaOrReference) Validate ¶
func (s SchemaOrReference) Validate() error
type SchemaOrReferenceType ¶
type SchemaOrReferenceType string
SchemaOrReferenceType is oneOf type of SchemaOrReference.
const ( SchemaSchemaOrReference SchemaOrReferenceType = "Schema" ReferenceSchemaOrReference SchemaOrReferenceType = "Reference" )
Possible values for SchemaOrReferenceType.
type SchemaPattern0 ¶
type SchemaPattern0 map[string]SpecificationExtension
func (*SchemaPattern0) Decode ¶
func (s *SchemaPattern0) Decode(d *jx.Decoder) error
Decode decodes SchemaPattern0 from json.
func (SchemaPattern0) Encode ¶
func (s SchemaPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SchemaPattern0) MarshalJSON ¶
func (s SchemaPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SchemaPattern0) UnmarshalJSON ¶
func (s *SchemaPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SchemaProperties ¶
type SchemaProperties map[string]SchemaOrReference
func (*SchemaProperties) Decode ¶
func (s *SchemaProperties) Decode(d *jx.Decoder) error
Decode decodes SchemaProperties from json.
func (SchemaProperties) Encode ¶
func (s SchemaProperties) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SchemaProperties) MarshalJSON ¶
func (s SchemaProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SchemaProperties) UnmarshalJSON ¶
func (s *SchemaProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SchemaProperties) Validate ¶
func (s SchemaProperties) Validate() error
type SchemaType ¶
type SchemaType string
const ( SchemaTypeArray SchemaType = "array" SchemaTypeBoolean SchemaType = "boolean" SchemaTypeInteger SchemaType = "integer" SchemaTypeNull SchemaType = "null" SchemaTypeNumber SchemaType = "number" SchemaTypeObject SchemaType = "object" SchemaTypeString SchemaType = "string" )
func (SchemaType) AllValues ¶
func (SchemaType) AllValues() []SchemaType
AllValues returns all SchemaType values.
func (*SchemaType) Decode ¶
func (s *SchemaType) Decode(d *jx.Decoder) error
Decode decodes SchemaType from json.
func (SchemaType) Encode ¶
func (s SchemaType) Encode(e *jx.Encoder)
Encode encodes SchemaType as json.
func (SchemaType) MarshalJSON ¶
func (s SchemaType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (SchemaType) MarshalText ¶
func (s SchemaType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SchemaType) UnmarshalJSON ¶
func (s *SchemaType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SchemaType) UnmarshalText ¶
func (s *SchemaType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SchemaType) Validate ¶
func (s SchemaType) Validate() error
type SchemasOrReferences ¶
type SchemasOrReferences map[string]SchemaOrReference
Ref: #/definitions/schemasOrReferences
func (*SchemasOrReferences) Decode ¶
func (s *SchemasOrReferences) Decode(d *jx.Decoder) error
Decode decodes SchemasOrReferences from json.
func (SchemasOrReferences) Encode ¶
func (s SchemasOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SchemasOrReferences) MarshalJSON ¶
func (s SchemasOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SchemasOrReferences) UnmarshalJSON ¶
func (s *SchemasOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SchemasOrReferences) Validate ¶
func (s SchemasOrReferences) Validate() error
type SecurityRequirement ¶
Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object.
Security Requirement Objects that contain multiple schemes require that all schemes MUST be
satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information. When a list of Security Requirement Objects is defined on the Open API object or Operation Object, only one of Security Requirement Objects in the list needs to be satisfied to authorize the request. Ref: #/definitions/securityRequirement
func (*SecurityRequirement) Decode ¶
func (s *SecurityRequirement) Decode(d *jx.Decoder) error
Decode decodes SecurityRequirement from json.
func (SecurityRequirement) Encode ¶
func (s SecurityRequirement) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SecurityRequirement) MarshalJSON ¶
func (s SecurityRequirement) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SecurityRequirement) UnmarshalJSON ¶
func (s *SecurityRequirement) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SecurityRequirement) Validate ¶
func (s SecurityRequirement) Validate() error
type SecurityScheme ¶
type SecurityScheme struct {
Type string `json:"type"`
Description OptString `json:"description"`
Name OptString `json:"name"`
In OptString `json:"in"`
Scheme OptString `json:"scheme"`
BearerFormat OptString `json:"bearerFormat"`
Flows OptOauthFlows `json:"flows"`
OpenIdConnectUrl OptString `json:"openIdConnectUrl"`
// Pattern: "^x-".
Pattern0Props SecuritySchemePattern0
}
Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header or as a query parameter), OAuth2's common flows (implicit, password, application and access code) as defined in RFC6749, and OpenID Connect Discovery. Ref: #/definitions/securityScheme
func (*SecurityScheme) Decode ¶
func (s *SecurityScheme) Decode(d *jx.Decoder) error
Decode decodes SecurityScheme from json.
func (*SecurityScheme) Encode ¶
func (s *SecurityScheme) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SecurityScheme) GetBearerFormat ¶
func (s *SecurityScheme) GetBearerFormat() OptString
GetBearerFormat returns the value of BearerFormat.
func (*SecurityScheme) GetDescription ¶
func (s *SecurityScheme) GetDescription() OptString
GetDescription returns the value of Description.
func (*SecurityScheme) GetFlows ¶
func (s *SecurityScheme) GetFlows() OptOauthFlows
GetFlows returns the value of Flows.
func (*SecurityScheme) GetIn ¶
func (s *SecurityScheme) GetIn() OptString
GetIn returns the value of In.
func (*SecurityScheme) GetName ¶
func (s *SecurityScheme) GetName() OptString
GetName returns the value of Name.
func (*SecurityScheme) GetOpenIdConnectUrl ¶
func (s *SecurityScheme) GetOpenIdConnectUrl() OptString
GetOpenIdConnectUrl returns the value of OpenIdConnectUrl.
func (*SecurityScheme) GetPattern0Props ¶
func (s *SecurityScheme) GetPattern0Props() SecuritySchemePattern0
GetPattern0Props returns the value of Pattern0Props.
func (*SecurityScheme) GetScheme ¶
func (s *SecurityScheme) GetScheme() OptString
GetScheme returns the value of Scheme.
func (*SecurityScheme) GetType ¶
func (s *SecurityScheme) GetType() string
GetType returns the value of Type.
func (*SecurityScheme) MarshalJSON ¶
func (s *SecurityScheme) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SecurityScheme) SetBearerFormat ¶
func (s *SecurityScheme) SetBearerFormat(val OptString)
SetBearerFormat sets the value of BearerFormat.
func (*SecurityScheme) SetDescription ¶
func (s *SecurityScheme) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*SecurityScheme) SetFlows ¶
func (s *SecurityScheme) SetFlows(val OptOauthFlows)
SetFlows sets the value of Flows.
func (*SecurityScheme) SetIn ¶
func (s *SecurityScheme) SetIn(val OptString)
SetIn sets the value of In.
func (*SecurityScheme) SetName ¶
func (s *SecurityScheme) SetName(val OptString)
SetName sets the value of Name.
func (*SecurityScheme) SetOpenIdConnectUrl ¶
func (s *SecurityScheme) SetOpenIdConnectUrl(val OptString)
SetOpenIdConnectUrl sets the value of OpenIdConnectUrl.
func (*SecurityScheme) SetPattern0Props ¶
func (s *SecurityScheme) SetPattern0Props(val SecuritySchemePattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*SecurityScheme) SetScheme ¶
func (s *SecurityScheme) SetScheme(val OptString)
SetScheme sets the value of Scheme.
func (*SecurityScheme) SetType ¶
func (s *SecurityScheme) SetType(val string)
SetType sets the value of Type.
func (*SecurityScheme) UnmarshalJSON ¶
func (s *SecurityScheme) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SecuritySchemeOrReference ¶
type SecuritySchemeOrReference struct {
Type SecuritySchemeOrReferenceType // switch on this field
SecurityScheme SecurityScheme
Reference Reference
}
Ref: #/definitions/securitySchemeOrReference SecuritySchemeOrReference represents sum type.
func NewReferenceSecuritySchemeOrReference ¶
func NewReferenceSecuritySchemeOrReference(v Reference) SecuritySchemeOrReference
NewReferenceSecuritySchemeOrReference returns new SecuritySchemeOrReference from Reference.
func NewSecuritySchemeSecuritySchemeOrReference ¶
func NewSecuritySchemeSecuritySchemeOrReference(v SecurityScheme) SecuritySchemeOrReference
NewSecuritySchemeSecuritySchemeOrReference returns new SecuritySchemeOrReference from SecurityScheme.
func (*SecuritySchemeOrReference) Decode ¶
func (s *SecuritySchemeOrReference) Decode(d *jx.Decoder) error
Decode decodes SecuritySchemeOrReference from json.
func (SecuritySchemeOrReference) Encode ¶
func (s SecuritySchemeOrReference) Encode(e *jx.Encoder)
Encode encodes SecuritySchemeOrReference as json.
func (SecuritySchemeOrReference) GetReference ¶
func (s SecuritySchemeOrReference) GetReference() (v Reference, ok bool)
GetReference returns Reference and true boolean if SecuritySchemeOrReference is Reference.
func (SecuritySchemeOrReference) GetSecurityScheme ¶
func (s SecuritySchemeOrReference) GetSecurityScheme() (v SecurityScheme, ok bool)
GetSecurityScheme returns SecurityScheme and true boolean if SecuritySchemeOrReference is SecurityScheme.
func (SecuritySchemeOrReference) IsReference ¶
func (s SecuritySchemeOrReference) IsReference() bool
IsReference reports whether SecuritySchemeOrReference is Reference.
func (SecuritySchemeOrReference) IsSecurityScheme ¶
func (s SecuritySchemeOrReference) IsSecurityScheme() bool
IsSecurityScheme reports whether SecuritySchemeOrReference is SecurityScheme.
func (SecuritySchemeOrReference) MarshalJSON ¶
func (s SecuritySchemeOrReference) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SecuritySchemeOrReference) SetReference ¶
func (s *SecuritySchemeOrReference) SetReference(v Reference)
SetReference sets SecuritySchemeOrReference to Reference.
func (*SecuritySchemeOrReference) SetSecurityScheme ¶
func (s *SecuritySchemeOrReference) SetSecurityScheme(v SecurityScheme)
SetSecurityScheme sets SecuritySchemeOrReference to SecurityScheme.
func (*SecuritySchemeOrReference) UnmarshalJSON ¶
func (s *SecuritySchemeOrReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SecuritySchemeOrReferenceType ¶
type SecuritySchemeOrReferenceType string
SecuritySchemeOrReferenceType is oneOf type of SecuritySchemeOrReference.
const ( SecuritySchemeSecuritySchemeOrReference SecuritySchemeOrReferenceType = "SecurityScheme" ReferenceSecuritySchemeOrReference SecuritySchemeOrReferenceType = "Reference" )
Possible values for SecuritySchemeOrReferenceType.
type SecuritySchemePattern0 ¶
type SecuritySchemePattern0 map[string]SpecificationExtension
func (*SecuritySchemePattern0) Decode ¶
func (s *SecuritySchemePattern0) Decode(d *jx.Decoder) error
Decode decodes SecuritySchemePattern0 from json.
func (SecuritySchemePattern0) Encode ¶
func (s SecuritySchemePattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SecuritySchemePattern0) MarshalJSON ¶
func (s SecuritySchemePattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SecuritySchemePattern0) UnmarshalJSON ¶
func (s *SecuritySchemePattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SecuritySchemesOrReferences ¶
type SecuritySchemesOrReferences map[string]SecuritySchemeOrReference
Ref: #/definitions/securitySchemesOrReferences
func (*SecuritySchemesOrReferences) Decode ¶
func (s *SecuritySchemesOrReferences) Decode(d *jx.Decoder) error
Decode decodes SecuritySchemesOrReferences from json.
func (SecuritySchemesOrReferences) Encode ¶
func (s SecuritySchemesOrReferences) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SecuritySchemesOrReferences) MarshalJSON ¶
func (s SecuritySchemesOrReferences) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SecuritySchemesOrReferences) UnmarshalJSON ¶
func (s *SecuritySchemesOrReferences) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Server ¶
type Server struct {
URL string `json:"url"`
Description OptString `json:"description"`
Variables OptServerVariables `json:"variables"`
// Pattern: "^x-".
Pattern0Props ServerPattern0
}
An object representing a Server. Ref: #/definitions/server
func (*Server) GetDescription ¶
GetDescription returns the value of Description.
func (*Server) GetPattern0Props ¶
func (s *Server) GetPattern0Props() ServerPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Server) GetVariables ¶
func (s *Server) GetVariables() OptServerVariables
GetVariables returns the value of Variables.
func (*Server) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Server) SetDescription ¶
SetDescription sets the value of Description.
func (*Server) SetPattern0Props ¶
func (s *Server) SetPattern0Props(val ServerPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Server) SetVariables ¶
func (s *Server) SetVariables(val OptServerVariables)
SetVariables sets the value of Variables.
func (*Server) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ServerPattern0 ¶
type ServerPattern0 map[string]SpecificationExtension
func (*ServerPattern0) Decode ¶
func (s *ServerPattern0) Decode(d *jx.Decoder) error
Decode decodes ServerPattern0 from json.
func (ServerPattern0) Encode ¶
func (s ServerPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ServerPattern0) MarshalJSON ¶
func (s ServerPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ServerPattern0) UnmarshalJSON ¶
func (s *ServerPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ServerVariable ¶
type ServerVariable struct {
Enum []string `json:"enum"`
Default string `json:"default"`
Description OptString `json:"description"`
// Pattern: "^x-".
Pattern0Props ServerVariablePattern0
}
An object representing a Server Variable for server URL template substitution. Ref: #/definitions/serverVariable
func (*ServerVariable) Decode ¶
func (s *ServerVariable) Decode(d *jx.Decoder) error
Decode decodes ServerVariable from json.
func (*ServerVariable) Encode ¶
func (s *ServerVariable) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ServerVariable) GetDefault ¶
func (s *ServerVariable) GetDefault() string
GetDefault returns the value of Default.
func (*ServerVariable) GetDescription ¶
func (s *ServerVariable) GetDescription() OptString
GetDescription returns the value of Description.
func (*ServerVariable) GetEnum ¶
func (s *ServerVariable) GetEnum() []string
GetEnum returns the value of Enum.
func (*ServerVariable) GetPattern0Props ¶
func (s *ServerVariable) GetPattern0Props() ServerVariablePattern0
GetPattern0Props returns the value of Pattern0Props.
func (*ServerVariable) MarshalJSON ¶
func (s *ServerVariable) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ServerVariable) SetDefault ¶
func (s *ServerVariable) SetDefault(val string)
SetDefault sets the value of Default.
func (*ServerVariable) SetDescription ¶
func (s *ServerVariable) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*ServerVariable) SetEnum ¶
func (s *ServerVariable) SetEnum(val []string)
SetEnum sets the value of Enum.
func (*ServerVariable) SetPattern0Props ¶
func (s *ServerVariable) SetPattern0Props(val ServerVariablePattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*ServerVariable) UnmarshalJSON ¶
func (s *ServerVariable) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ServerVariablePattern0 ¶
type ServerVariablePattern0 map[string]SpecificationExtension
func (*ServerVariablePattern0) Decode ¶
func (s *ServerVariablePattern0) Decode(d *jx.Decoder) error
Decode decodes ServerVariablePattern0 from json.
func (ServerVariablePattern0) Encode ¶
func (s ServerVariablePattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ServerVariablePattern0) MarshalJSON ¶
func (s ServerVariablePattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ServerVariablePattern0) UnmarshalJSON ¶
func (s *ServerVariablePattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ServerVariables ¶
type ServerVariables map[string]ServerVariable
Ref: #/definitions/serverVariables
func (*ServerVariables) Decode ¶
func (s *ServerVariables) Decode(d *jx.Decoder) error
Decode decodes ServerVariables from json.
func (ServerVariables) Encode ¶
func (s ServerVariables) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (ServerVariables) MarshalJSON ¶
func (s ServerVariables) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ServerVariables) UnmarshalJSON ¶
func (s *ServerVariables) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Spec ¶
type Spec struct {
Openapi string `json:"openapi"`
Info Info `json:"info"`
Servers []Server `json:"servers"`
Paths Paths `json:"paths"`
Components OptComponents `json:"components"`
Security []SecurityRequirement `json:"security"`
Tags []Tag `json:"tags"`
ExternalDocs OptExternalDocs `json:"externalDocs"`
// Pattern: "^x-".
Pattern0Props SpecPattern0
}
This is the root document object of the OpenAPI document.
func (*Spec) GetComponents ¶
func (s *Spec) GetComponents() OptComponents
GetComponents returns the value of Components.
func (*Spec) GetExternalDocs ¶
func (s *Spec) GetExternalDocs() OptExternalDocs
GetExternalDocs returns the value of ExternalDocs.
func (*Spec) GetOpenapi ¶
GetOpenapi returns the value of Openapi.
func (*Spec) GetPattern0Props ¶
func (s *Spec) GetPattern0Props() SpecPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Spec) GetSecurity ¶
func (s *Spec) GetSecurity() []SecurityRequirement
GetSecurity returns the value of Security.
func (*Spec) GetServers ¶
GetServers returns the value of Servers.
func (*Spec) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Spec) SetComponents ¶
func (s *Spec) SetComponents(val OptComponents)
SetComponents sets the value of Components.
func (*Spec) SetExternalDocs ¶
func (s *Spec) SetExternalDocs(val OptExternalDocs)
SetExternalDocs sets the value of ExternalDocs.
func (*Spec) SetOpenapi ¶
SetOpenapi sets the value of Openapi.
func (*Spec) SetPattern0Props ¶
func (s *Spec) SetPattern0Props(val SpecPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Spec) SetSecurity ¶
func (s *Spec) SetSecurity(val []SecurityRequirement)
SetSecurity sets the value of Security.
func (*Spec) SetServers ¶
SetServers sets the value of Servers.
func (*Spec) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SpecPattern0 ¶
type SpecPattern0 map[string]SpecificationExtension
func (*SpecPattern0) Decode ¶
func (s *SpecPattern0) Decode(d *jx.Decoder) error
Decode decodes SpecPattern0 from json.
func (SpecPattern0) Encode ¶
func (s SpecPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (SpecPattern0) MarshalJSON ¶
func (s SpecPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpecPattern0) UnmarshalJSON ¶
func (s *SpecPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SpecificationExtension ¶
func (*SpecificationExtension) Decode ¶
func (s *SpecificationExtension) Decode(d *jx.Decoder) error
Decode decodes SpecificationExtension from json.
func (SpecificationExtension) Encode ¶
func (s SpecificationExtension) Encode(e *jx.Encoder)
Encode encodes SpecificationExtension as json.
func (SpecificationExtension) MarshalJSON ¶
func (s SpecificationExtension) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SpecificationExtension) UnmarshalJSON ¶
func (s *SpecificationExtension) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type StringArray ¶
type StringArray []string
func (*StringArray) Decode ¶
func (s *StringArray) Decode(d *jx.Decoder) error
Decode decodes StringArray from json.
func (StringArray) Encode ¶
func (s StringArray) Encode(e *jx.Encoder)
Encode encodes StringArray as json.
func (StringArray) MarshalJSON ¶
func (s StringArray) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*StringArray) UnmarshalJSON ¶
func (s *StringArray) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (StringArray) Validate ¶
func (s StringArray) Validate() error
type Strings ¶
Ref: #/definitions/strings
func (Strings) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Strings) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Tag ¶
type Tag struct {
Name string `json:"name"`
Description OptString `json:"description"`
ExternalDocs OptExternalDocs `json:"externalDocs"`
// Pattern: "^x-".
Pattern0Props TagPattern0
}
Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances. Ref: #/definitions/tag
func (*Tag) GetDescription ¶
GetDescription returns the value of Description.
func (*Tag) GetExternalDocs ¶
func (s *Tag) GetExternalDocs() OptExternalDocs
GetExternalDocs returns the value of ExternalDocs.
func (*Tag) GetPattern0Props ¶
func (s *Tag) GetPattern0Props() TagPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*Tag) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Tag) SetDescription ¶
SetDescription sets the value of Description.
func (*Tag) SetExternalDocs ¶
func (s *Tag) SetExternalDocs(val OptExternalDocs)
SetExternalDocs sets the value of ExternalDocs.
func (*Tag) SetPattern0Props ¶
func (s *Tag) SetPattern0Props(val TagPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*Tag) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type TagPattern0 ¶
type TagPattern0 map[string]SpecificationExtension
func (*TagPattern0) Decode ¶
func (s *TagPattern0) Decode(d *jx.Decoder) error
Decode decodes TagPattern0 from json.
func (TagPattern0) Encode ¶
func (s TagPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (TagPattern0) MarshalJSON ¶
func (s TagPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TagPattern0) UnmarshalJSON ¶
func (s *TagPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Title ¶
type Title string
func (Title) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Title) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UniqueItems ¶
type UniqueItems bool
func (*UniqueItems) Decode ¶
func (s *UniqueItems) Decode(d *jx.Decoder) error
Decode decodes UniqueItems from json.
func (UniqueItems) Encode ¶
func (s UniqueItems) Encode(e *jx.Encoder)
Encode encodes UniqueItems as json.
func (UniqueItems) MarshalJSON ¶
func (s UniqueItems) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UniqueItems) UnmarshalJSON ¶
func (s *UniqueItems) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type XML ¶
type XML struct {
Name OptString `json:"name"`
Namespace OptString `json:"namespace"`
Prefix OptString `json:"prefix"`
Attribute OptBool `json:"attribute"`
Wrapped OptBool `json:"wrapped"`
// Pattern: "^x-".
Pattern0Props XMLPattern0
}
A metadata object that allows for more fine-tuned XML model definitions. When using arrays, XML element names are *not* inferred (for singular/plural forms) and the `name` property SHOULD be used to add that information. See examples for expected behavior. Ref: #/definitions/xml
func (*XML) GetAttribute ¶
GetAttribute returns the value of Attribute.
func (*XML) GetNamespace ¶
GetNamespace returns the value of Namespace.
func (*XML) GetPattern0Props ¶
func (s *XML) GetPattern0Props() XMLPattern0
GetPattern0Props returns the value of Pattern0Props.
func (*XML) GetWrapped ¶
GetWrapped returns the value of Wrapped.
func (*XML) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*XML) SetAttribute ¶
SetAttribute sets the value of Attribute.
func (*XML) SetNamespace ¶
SetNamespace sets the value of Namespace.
func (*XML) SetPattern0Props ¶
func (s *XML) SetPattern0Props(val XMLPattern0)
SetPattern0Props sets the value of Pattern0Props.
func (*XML) SetWrapped ¶
SetWrapped sets the value of Wrapped.
func (*XML) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type XMLPattern0 ¶
type XMLPattern0 map[string]SpecificationExtension
func (*XMLPattern0) Decode ¶
func (s *XMLPattern0) Decode(d *jx.Decoder) error
Decode decodes XMLPattern0 from json.
func (XMLPattern0) Encode ¶
func (s XMLPattern0) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (XMLPattern0) MarshalJSON ¶
func (s XMLPattern0) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*XMLPattern0) UnmarshalJSON ¶
func (s *XMLPattern0) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.