examples

package
v0.0.0-...-b7de6e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any jx.Raw

func (*Any) Decode

func (s *Any) Decode(d *jx.Decoder) error

Decode decodes Any from json.

func (Any) Encode

func (s Any) Encode(e *jx.Encoder)

Encode encodes Any as json.

func (Any) MarshalJSON

func (s Any) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Any) UnmarshalJSON

func (s *Any) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AnysOrExpressions

type AnysOrExpressions map[string]Any

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) Decode

func (s *Callback) Decode(d *jx.Decoder) error

Decode decodes Callback from json.

func (*Callback) Encode

func (s *Callback) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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

func (s *Callback) MarshalJSON() ([]byte, error)

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

func (s *Callback) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Callback) Validate

func (s *Callback) Validate() error

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

type CallbackPattern0 map[string]PathItem

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 (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 (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) Decode

func (s *Contact) Decode(d *jx.Decoder) error

Decode decodes Contact from json.

func (*Contact) Encode

func (s *Contact) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Contact) GetEmail

func (s *Contact) GetEmail() OptString

GetEmail returns the value of Email.

func (*Contact) GetName

func (s *Contact) GetName() OptString

GetName returns the value of Name.

func (*Contact) GetPattern0Props

func (s *Contact) GetPattern0Props() ContactPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*Contact) GetURL

func (s *Contact) GetURL() OptString

GetURL returns the value of URL.

func (*Contact) MarshalJSON

func (s *Contact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Contact) SetEmail

func (s *Contact) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*Contact) SetName

func (s *Contact) SetName(val OptString)

SetName sets the value of Name.

func (*Contact) SetPattern0Props

func (s *Contact) SetPattern0Props(val ContactPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*Contact) SetURL

func (s *Contact) SetURL(val OptString)

SetURL sets the value of URL.

func (*Contact) UnmarshalJSON

func (s *Contact) UnmarshalJSON(data []byte) error

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

type DefaultType jx.Raw

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) Decode

func (s *Encoding) Decode(d *jx.Decoder) error

Decode decodes Encoding from json.

func (*Encoding) Encode

func (s *Encoding) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Encoding) GetAllowReserved

func (s *Encoding) GetAllowReserved() OptBool

GetAllowReserved returns the value of AllowReserved.

func (*Encoding) GetContentType

func (s *Encoding) GetContentType() OptString

GetContentType returns the value of ContentType.

func (*Encoding) GetExplode

func (s *Encoding) GetExplode() OptBool

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) GetStyle

func (s *Encoding) GetStyle() OptString

GetStyle returns the value of Style.

func (*Encoding) MarshalJSON

func (s *Encoding) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Encoding) SetAllowReserved

func (s *Encoding) SetAllowReserved(val OptBool)

SetAllowReserved sets the value of AllowReserved.

func (*Encoding) SetContentType

func (s *Encoding) SetContentType(val OptString)

SetContentType sets the value of ContentType.

func (*Encoding) SetExplode

func (s *Encoding) SetExplode(val OptBool)

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) SetStyle

func (s *Encoding) SetStyle(val OptString)

SetStyle sets the value of Style.

func (*Encoding) UnmarshalJSON

func (s *Encoding) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Encoding) Validate

func (s *Encoding) Validate() error

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

type Encodings map[string]Encoding

Ref: #/definitions/encodings

func (*Encodings) Decode

func (s *Encodings) Decode(d *jx.Decoder) error

Decode decodes Encodings from json.

func (Encodings) Encode

func (s Encodings) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (Encodings) MarshalJSON

func (s Encodings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Encodings) UnmarshalJSON

func (s *Encodings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Encodings) Validate

func (s Encodings) Validate() error

type Enum

type Enum []jx.Raw

func (*Enum) Decode

func (s *Enum) Decode(d *jx.Decoder) error

Decode decodes Enum from json.

func (Enum) Encode

func (s Enum) Encode(e *jx.Encoder)

Encode encodes Enum as json.

func (Enum) MarshalJSON

func (s Enum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Enum) UnmarshalJSON

func (s *Enum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Enum) Validate

func (s Enum) Validate() error

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) Decode

func (s *Example) Decode(d *jx.Decoder) error

Decode decodes Example from json.

func (*Example) Encode

func (s *Example) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Example) GetDescription

func (s *Example) GetDescription() OptString

GetDescription returns the value of Description.

func (*Example) GetExternalValue

func (s *Example) GetExternalValue() OptString

GetExternalValue returns the value of ExternalValue.

func (*Example) GetPattern0Props

func (s *Example) GetPattern0Props() ExamplePattern0

GetPattern0Props returns the value of Pattern0Props.

func (*Example) GetSummary

func (s *Example) GetSummary() OptString

GetSummary returns the value of Summary.

func (*Example) GetValue

func (s *Example) GetValue() Any

GetValue returns the value of Value.

func (*Example) MarshalJSON

func (s *Example) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Example) SetDescription

func (s *Example) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Example) SetExternalValue

func (s *Example) SetExternalValue(val OptString)

SetExternalValue sets the value of ExternalValue.

func (*Example) SetPattern0Props

func (s *Example) SetPattern0Props(val ExamplePattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*Example) SetSummary

func (s *Example) SetSummary(val OptString)

SetSummary sets the value of Summary.

func (*Example) SetValue

func (s *Example) SetValue(val Any)

SetValue sets the value of Value.

func (*Example) UnmarshalJSON

func (s *Example) UnmarshalJSON(data []byte) error

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 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) Decode

func (s *Header) Decode(d *jx.Decoder) error

Decode decodes Header from json.

func (*Header) Encode

func (s *Header) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Header) GetAllowEmptyValue

func (s *Header) GetAllowEmptyValue() OptBool

GetAllowEmptyValue returns the value of AllowEmptyValue.

func (*Header) GetAllowReserved

func (s *Header) GetAllowReserved() OptBool

GetAllowReserved returns the value of AllowReserved.

func (*Header) GetContent

func (s *Header) GetContent() OptMediaTypes

GetContent returns the value of Content.

func (*Header) GetDeprecated

func (s *Header) GetDeprecated() OptBool

GetDeprecated returns the value of Deprecated.

func (*Header) GetDescription

func (s *Header) GetDescription() OptString

GetDescription returns the value of Description.

func (*Header) GetExample

func (s *Header) GetExample() Any

GetExample returns the value of Example.

func (*Header) GetExamples

func (s *Header) GetExamples() OptExamplesOrReferences

GetExamples returns the value of Examples.

func (*Header) GetExplode

func (s *Header) GetExplode() OptBool

GetExplode returns the value of Explode.

func (*Header) GetPattern0Props

func (s *Header) GetPattern0Props() HeaderPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*Header) GetRequired

func (s *Header) GetRequired() OptBool

GetRequired returns the value of Required.

func (*Header) GetSchema

func (s *Header) GetSchema() *SchemaOrReference

GetSchema returns the value of Schema.

func (*Header) GetStyle

func (s *Header) GetStyle() OptString

GetStyle returns the value of Style.

func (*Header) MarshalJSON

func (s *Header) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Header) SetAllowEmptyValue

func (s *Header) SetAllowEmptyValue(val OptBool)

SetAllowEmptyValue sets the value of AllowEmptyValue.

func (*Header) SetAllowReserved

func (s *Header) SetAllowReserved(val OptBool)

SetAllowReserved sets the value of AllowReserved.

func (*Header) SetContent

func (s *Header) SetContent(val OptMediaTypes)

SetContent sets the value of Content.

func (*Header) SetDeprecated

func (s *Header) SetDeprecated(val OptBool)

SetDeprecated sets the value of Deprecated.

func (*Header) SetDescription

func (s *Header) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Header) SetExample

func (s *Header) SetExample(val Any)

SetExample sets the value of Example.

func (*Header) SetExamples

func (s *Header) SetExamples(val OptExamplesOrReferences)

SetExamples sets the value of Examples.

func (*Header) SetExplode

func (s *Header) SetExplode(val OptBool)

SetExplode sets the value of Explode.

func (*Header) SetPattern0Props

func (s *Header) SetPattern0Props(val HeaderPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*Header) SetRequired

func (s *Header) SetRequired(val OptBool)

SetRequired sets the value of Required.

func (*Header) SetSchema

func (s *Header) SetSchema(val *SchemaOrReference)

SetSchema sets the value of Schema.

func (*Header) SetStyle

func (s *Header) SetStyle(val OptString)

SetStyle sets the value of Style.

func (*Header) UnmarshalJSON

func (s *Header) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Header) Validate

func (s *Header) Validate() error

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) Decode

func (s *Info) Decode(d *jx.Decoder) error

Decode decodes Info from json.

func (*Info) Encode

func (s *Info) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Info) GetContact

func (s *Info) GetContact() OptContact

GetContact returns the value of Contact.

func (*Info) GetDescription

func (s *Info) GetDescription() OptString

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

func (s *Info) GetTermsOfService() OptString

GetTermsOfService returns the value of TermsOfService.

func (*Info) GetTitle

func (s *Info) GetTitle() string

GetTitle returns the value of Title.

func (*Info) GetVersion

func (s *Info) GetVersion() string

GetVersion returns the value of Version.

func (*Info) MarshalJSON

func (s *Info) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Info) SetContact

func (s *Info) SetContact(val OptContact)

SetContact sets the value of Contact.

func (*Info) SetDescription

func (s *Info) SetDescription(val OptString)

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

func (s *Info) SetTermsOfService(val OptString)

SetTermsOfService sets the value of TermsOfService.

func (*Info) SetTitle

func (s *Info) SetTitle(val string)

SetTitle sets the value of Title.

func (*Info) SetVersion

func (s *Info) SetVersion(val string)

SetVersion sets the value of Version.

func (*Info) UnmarshalJSON

func (s *Info) UnmarshalJSON(data []byte) error

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) Decode

func (s *License) Decode(d *jx.Decoder) error

Decode decodes License from json.

func (*License) Encode

func (s *License) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*License) GetName

func (s *License) GetName() string

GetName returns the value of Name.

func (*License) GetPattern0Props

func (s *License) GetPattern0Props() LicensePattern0

GetPattern0Props returns the value of Pattern0Props.

func (*License) GetURL

func (s *License) GetURL() OptString

GetURL returns the value of URL.

func (*License) MarshalJSON

func (s *License) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*License) SetName

func (s *License) SetName(val string)

SetName sets the value of Name.

func (*License) SetPattern0Props

func (s *License) SetPattern0Props(val LicensePattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*License) SetURL

func (s *License) SetURL(val OptString)

SetURL sets the value of URL.

func (*License) UnmarshalJSON

func (s *License) UnmarshalJSON(data []byte) error

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 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) Decode

func (s *Link) Decode(d *jx.Decoder) error

Decode decodes Link from json.

func (*Link) Encode

func (s *Link) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Link) GetDescription

func (s *Link) GetDescription() OptString

GetDescription returns the value of Description.

func (*Link) GetOperationId

func (s *Link) GetOperationId() OptString

GetOperationId returns the value of OperationId.

func (*Link) GetOperationRef

func (s *Link) GetOperationRef() OptString

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

func (s *Link) GetRequestBody() Any

GetRequestBody returns the value of RequestBody.

func (*Link) GetServer

func (s *Link) GetServer() OptServer

GetServer returns the value of Server.

func (*Link) MarshalJSON

func (s *Link) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Link) SetDescription

func (s *Link) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Link) SetOperationId

func (s *Link) SetOperationId(val OptString)

SetOperationId sets the value of OperationId.

func (*Link) SetOperationRef

func (s *Link) SetOperationRef(val OptString)

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

func (s *Link) SetRequestBody(val Any)

SetRequestBody sets the value of RequestBody.

func (*Link) SetServer

func (s *Link) SetServer(val OptServer)

SetServer sets the value of Server.

func (*Link) UnmarshalJSON

func (s *Link) UnmarshalJSON(data []byte) error

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 (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 (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 (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) Decode

func (s *Maximum) Decode(d *jx.Decoder) error

Decode decodes Maximum from json.

func (Maximum) Encode

func (s Maximum) Encode(e *jx.Encoder)

Encode encodes Maximum as json.

func (Maximum) MarshalJSON

func (s Maximum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Maximum) UnmarshalJSON

func (s *Maximum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Maximum) Validate

func (s Maximum) Validate() error

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) Decode

func (s *MediaType) Decode(d *jx.Decoder) error

Decode decodes MediaType from json.

func (*MediaType) Encode

func (s *MediaType) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MediaType) GetEncoding

func (s *MediaType) GetEncoding() OptEncodings

GetEncoding returns the value of Encoding.

func (*MediaType) GetExample

func (s *MediaType) GetExample() Any

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

func (s *MediaType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MediaType) SetEncoding

func (s *MediaType) SetEncoding(val OptEncodings)

SetEncoding sets the value of Encoding.

func (*MediaType) SetExample

func (s *MediaType) SetExample(val Any)

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

func (s *MediaType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MediaType) Validate

func (s *MediaType) Validate() error

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

type MediaTypes map[string]MediaType

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) Decode

func (s *Minimum) Decode(d *jx.Decoder) error

Decode decodes Minimum from json.

func (Minimum) Encode

func (s Minimum) Encode(e *jx.Encoder)

Encode encodes Minimum as json.

func (Minimum) MarshalJSON

func (s Minimum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Minimum) UnmarshalJSON

func (s *Minimum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (Minimum) Validate

func (s Minimum) Validate() error

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) Decode

func (s *OauthFlow) Decode(d *jx.Decoder) error

Decode decodes OauthFlow from json.

func (*OauthFlow) Encode

func (s *OauthFlow) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OauthFlow) GetAuthorizationUrl

func (s *OauthFlow) GetAuthorizationUrl() OptString

GetAuthorizationUrl returns the value of AuthorizationUrl.

func (*OauthFlow) GetPattern0Props

func (s *OauthFlow) GetPattern0Props() OauthFlowPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*OauthFlow) GetRefreshUrl

func (s *OauthFlow) GetRefreshUrl() OptString

GetRefreshUrl returns the value of RefreshUrl.

func (*OauthFlow) GetScopes

func (s *OauthFlow) GetScopes() OptStrings

GetScopes returns the value of Scopes.

func (*OauthFlow) GetTokenUrl

func (s *OauthFlow) GetTokenUrl() OptString

GetTokenUrl returns the value of TokenUrl.

func (*OauthFlow) MarshalJSON

func (s *OauthFlow) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OauthFlow) SetAuthorizationUrl

func (s *OauthFlow) SetAuthorizationUrl(val OptString)

SetAuthorizationUrl sets the value of AuthorizationUrl.

func (*OauthFlow) SetPattern0Props

func (s *OauthFlow) SetPattern0Props(val OauthFlowPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*OauthFlow) SetRefreshUrl

func (s *OauthFlow) SetRefreshUrl(val OptString)

SetRefreshUrl sets the value of RefreshUrl.

func (*OauthFlow) SetScopes

func (s *OauthFlow) SetScopes(val OptStrings)

SetScopes sets the value of Scopes.

func (*OauthFlow) SetTokenUrl

func (s *OauthFlow) SetTokenUrl(val OptString)

SetTokenUrl sets the value of TokenUrl.

func (*OauthFlow) UnmarshalJSON

func (s *OauthFlow) UnmarshalJSON(data []byte) error

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) Decode

func (s *Operation) Decode(d *jx.Decoder) error

Decode decodes Operation from json.

func (*Operation) Encode

func (s *Operation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Operation) GetCallbacks

func (s *Operation) GetCallbacks() OptCallbacksOrReferences

GetCallbacks returns the value of Callbacks.

func (*Operation) GetDeprecated

func (s *Operation) GetDeprecated() OptBool

GetDeprecated returns the value of Deprecated.

func (*Operation) GetDescription

func (s *Operation) GetDescription() OptString

GetDescription returns the value of Description.

func (*Operation) GetExternalDocs

func (s *Operation) GetExternalDocs() OptExternalDocs

GetExternalDocs returns the value of ExternalDocs.

func (*Operation) GetOperationId

func (s *Operation) GetOperationId() OptString

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

func (s *Operation) GetResponses() Responses

GetResponses returns the value of Responses.

func (*Operation) GetSecurity

func (s *Operation) GetSecurity() []SecurityRequirement

GetSecurity returns the value of Security.

func (*Operation) GetServers

func (s *Operation) GetServers() []Server

GetServers returns the value of Servers.

func (*Operation) GetSummary

func (s *Operation) GetSummary() OptString

GetSummary returns the value of Summary.

func (*Operation) GetTags

func (s *Operation) GetTags() []string

GetTags returns the value of Tags.

func (*Operation) MarshalJSON

func (s *Operation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Operation) SetCallbacks

func (s *Operation) SetCallbacks(val OptCallbacksOrReferences)

SetCallbacks sets the value of Callbacks.

func (*Operation) SetDeprecated

func (s *Operation) SetDeprecated(val OptBool)

SetDeprecated sets the value of Deprecated.

func (*Operation) SetDescription

func (s *Operation) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Operation) SetExternalDocs

func (s *Operation) SetExternalDocs(val OptExternalDocs)

SetExternalDocs sets the value of ExternalDocs.

func (*Operation) SetOperationId

func (s *Operation) SetOperationId(val OptString)

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

func (s *Operation) SetResponses(val Responses)

SetResponses sets the value of Responses.

func (*Operation) SetSecurity

func (s *Operation) SetSecurity(val []SecurityRequirement)

SetSecurity sets the value of Security.

func (*Operation) SetServers

func (s *Operation) SetServers(val []Server)

SetServers sets the value of Servers.

func (*Operation) SetSummary

func (s *Operation) SetSummary(val OptString)

SetSummary sets the value of Summary.

func (*Operation) SetTags

func (s *Operation) SetTags(val []string)

SetTags sets the value of Tags.

func (*Operation) UnmarshalJSON

func (s *Operation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Operation) Validate

func (s *Operation) Validate() error

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

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

Or returns value if set, or given parameter if does not.

func (*OptAnysOrExpressions) Reset

func (o *OptAnysOrExpressions) Reset()

Reset unsets value.

func (*OptAnysOrExpressions) SetTo

SetTo sets value to v.

func (*OptAnysOrExpressions) UnmarshalJSON

func (s *OptAnysOrExpressions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

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

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

Or returns value if set, or given parameter if does not.

func (*OptCallbacksOrReferences) Reset

func (o *OptCallbacksOrReferences) Reset()

Reset unsets value.

func (*OptCallbacksOrReferences) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptComponents) Reset

func (o *OptComponents) Reset()

Reset unsets value.

func (*OptComponents) SetTo

func (o *OptComponents) SetTo(v Components)

SetTo sets value to v.

func (*OptComponents) UnmarshalJSON

func (s *OptComponents) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptContact

type OptContact struct {
	Value Contact
	Set   bool
}

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) Reset

func (o *OptContact) Reset()

Reset unsets value.

func (*OptContact) SetTo

func (o *OptContact) SetTo(v Contact)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptDiscriminator) Reset

func (o *OptDiscriminator) Reset()

Reset unsets value.

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

type OptEncodings struct {
	Value Encodings
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptEncodings) Reset

func (o *OptEncodings) Reset()

Reset unsets value.

func (*OptEncodings) SetTo

func (o *OptEncodings) SetTo(v Encodings)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptExamplesOrReferences) Reset

func (o *OptExamplesOrReferences) Reset()

Reset unsets value.

func (*OptExamplesOrReferences) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptExclusiveMaximum) Reset

func (o *OptExclusiveMaximum) Reset()

Reset unsets value.

func (*OptExclusiveMaximum) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptExclusiveMinimum) Reset

func (o *OptExclusiveMinimum) Reset()

Reset unsets value.

func (*OptExclusiveMinimum) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptExternalDocs) Reset

func (o *OptExternalDocs) Reset()

Reset unsets value.

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

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

Or returns value if set, or given parameter if does not.

func (*OptHeadersOrReferences) Reset

func (o *OptHeadersOrReferences) Reset()

Reset unsets value.

func (*OptHeadersOrReferences) SetTo

SetTo sets value to v.

func (*OptHeadersOrReferences) UnmarshalJSON

func (s *OptHeadersOrReferences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLicense

type OptLicense struct {
	Value License
	Set   bool
}

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) Reset

func (o *OptLicense) Reset()

Reset unsets value.

func (*OptLicense) SetTo

func (o *OptLicense) SetTo(v License)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptLinksOrReferences) Reset

func (o *OptLinksOrReferences) Reset()

Reset unsets value.

func (*OptLinksOrReferences) SetTo

SetTo sets value to v.

func (*OptLinksOrReferences) UnmarshalJSON

func (s *OptLinksOrReferences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMaximum

type OptMaximum struct {
	Value Maximum
	Set   bool
}

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) Reset

func (o *OptMaximum) Reset()

Reset unsets value.

func (*OptMaximum) SetTo

func (o *OptMaximum) SetTo(v Maximum)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptMediaTypes) Reset

func (o *OptMediaTypes) Reset()

Reset unsets value.

func (*OptMediaTypes) SetTo

func (o *OptMediaTypes) SetTo(v MediaTypes)

SetTo sets value to v.

func (*OptMediaTypes) UnmarshalJSON

func (s *OptMediaTypes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMinimum

type OptMinimum struct {
	Value Minimum
	Set   bool
}

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) Reset

func (o *OptMinimum) Reset()

Reset unsets value.

func (*OptMinimum) SetTo

func (o *OptMinimum) SetTo(v Minimum)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptMultipleOf) Reset

func (o *OptMultipleOf) Reset()

Reset unsets value.

func (*OptMultipleOf) SetTo

func (o *OptMultipleOf) SetTo(v MultipleOf)

SetTo sets value to v.

func (*OptMultipleOf) UnmarshalJSON

func (s *OptMultipleOf) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOauthFlow

type OptOauthFlow struct {
	Value OauthFlow
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptOauthFlow) Reset

func (o *OptOauthFlow) Reset()

Reset unsets value.

func (*OptOauthFlow) SetTo

func (o *OptOauthFlow) SetTo(v OauthFlow)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptOauthFlows) Reset

func (o *OptOauthFlows) Reset()

Reset unsets value.

func (*OptOauthFlows) SetTo

func (o *OptOauthFlows) SetTo(v OauthFlows)

SetTo sets value to v.

func (*OptOauthFlows) UnmarshalJSON

func (s *OptOauthFlows) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOperation

type OptOperation struct {
	Value Operation
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptOperation) Reset

func (o *OptOperation) Reset()

Reset unsets value.

func (*OptOperation) SetTo

func (o *OptOperation) SetTo(v Operation)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptParameterStyle) Reset

func (o *OptParameterStyle) Reset()

Reset unsets value.

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

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) Or

Or returns value if set, or given parameter if does not.

func (*OptParametersOrReferences) Reset

func (o *OptParametersOrReferences) Reset()

Reset unsets value.

func (*OptParametersOrReferences) SetTo

SetTo sets value to v.

func (*OptParametersOrReferences) UnmarshalJSON

func (s *OptParametersOrReferences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPattern

type OptPattern struct {
	Value Pattern
	Set   bool
}

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) Reset

func (o *OptPattern) Reset()

Reset unsets value.

func (*OptPattern) SetTo

func (o *OptPattern) SetTo(v Pattern)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptPositiveInteger) Reset

func (o *OptPositiveInteger) Reset()

Reset unsets value.

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

Decode decodes RequestBodiesOrReferences from json.

func (OptRequestBodiesOrReferences) Encode

Encode encodes RequestBodiesOrReferences as json.

func (OptRequestBodiesOrReferences) Get

Get returns value and boolean that denotes whether value was set.

func (OptRequestBodiesOrReferences) IsSet

IsSet returns true if OptRequestBodiesOrReferences was set.

func (OptRequestBodiesOrReferences) MarshalJSON

func (s OptRequestBodiesOrReferences) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRequestBodiesOrReferences) Or

Or returns value if set, or given parameter if does not.

func (*OptRequestBodiesOrReferences) Reset

func (o *OptRequestBodiesOrReferences) Reset()

Reset unsets value.

func (*OptRequestBodiesOrReferences) SetTo

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

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) Or

Or returns value if set, or given parameter if does not.

func (*OptRequestBodyOrReference) Reset

func (o *OptRequestBodyOrReference) Reset()

Reset unsets value.

func (*OptRequestBodyOrReference) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptResponseOrReference) Reset

func (o *OptResponseOrReference) Reset()

Reset unsets value.

func (*OptResponseOrReference) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptResponsesOrReferences) Reset

func (o *OptResponsesOrReferences) Reset()

Reset unsets value.

func (*OptResponsesOrReferences) SetTo

SetTo sets value to v.

func (*OptResponsesOrReferences) UnmarshalJSON

func (s *OptResponsesOrReferences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSchema

type OptSchema struct {
	Value Schema
	Set   bool
}

OptSchema is optional Schema.

func NewOptSchema

func NewOptSchema(v Schema) OptSchema

NewOptSchema returns new OptSchema with value set to v.

func (*OptSchema) Decode

func (o *OptSchema) Decode(d *jx.Decoder) error

Decode decodes Schema from json.

func (OptSchema) Encode

func (o OptSchema) Encode(e *jx.Encoder)

Encode encodes Schema as json.

func (OptSchema) Get

func (o OptSchema) Get() (v Schema, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSchema) IsSet

func (o OptSchema) IsSet() bool

IsSet returns true if OptSchema was set.

func (OptSchema) MarshalJSON

func (s OptSchema) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSchema) Or

func (o OptSchema) Or(d Schema) Schema

Or returns value if set, or given parameter if does not.

func (*OptSchema) Reset

func (o *OptSchema) Reset()

Reset unsets value.

func (*OptSchema) SetTo

func (o *OptSchema) SetTo(v Schema)

SetTo sets value to v.

func (*OptSchema) UnmarshalJSON

func (s *OptSchema) UnmarshalJSON(data []byte) error

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

Decode decodes SchemaAdditionalProperties from json.

func (OptSchemaAdditionalProperties) Encode

Encode encodes SchemaAdditionalProperties as json.

func (OptSchemaAdditionalProperties) Get

Get returns value and boolean that denotes whether value was set.

func (OptSchemaAdditionalProperties) IsSet

IsSet returns true if OptSchemaAdditionalProperties was set.

func (OptSchemaAdditionalProperties) MarshalJSON

func (s OptSchemaAdditionalProperties) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSchemaAdditionalProperties) Or

Or returns value if set, or given parameter if does not.

func (*OptSchemaAdditionalProperties) Reset

func (o *OptSchemaAdditionalProperties) Reset()

Reset unsets value.

func (*OptSchemaAdditionalProperties) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptSchemaOrReference) Reset

func (o *OptSchemaOrReference) Reset()

Reset unsets value.

func (*OptSchemaOrReference) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptSchemaProperties) Reset

func (o *OptSchemaProperties) Reset()

Reset unsets value.

func (*OptSchemaProperties) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptSchemaType) Reset

func (o *OptSchemaType) Reset()

Reset unsets value.

func (*OptSchemaType) SetTo

func (o *OptSchemaType) SetTo(v SchemaType)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptSchemasOrReferences) Reset

func (o *OptSchemasOrReferences) Reset()

Reset unsets value.

func (*OptSchemasOrReferences) SetTo

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

Decode decodes SecuritySchemesOrReferences from json.

func (OptSecuritySchemesOrReferences) Encode

Encode encodes SecuritySchemesOrReferences as json.

func (OptSecuritySchemesOrReferences) Get

Get returns value and boolean that denotes whether value was set.

func (OptSecuritySchemesOrReferences) IsSet

IsSet returns true if OptSecuritySchemesOrReferences was set.

func (OptSecuritySchemesOrReferences) MarshalJSON

func (s OptSecuritySchemesOrReferences) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSecuritySchemesOrReferences) Or

Or returns value if set, or given parameter if does not.

func (*OptSecuritySchemesOrReferences) Reset

func (o *OptSecuritySchemesOrReferences) Reset()

Reset unsets value.

func (*OptSecuritySchemesOrReferences) SetTo

SetTo sets value to v.

func (*OptSecuritySchemesOrReferences) UnmarshalJSON

func (s *OptSecuritySchemesOrReferences) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptServer

type OptServer struct {
	Value Server
	Set   bool
}

OptServer is optional Server.

func NewOptServer

func NewOptServer(v Server) OptServer

NewOptServer returns new OptServer with value set to v.

func (*OptServer) Decode

func (o *OptServer) Decode(d *jx.Decoder) error

Decode decodes Server from json.

func (OptServer) Encode

func (o OptServer) Encode(e *jx.Encoder)

Encode encodes Server as json.

func (OptServer) Get

func (o OptServer) Get() (v Server, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptServer) IsSet

func (o OptServer) IsSet() bool

IsSet returns true if OptServer was set.

func (OptServer) MarshalJSON

func (s OptServer) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptServer) Or

func (o OptServer) Or(d Server) Server

Or returns value if set, or given parameter if does not.

func (*OptServer) Reset

func (o *OptServer) Reset()

Reset unsets value.

func (*OptServer) SetTo

func (o *OptServer) SetTo(v Server)

SetTo sets value to v.

func (*OptServer) UnmarshalJSON

func (s *OptServer) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptServerVariables) Reset

func (o *OptServerVariables) Reset()

Reset unsets value.

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

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStrings

type OptStrings struct {
	Value Strings
	Set   bool
}

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) Reset

func (o *OptStrings) Reset()

Reset unsets value.

func (*OptStrings) SetTo

func (o *OptStrings) SetTo(v Strings)

SetTo sets value to v.

func (*OptStrings) UnmarshalJSON

func (s *OptStrings) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTitle

type OptTitle struct {
	Value Title
	Set   bool
}

OptTitle is optional Title.

func NewOptTitle

func NewOptTitle(v Title) OptTitle

NewOptTitle returns new OptTitle with value set to v.

func (*OptTitle) Decode

func (o *OptTitle) Decode(d *jx.Decoder) error

Decode decodes Title from json.

func (OptTitle) Encode

func (o OptTitle) Encode(e *jx.Encoder)

Encode encodes Title as json.

func (OptTitle) Get

func (o OptTitle) Get() (v Title, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTitle) IsSet

func (o OptTitle) IsSet() bool

IsSet returns true if OptTitle was set.

func (OptTitle) MarshalJSON

func (s OptTitle) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTitle) Or

func (o OptTitle) Or(d Title) Title

Or returns value if set, or given parameter if does not.

func (*OptTitle) Reset

func (o *OptTitle) Reset()

Reset unsets value.

func (*OptTitle) SetTo

func (o *OptTitle) SetTo(v Title)

SetTo sets value to v.

func (*OptTitle) UnmarshalJSON

func (s *OptTitle) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptUniqueItems) Reset

func (o *OptUniqueItems) Reset()

Reset unsets value.

func (*OptUniqueItems) SetTo

func (o *OptUniqueItems) SetTo(v UniqueItems)

SetTo sets value to v.

func (*OptUniqueItems) UnmarshalJSON

func (s *OptUniqueItems) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptXML

type OptXML struct {
	Value XML
	Set   bool
}

OptXML is optional XML.

func NewOptXML

func NewOptXML(v XML) OptXML

NewOptXML returns new OptXML with value set to v.

func (*OptXML) Decode

func (o *OptXML) Decode(d *jx.Decoder) error

Decode decodes XML from json.

func (OptXML) Encode

func (o OptXML) Encode(e *jx.Encoder)

Encode encodes XML as json.

func (OptXML) Get

func (o OptXML) Get() (v XML, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptXML) IsSet

func (o OptXML) IsSet() bool

IsSet returns true if OptXML was set.

func (OptXML) MarshalJSON

func (s OptXML) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptXML) Or

func (o OptXML) Or(d XML) XML

Or returns value if set, or given parameter if does not.

func (*OptXML) Reset

func (o *OptXML) Reset()

Reset unsets value.

func (*OptXML) SetTo

func (o *OptXML) SetTo(v XML)

SetTo sets value to v.

func (*OptXML) UnmarshalJSON

func (s *OptXML) UnmarshalJSON(data []byte) error

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) Decode

func (s *Parameter) Decode(d *jx.Decoder) error

Decode decodes Parameter from json.

func (*Parameter) Encode

func (s *Parameter) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Parameter) GetAllowEmptyValue

func (s *Parameter) GetAllowEmptyValue() OptBool

GetAllowEmptyValue returns the value of AllowEmptyValue.

func (*Parameter) GetAllowReserved

func (s *Parameter) GetAllowReserved() OptBool

GetAllowReserved returns the value of AllowReserved.

func (*Parameter) GetContent

func (s *Parameter) GetContent() OptMediaTypes

GetContent returns the value of Content.

func (*Parameter) GetDeprecated

func (s *Parameter) GetDeprecated() OptBool

GetDeprecated returns the value of Deprecated.

func (*Parameter) GetDescription

func (s *Parameter) GetDescription() OptString

GetDescription returns the value of Description.

func (*Parameter) GetExample

func (s *Parameter) GetExample() Any

GetExample returns the value of Example.

func (*Parameter) GetExamples

func (s *Parameter) GetExamples() OptExamplesOrReferences

GetExamples returns the value of Examples.

func (*Parameter) GetExplode

func (s *Parameter) GetExplode() OptBool

GetExplode returns the value of Explode.

func (*Parameter) GetIn

func (s *Parameter) GetIn() ParameterIn

GetIn returns the value of In.

func (*Parameter) GetName

func (s *Parameter) GetName() string

GetName returns the value of Name.

func (*Parameter) GetPattern0Props

func (s *Parameter) GetPattern0Props() ParameterPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*Parameter) GetRequired

func (s *Parameter) GetRequired() OptBool

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

func (s *Parameter) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Parameter) SetAllowEmptyValue

func (s *Parameter) SetAllowEmptyValue(val OptBool)

SetAllowEmptyValue sets the value of AllowEmptyValue.

func (*Parameter) SetAllowReserved

func (s *Parameter) SetAllowReserved(val OptBool)

SetAllowReserved sets the value of AllowReserved.

func (*Parameter) SetContent

func (s *Parameter) SetContent(val OptMediaTypes)

SetContent sets the value of Content.

func (*Parameter) SetDeprecated

func (s *Parameter) SetDeprecated(val OptBool)

SetDeprecated sets the value of Deprecated.

func (*Parameter) SetDescription

func (s *Parameter) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Parameter) SetExample

func (s *Parameter) SetExample(val Any)

SetExample sets the value of Example.

func (*Parameter) SetExamples

func (s *Parameter) SetExamples(val OptExamplesOrReferences)

SetExamples sets the value of Examples.

func (*Parameter) SetExplode

func (s *Parameter) SetExplode(val OptBool)

SetExplode sets the value of Explode.

func (*Parameter) SetIn

func (s *Parameter) SetIn(val ParameterIn)

SetIn sets the value of In.

func (*Parameter) SetName

func (s *Parameter) SetName(val string)

SetName sets the value of Name.

func (*Parameter) SetPattern0Props

func (s *Parameter) SetPattern0Props(val ParameterPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*Parameter) SetRequired

func (s *Parameter) SetRequired(val OptBool)

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

func (s *Parameter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Parameter) Validate

func (s *Parameter) Validate() error

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) Decode

func (s *PathItem) Decode(d *jx.Decoder) error

Decode decodes PathItem from json.

func (*PathItem) Encode

func (s *PathItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PathItem) GetDelete

func (s *PathItem) GetDelete() OptOperation

GetDelete returns the value of Delete.

func (*PathItem) GetDescription

func (s *PathItem) GetDescription() OptString

GetDescription returns the value of Description.

func (*PathItem) GetGet

func (s *PathItem) GetGet() OptOperation

GetGet returns the value of Get.

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) GetPut

func (s *PathItem) GetPut() OptOperation

GetPut returns the value of Put.

func (*PathItem) GetRef

func (s *PathItem) GetRef() OptString

GetRef returns the value of Ref.

func (*PathItem) GetServers

func (s *PathItem) GetServers() []Server

GetServers returns the value of Servers.

func (*PathItem) GetSummary

func (s *PathItem) GetSummary() OptString

GetSummary returns the value of Summary.

func (*PathItem) GetTrace

func (s *PathItem) GetTrace() OptOperation

GetTrace returns the value of Trace.

func (*PathItem) MarshalJSON

func (s *PathItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PathItem) SetDelete

func (s *PathItem) SetDelete(val OptOperation)

SetDelete sets the value of Delete.

func (*PathItem) SetDescription

func (s *PathItem) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*PathItem) SetGet

func (s *PathItem) SetGet(val OptOperation)

SetGet sets the value of Get.

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) SetPut

func (s *PathItem) SetPut(val OptOperation)

SetPut sets the value of Put.

func (*PathItem) SetRef

func (s *PathItem) SetRef(val OptString)

SetRef sets the value of Ref.

func (*PathItem) SetServers

func (s *PathItem) SetServers(val []Server)

SetServers sets the value of Servers.

func (*PathItem) SetSummary

func (s *PathItem) SetSummary(val OptString)

SetSummary sets the value of Summary.

func (*PathItem) SetTrace

func (s *PathItem) SetTrace(val OptOperation)

SetTrace sets the value of Trace.

func (*PathItem) UnmarshalJSON

func (s *PathItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PathItem) Validate

func (s *PathItem) Validate() error

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) Decode

func (s *Paths) Decode(d *jx.Decoder) error

Decode decodes Paths from json.

func (*Paths) Encode

func (s *Paths) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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

func (s *Paths) MarshalJSON() ([]byte, error)

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

func (s *Paths) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Paths) Validate

func (s *Paths) Validate() error

type PathsPattern0

type PathsPattern0 map[string]PathItem

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) Decode

func (s *Pattern) Decode(d *jx.Decoder) error

Decode decodes Pattern from json.

func (Pattern) Encode

func (s Pattern) Encode(e *jx.Encoder)

Encode encodes Pattern as json.

func (Pattern) MarshalJSON

func (s Pattern) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Pattern) UnmarshalJSON

func (s *Pattern) UnmarshalJSON(data []byte) error

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) Decode

func (s *Reference) Decode(d *jx.Decoder) error

Decode decodes Reference from json.

func (*Reference) Encode

func (s *Reference) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Reference) GetRef

func (s *Reference) GetRef() string

GetRef returns the value of Ref.

func (*Reference) MarshalJSON

func (s *Reference) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Reference) SetRef

func (s *Reference) SetRef(val string)

SetRef sets the value of Ref.

func (*Reference) UnmarshalJSON

func (s *Reference) UnmarshalJSON(data []byte) error

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) Decode

func (s *Response) Decode(d *jx.Decoder) error

Decode decodes Response from json.

func (*Response) Encode

func (s *Response) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Response) GetContent

func (s *Response) GetContent() OptMediaTypes

GetContent returns the value of Content.

func (*Response) GetDescription

func (s *Response) GetDescription() string

GetDescription returns the value of Description.

func (*Response) GetHeaders

func (s *Response) GetHeaders() OptHeadersOrReferences

GetHeaders returns the value of Headers.

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

func (s *Response) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Response) SetContent

func (s *Response) SetContent(val OptMediaTypes)

SetContent sets the value of Content.

func (*Response) SetDescription

func (s *Response) SetDescription(val string)

SetDescription sets the value of Description.

func (*Response) SetHeaders

func (s *Response) SetHeaders(val OptHeadersOrReferences)

SetHeaders sets the value of Headers.

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

func (s *Response) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Response) Validate

func (s *Response) Validate() error

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) Decode

func (s *Responses) Decode(d *jx.Decoder) error

Decode decodes Responses from json.

func (*Responses) Encode

func (s *Responses) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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

func (s *Responses) MarshalJSON() ([]byte, error)

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

func (s *Responses) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Responses) Validate

func (s *Responses) Validate() error

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) Decode

func (s *Schema) Decode(d *jx.Decoder) error

Decode decodes Schema from json.

func (*Schema) Encode

func (s *Schema) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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

func (s *Schema) GetDeprecated() OptBool

GetDeprecated returns the value of Deprecated.

func (*Schema) GetDescription

func (s *Schema) GetDescription() OptString

GetDescription returns the value of Description.

func (*Schema) GetDiscriminator

func (s *Schema) GetDiscriminator() OptDiscriminator

GetDiscriminator returns the value of Discriminator.

func (*Schema) GetEnum

func (s *Schema) GetEnum() Enum

GetEnum returns the value of Enum.

func (*Schema) GetExample

func (s *Schema) GetExample() Any

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) GetFormat

func (s *Schema) GetFormat() OptString

GetFormat returns the value of Format.

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) GetNot

func (s *Schema) GetNot() *Schema

GetNot returns the value of Not.

func (*Schema) GetNullable

func (s *Schema) GetNullable() OptBool

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

func (s *Schema) GetReadOnly() OptBool

GetReadOnly returns the value of ReadOnly.

func (*Schema) GetRequired

func (s *Schema) GetRequired() StringArray

GetRequired returns the value of Required.

func (*Schema) GetTitle

func (s *Schema) GetTitle() OptTitle

GetTitle returns the value of Title.

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

func (s *Schema) GetWriteOnly() OptBool

GetWriteOnly returns the value of WriteOnly.

func (*Schema) GetXML

func (s *Schema) GetXML() OptXML

GetXML returns the value of XML.

func (*Schema) MarshalJSON

func (s *Schema) MarshalJSON() ([]byte, error)

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

func (s *Schema) SetDeprecated(val OptBool)

SetDeprecated sets the value of Deprecated.

func (*Schema) SetDescription

func (s *Schema) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Schema) SetDiscriminator

func (s *Schema) SetDiscriminator(val OptDiscriminator)

SetDiscriminator sets the value of Discriminator.

func (*Schema) SetEnum

func (s *Schema) SetEnum(val Enum)

SetEnum sets the value of Enum.

func (*Schema) SetExample

func (s *Schema) SetExample(val Any)

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) SetFormat

func (s *Schema) SetFormat(val OptString)

SetFormat sets the value of Format.

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) SetNot

func (s *Schema) SetNot(val *Schema)

SetNot sets the value of Not.

func (*Schema) SetNullable

func (s *Schema) SetNullable(val OptBool)

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

func (s *Schema) SetReadOnly(val OptBool)

SetReadOnly sets the value of ReadOnly.

func (*Schema) SetRequired

func (s *Schema) SetRequired(val StringArray)

SetRequired sets the value of Required.

func (*Schema) SetTitle

func (s *Schema) SetTitle(val OptTitle)

SetTitle sets the value of Title.

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

func (s *Schema) SetWriteOnly(val OptBool)

SetWriteOnly sets the value of WriteOnly.

func (*Schema) SetXML

func (s *Schema) SetXML(val OptXML)

SetXML sets the value of XML.

func (*Schema) UnmarshalJSON

func (s *Schema) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Schema) Validate

func (s *Schema) Validate() error

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

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

type SecurityRequirement map[string][]string

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

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) Decode

func (s *Server) Decode(d *jx.Decoder) error

Decode decodes Server from json.

func (*Server) Encode

func (s *Server) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Server) GetDescription

func (s *Server) GetDescription() OptString

GetDescription returns the value of Description.

func (*Server) GetPattern0Props

func (s *Server) GetPattern0Props() ServerPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*Server) GetURL

func (s *Server) GetURL() string

GetURL returns the value of URL.

func (*Server) GetVariables

func (s *Server) GetVariables() OptServerVariables

GetVariables returns the value of Variables.

func (*Server) MarshalJSON

func (s *Server) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Server) SetDescription

func (s *Server) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Server) SetPattern0Props

func (s *Server) SetPattern0Props(val ServerPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*Server) SetURL

func (s *Server) SetURL(val string)

SetURL sets the value of URL.

func (*Server) SetVariables

func (s *Server) SetVariables(val OptServerVariables)

SetVariables sets the value of Variables.

func (*Server) UnmarshalJSON

func (s *Server) UnmarshalJSON(data []byte) error

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) Decode

func (s *Spec) Decode(d *jx.Decoder) error

Decode decodes Spec from json.

func (*Spec) Encode

func (s *Spec) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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) GetInfo

func (s *Spec) GetInfo() Info

GetInfo returns the value of Info.

func (*Spec) GetOpenapi

func (s *Spec) GetOpenapi() string

GetOpenapi returns the value of Openapi.

func (*Spec) GetPaths

func (s *Spec) GetPaths() Paths

GetPaths returns the value of Paths.

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

func (s *Spec) GetServers() []Server

GetServers returns the value of Servers.

func (*Spec) GetTags

func (s *Spec) GetTags() []Tag

GetTags returns the value of Tags.

func (*Spec) MarshalJSON

func (s *Spec) MarshalJSON() ([]byte, error)

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) SetInfo

func (s *Spec) SetInfo(val Info)

SetInfo sets the value of Info.

func (*Spec) SetOpenapi

func (s *Spec) SetOpenapi(val string)

SetOpenapi sets the value of Openapi.

func (*Spec) SetPaths

func (s *Spec) SetPaths(val Paths)

SetPaths sets the value of Paths.

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

func (s *Spec) SetServers(val []Server)

SetServers sets the value of Servers.

func (*Spec) SetTags

func (s *Spec) SetTags(val []Tag)

SetTags sets the value of Tags.

func (*Spec) UnmarshalJSON

func (s *Spec) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Spec) Validate

func (s *Spec) Validate() error

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

type SpecificationExtension jx.Raw

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

type Strings map[string]string

Ref: #/definitions/strings

func (*Strings) Decode

func (s *Strings) Decode(d *jx.Decoder) error

Decode decodes Strings from json.

func (Strings) Encode

func (s Strings) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (Strings) MarshalJSON

func (s Strings) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Strings) UnmarshalJSON

func (s *Strings) UnmarshalJSON(data []byte) error

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) Decode

func (s *Tag) Decode(d *jx.Decoder) error

Decode decodes Tag from json.

func (*Tag) Encode

func (s *Tag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Tag) GetDescription

func (s *Tag) GetDescription() OptString

GetDescription returns the value of Description.

func (*Tag) GetExternalDocs

func (s *Tag) GetExternalDocs() OptExternalDocs

GetExternalDocs returns the value of ExternalDocs.

func (*Tag) GetName

func (s *Tag) GetName() string

GetName returns the value of Name.

func (*Tag) GetPattern0Props

func (s *Tag) GetPattern0Props() TagPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*Tag) MarshalJSON

func (s *Tag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Tag) SetDescription

func (s *Tag) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Tag) SetExternalDocs

func (s *Tag) SetExternalDocs(val OptExternalDocs)

SetExternalDocs sets the value of ExternalDocs.

func (*Tag) SetName

func (s *Tag) SetName(val string)

SetName sets the value of Name.

func (*Tag) SetPattern0Props

func (s *Tag) SetPattern0Props(val TagPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*Tag) UnmarshalJSON

func (s *Tag) UnmarshalJSON(data []byte) error

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) Decode

func (s *Title) Decode(d *jx.Decoder) error

Decode decodes Title from json.

func (Title) Encode

func (s Title) Encode(e *jx.Encoder)

Encode encodes Title as json.

func (Title) MarshalJSON

func (s Title) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Title) UnmarshalJSON

func (s *Title) UnmarshalJSON(data []byte) error

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) Decode

func (s *XML) Decode(d *jx.Decoder) error

Decode decodes XML from json.

func (*XML) Encode

func (s *XML) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*XML) GetAttribute

func (s *XML) GetAttribute() OptBool

GetAttribute returns the value of Attribute.

func (*XML) GetName

func (s *XML) GetName() OptString

GetName returns the value of Name.

func (*XML) GetNamespace

func (s *XML) GetNamespace() OptString

GetNamespace returns the value of Namespace.

func (*XML) GetPattern0Props

func (s *XML) GetPattern0Props() XMLPattern0

GetPattern0Props returns the value of Pattern0Props.

func (*XML) GetPrefix

func (s *XML) GetPrefix() OptString

GetPrefix returns the value of Prefix.

func (*XML) GetWrapped

func (s *XML) GetWrapped() OptBool

GetWrapped returns the value of Wrapped.

func (*XML) MarshalJSON

func (s *XML) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*XML) SetAttribute

func (s *XML) SetAttribute(val OptBool)

SetAttribute sets the value of Attribute.

func (*XML) SetName

func (s *XML) SetName(val OptString)

SetName sets the value of Name.

func (*XML) SetNamespace

func (s *XML) SetNamespace(val OptString)

SetNamespace sets the value of Namespace.

func (*XML) SetPattern0Props

func (s *XML) SetPattern0Props(val XMLPattern0)

SetPattern0Props sets the value of Pattern0Props.

func (*XML) SetPrefix

func (s *XML) SetPrefix(val OptString)

SetPrefix sets the value of Prefix.

func (*XML) SetWrapped

func (s *XML) SetWrapped(val OptBool)

SetWrapped sets the value of Wrapped.

func (*XML) UnmarshalJSON

func (s *XML) UnmarshalJSON(data []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL