Documentation ¶
Overview ¶
Package openapi implement OpenAPI Spec v2
Index ¶
- Constants
- Variables
- func ContactFromJSON(buf []byte, dst interface{}) error
- func ExternalDocumentationFromJSON(buf []byte, dst interface{}) error
- func HeaderFromJSON(buf []byte, dst interface{}) error
- func InfoFromJSON(buf []byte, dst interface{}) error
- func ItemsFromJSON(buf []byte, dst interface{}) error
- func LicenseFromJSON(buf []byte, dst interface{}) error
- func OperationFromJSON(buf []byte, dst interface{}) error
- func ParameterFromJSON(buf []byte, dst interface{}) error
- func PathItemFromJSON(buf []byte, dst interface{}) error
- func PathsFromJSON(buf []byte, dst interface{}) error
- func ResponseFromJSON(buf []byte, dst interface{}) error
- func ResponsesFromJSON(buf []byte, dst interface{}) error
- func SchemaFromJSON(buf []byte, dst interface{}) error
- func SecurityRequirementFromJSON(buf []byte, dst interface{}) error
- func SecuritySchemeFromJSON(buf []byte, dst interface{}) error
- func SwaggerFromJSON(buf []byte, dst interface{}) error
- func TagFromJSON(buf []byte, dst interface{}) error
- func Visit(ctx context.Context, handler, elem interface{}) error
- func XMLFromJSON(buf []byte, dst interface{}) error
- type CollectionFormat
- type Contact
- type ContactBuilder
- func (b *ContactBuilder) Build(options ...Option) (Contact, error)
- func (b *ContactBuilder) Email(v string) *ContactBuilder
- func (b *ContactBuilder) Extension(name string, value interface{}) *ContactBuilder
- func (b *ContactBuilder) MustBuild(options ...Option) Contact
- func (b *ContactBuilder) Name(v string) *ContactBuilder
- func (b *ContactBuilder) Reference(v string) *ContactBuilder
- func (b *ContactBuilder) URL(v string) *ContactBuilder
- type ContactMutator
- type ContactVisitor
- type ExampleMap
- type ExampleMapIterator
- type ExampleMapKey
- type Extensions
- type ExtensionsIterator
- type ExternalDocumentation
- type ExternalDocumentationBuilder
- func (b *ExternalDocumentationBuilder) Build(options ...Option) (ExternalDocumentation, error)
- func (b *ExternalDocumentationBuilder) Description(v string) *ExternalDocumentationBuilder
- func (b *ExternalDocumentationBuilder) Extension(name string, value interface{}) *ExternalDocumentationBuilder
- func (b *ExternalDocumentationBuilder) MustBuild(options ...Option) ExternalDocumentation
- func (b *ExternalDocumentationBuilder) Reference(v string) *ExternalDocumentationBuilder
- type ExternalDocumentationMutator
- func (m *ExternalDocumentationMutator) Apply() error
- func (m *ExternalDocumentationMutator) Description(v string) *ExternalDocumentationMutator
- func (m *ExternalDocumentationMutator) Extension(name string, value interface{}) *ExternalDocumentationMutator
- func (m *ExternalDocumentationMutator) URL(v string) *ExternalDocumentationMutator
- type ExternalDocumentationVisitor
- type Header
- type HeaderBuilder
- func (b *HeaderBuilder) Build(options ...Option) (Header, error)
- func (b *HeaderBuilder) CollectionFormat(v CollectionFormat) *HeaderBuilder
- func (b *HeaderBuilder) Default(v interface{}) *HeaderBuilder
- func (b *HeaderBuilder) Description(v string) *HeaderBuilder
- func (b *HeaderBuilder) Enum(v ...interface{}) *HeaderBuilder
- func (b *HeaderBuilder) ExclusiveMaximum(v float64) *HeaderBuilder
- func (b *HeaderBuilder) ExclusiveMinimum(v float64) *HeaderBuilder
- func (b *HeaderBuilder) Extension(name string, value interface{}) *HeaderBuilder
- func (b *HeaderBuilder) Format(v string) *HeaderBuilder
- func (b *HeaderBuilder) Items(v Items) *HeaderBuilder
- func (b *HeaderBuilder) MaxItems(v int) *HeaderBuilder
- func (b *HeaderBuilder) MaxLength(v int) *HeaderBuilder
- func (b *HeaderBuilder) Maximum(v float64) *HeaderBuilder
- func (b *HeaderBuilder) MinItems(v int) *HeaderBuilder
- func (b *HeaderBuilder) MinLength(v int) *HeaderBuilder
- func (b *HeaderBuilder) Minimum(v float64) *HeaderBuilder
- func (b *HeaderBuilder) MultipleOf(v float64) *HeaderBuilder
- func (b *HeaderBuilder) MustBuild(options ...Option) Header
- func (b *HeaderBuilder) Name(v string) *HeaderBuilder
- func (b *HeaderBuilder) Pattern(v string) *HeaderBuilder
- func (b *HeaderBuilder) Reference(v string) *HeaderBuilder
- func (b *HeaderBuilder) UniqueItems(v bool) *HeaderBuilder
- type HeaderMap
- type HeaderMapIterator
- type HeaderMapKey
- type HeaderMutator
- func (m *HeaderMutator) Apply() error
- func (m *HeaderMutator) ClearEnum() *HeaderMutator
- func (m *HeaderMutator) CollectionFormat(v CollectionFormat) *HeaderMutator
- func (m *HeaderMutator) Default(v interface{}) *HeaderMutator
- func (m *HeaderMutator) Description(v string) *HeaderMutator
- func (m *HeaderMutator) Enum(value interface{}) *HeaderMutator
- func (m *HeaderMutator) ExclusiveMaximum(v float64) *HeaderMutator
- func (m *HeaderMutator) ExclusiveMinimum(v float64) *HeaderMutator
- func (m *HeaderMutator) Extension(name string, value interface{}) *HeaderMutator
- func (m *HeaderMutator) Format(v string) *HeaderMutator
- func (m *HeaderMutator) Items(v Items) *HeaderMutator
- func (m *HeaderMutator) MaxItems(v int) *HeaderMutator
- func (m *HeaderMutator) MaxLength(v int) *HeaderMutator
- func (m *HeaderMutator) Maximum(v float64) *HeaderMutator
- func (m *HeaderMutator) MinItems(v int) *HeaderMutator
- func (m *HeaderMutator) MinLength(v int) *HeaderMutator
- func (m *HeaderMutator) Minimum(v float64) *HeaderMutator
- func (m *HeaderMutator) MultipleOf(v float64) *HeaderMutator
- func (m *HeaderMutator) Name(v string) *HeaderMutator
- func (m *HeaderMutator) Pattern(v string) *HeaderMutator
- func (m *HeaderMutator) Type(v string) *HeaderMutator
- func (m *HeaderMutator) UniqueItems(v bool) *HeaderMutator
- type HeaderVisitor
- type Info
- type InfoBuilder
- func (b *InfoBuilder) Build(options ...Option) (Info, error)
- func (b *InfoBuilder) Contact(v Contact) *InfoBuilder
- func (b *InfoBuilder) Description(v string) *InfoBuilder
- func (b *InfoBuilder) Extension(name string, value interface{}) *InfoBuilder
- func (b *InfoBuilder) License(v License) *InfoBuilder
- func (b *InfoBuilder) MustBuild(options ...Option) Info
- func (b *InfoBuilder) Reference(v string) *InfoBuilder
- func (b *InfoBuilder) TermsOfService(v string) *InfoBuilder
- type InfoMutator
- func (m *InfoMutator) Apply() error
- func (m *InfoMutator) Contact(v Contact) *InfoMutator
- func (m *InfoMutator) Description(v string) *InfoMutator
- func (m *InfoMutator) Extension(name string, value interface{}) *InfoMutator
- func (m *InfoMutator) License(v License) *InfoMutator
- func (m *InfoMutator) TermsOfService(v string) *InfoMutator
- func (m *InfoMutator) Title(v string) *InfoMutator
- func (m *InfoMutator) Version(v string) *InfoMutator
- type InfoVisitor
- type InterfaceList
- type InterfaceListIterator
- type InterfaceMap
- type InterfaceMapIterator
- type InterfaceMapKey
- type Items
- type ItemsBuilder
- func (b *ItemsBuilder) Build(options ...Option) (Items, error)
- func (b *ItemsBuilder) CollectionFormat(v CollectionFormat) *ItemsBuilder
- func (b *ItemsBuilder) Default(v interface{}) *ItemsBuilder
- func (b *ItemsBuilder) Enum(v ...interface{}) *ItemsBuilder
- func (b *ItemsBuilder) ExclusiveMaximum(v float64) *ItemsBuilder
- func (b *ItemsBuilder) ExclusiveMinimum(v float64) *ItemsBuilder
- func (b *ItemsBuilder) Extension(name string, value interface{}) *ItemsBuilder
- func (b *ItemsBuilder) Format(v string) *ItemsBuilder
- func (b *ItemsBuilder) Items(v Items) *ItemsBuilder
- func (b *ItemsBuilder) MaxItems(v int) *ItemsBuilder
- func (b *ItemsBuilder) MaxLength(v int) *ItemsBuilder
- func (b *ItemsBuilder) Maximum(v float64) *ItemsBuilder
- func (b *ItemsBuilder) MinItems(v int) *ItemsBuilder
- func (b *ItemsBuilder) MinLength(v int) *ItemsBuilder
- func (b *ItemsBuilder) Minimum(v float64) *ItemsBuilder
- func (b *ItemsBuilder) MultipleOf(v float64) *ItemsBuilder
- func (b *ItemsBuilder) MustBuild(options ...Option) Items
- func (b *ItemsBuilder) Pattern(v string) *ItemsBuilder
- func (b *ItemsBuilder) Reference(v string) *ItemsBuilder
- func (b *ItemsBuilder) Type(v PrimitiveType) *ItemsBuilder
- func (b *ItemsBuilder) UniqueItems(v bool) *ItemsBuilder
- type ItemsMutator
- func (m *ItemsMutator) Apply() error
- func (m *ItemsMutator) ClearEnum() *ItemsMutator
- func (m *ItemsMutator) ClearExclusiveMaximum() *ItemsMutator
- func (m *ItemsMutator) ClearExclusiveMinimum() *ItemsMutator
- func (m *ItemsMutator) ClearMaxItems() *ItemsMutator
- func (m *ItemsMutator) ClearMaxLength() *ItemsMutator
- func (m *ItemsMutator) ClearMaximum() *ItemsMutator
- func (m *ItemsMutator) ClearMinItems() *ItemsMutator
- func (m *ItemsMutator) ClearMinLength() *ItemsMutator
- func (m *ItemsMutator) ClearMinimum() *ItemsMutator
- func (m *ItemsMutator) ClearMultipleOf() *ItemsMutator
- func (m *ItemsMutator) ClearUniqueItems() *ItemsMutator
- func (m *ItemsMutator) CollectionFormat(v CollectionFormat) *ItemsMutator
- func (m *ItemsMutator) Default(v interface{}) *ItemsMutator
- func (m *ItemsMutator) Enum(value interface{}) *ItemsMutator
- func (m *ItemsMutator) ExclusiveMaximum(v float64) *ItemsMutator
- func (m *ItemsMutator) ExclusiveMinimum(v float64) *ItemsMutator
- func (m *ItemsMutator) Extension(name string, value interface{}) *ItemsMutator
- func (m *ItemsMutator) Format(v string) *ItemsMutator
- func (m *ItemsMutator) Items(v Items) *ItemsMutator
- func (m *ItemsMutator) MaxItems(v int) *ItemsMutator
- func (m *ItemsMutator) MaxLength(v int) *ItemsMutator
- func (m *ItemsMutator) Maximum(v float64) *ItemsMutator
- func (m *ItemsMutator) MinItems(v int) *ItemsMutator
- func (m *ItemsMutator) MinLength(v int) *ItemsMutator
- func (m *ItemsMutator) Minimum(v float64) *ItemsMutator
- func (m *ItemsMutator) MultipleOf(v float64) *ItemsMutator
- func (m *ItemsMutator) Pattern(v string) *ItemsMutator
- func (m *ItemsMutator) Type(v PrimitiveType) *ItemsMutator
- func (m *ItemsMutator) UniqueItems(v bool) *ItemsMutator
- type ItemsVisitor
- type License
- type LicenseBuilder
- func (b *LicenseBuilder) Build(options ...Option) (License, error)
- func (b *LicenseBuilder) Extension(name string, value interface{}) *LicenseBuilder
- func (b *LicenseBuilder) MustBuild(options ...Option) License
- func (b *LicenseBuilder) Reference(v string) *LicenseBuilder
- func (b *LicenseBuilder) URL(v string) *LicenseBuilder
- type LicenseMutator
- type LicenseVisitor
- type Location
- type MIMEType
- type MIMETypeList
- type MIMETypeListIterator
- type MapQueryJSON
- type MediaType
- type MediaTypeListIterator
- type OpenAPI
- type Operation
- type OperationBuilder
- func (b *OperationBuilder) Build(options ...Option) (Operation, error)
- func (b *OperationBuilder) Consumes(v ...MIMEType) *OperationBuilder
- func (b *OperationBuilder) Deprecated(v bool) *OperationBuilder
- func (b *OperationBuilder) Description(v string) *OperationBuilder
- func (b *OperationBuilder) Extension(name string, value interface{}) *OperationBuilder
- func (b *OperationBuilder) ExternalDocs(v ExternalDocumentation) *OperationBuilder
- func (b *OperationBuilder) MustBuild(options ...Option) Operation
- func (b *OperationBuilder) OperationID(v string) *OperationBuilder
- func (b *OperationBuilder) Parameters(v ...Parameter) *OperationBuilder
- func (b *OperationBuilder) Produces(v ...MIMEType) *OperationBuilder
- func (b *OperationBuilder) Reference(v string) *OperationBuilder
- func (b *OperationBuilder) Schemes(v ...Scheme) *OperationBuilder
- func (b *OperationBuilder) Security(v ...SecurityRequirement) *OperationBuilder
- func (b *OperationBuilder) Summary(v string) *OperationBuilder
- func (b *OperationBuilder) Tags(v ...string) *OperationBuilder
- type OperationListIterator
- type OperationMutator
- func (m *OperationMutator) Apply() error
- func (m *OperationMutator) ClearConsumes() *OperationMutator
- func (m *OperationMutator) ClearParameters() *OperationMutator
- func (m *OperationMutator) ClearProduces() *OperationMutator
- func (m *OperationMutator) ClearSchemes() *OperationMutator
- func (m *OperationMutator) ClearSecurity() *OperationMutator
- func (m *OperationMutator) ClearTags() *OperationMutator
- func (m *OperationMutator) Consume(value string) *OperationMutator
- func (m *OperationMutator) Deprecated(v bool) *OperationMutator
- func (m *OperationMutator) Description(v string) *OperationMutator
- func (m *OperationMutator) Extension(name string, value interface{}) *OperationMutator
- func (m *OperationMutator) ExternalDocs(v ExternalDocumentation) *OperationMutator
- func (m *OperationMutator) OperationID(v string) *OperationMutator
- func (m *OperationMutator) Parameter(value Parameter) *OperationMutator
- func (m *OperationMutator) Produce(value string) *OperationMutator
- func (m *OperationMutator) Responses(v Responses) *OperationMutator
- func (m *OperationMutator) Scheme(value string) *OperationMutator
- func (m *OperationMutator) Security(value SecurityRequirement) *OperationMutator
- func (m *OperationMutator) Summary(v string) *OperationMutator
- func (m *OperationMutator) Tag(value string) *OperationMutator
- type OperationVisitor
- type Option
- type Parameter
- type ParameterBuilder
- func (b *ParameterBuilder) AllowEmptyValue(v bool) *ParameterBuilder
- func (b *ParameterBuilder) Build(options ...Option) (Parameter, error)
- func (b *ParameterBuilder) CollectionFormat(v CollectionFormat) *ParameterBuilder
- func (b *ParameterBuilder) Default(v interface{}) *ParameterBuilder
- func (b *ParameterBuilder) Description(v string) *ParameterBuilder
- func (b *ParameterBuilder) Enum(v ...interface{}) *ParameterBuilder
- func (b *ParameterBuilder) ExclusiveMaximum(v float64) *ParameterBuilder
- func (b *ParameterBuilder) ExclusiveMinimum(v float64) *ParameterBuilder
- func (b *ParameterBuilder) Extension(name string, value interface{}) *ParameterBuilder
- func (b *ParameterBuilder) Format(v string) *ParameterBuilder
- func (b *ParameterBuilder) Items(v Items) *ParameterBuilder
- func (b *ParameterBuilder) MaxItems(v int) *ParameterBuilder
- func (b *ParameterBuilder) MaxLength(v int) *ParameterBuilder
- func (b *ParameterBuilder) Maximum(v float64) *ParameterBuilder
- func (b *ParameterBuilder) MinItems(v int) *ParameterBuilder
- func (b *ParameterBuilder) MinLength(v int) *ParameterBuilder
- func (b *ParameterBuilder) Minimum(v float64) *ParameterBuilder
- func (b *ParameterBuilder) MultipleOf(v float64) *ParameterBuilder
- func (b *ParameterBuilder) MustBuild(options ...Option) Parameter
- func (b *ParameterBuilder) Pattern(v string) *ParameterBuilder
- func (b *ParameterBuilder) Reference(v string) *ParameterBuilder
- func (b *ParameterBuilder) Required(v bool) *ParameterBuilder
- func (b *ParameterBuilder) Schema(v Schema) *ParameterBuilder
- func (b *ParameterBuilder) Title(v string) *ParameterBuilder
- func (b *ParameterBuilder) Type(v PrimitiveType) *ParameterBuilder
- func (b *ParameterBuilder) UniqueItems(v bool) *ParameterBuilder
- type ParameterList
- type ParameterListIterator
- type ParameterMap
- type ParameterMapIterator
- type ParameterMapKey
- type ParameterMutator
- func (m *ParameterMutator) AllowEmptyValue(v bool) *ParameterMutator
- func (m *ParameterMutator) Apply() error
- func (m *ParameterMutator) ClearEnum() *ParameterMutator
- func (m *ParameterMutator) ClearExclusiveMaximum() *ParameterMutator
- func (m *ParameterMutator) ClearExclusiveMinimum() *ParameterMutator
- func (m *ParameterMutator) ClearMaxItems() *ParameterMutator
- func (m *ParameterMutator) ClearMaxLength() *ParameterMutator
- func (m *ParameterMutator) ClearMaximum() *ParameterMutator
- func (m *ParameterMutator) ClearMinItems() *ParameterMutator
- func (m *ParameterMutator) ClearMinLength() *ParameterMutator
- func (m *ParameterMutator) ClearMinimum() *ParameterMutator
- func (m *ParameterMutator) ClearMultipleOf() *ParameterMutator
- func (m *ParameterMutator) ClearUniqueItems() *ParameterMutator
- func (m *ParameterMutator) CollectionFormat(v CollectionFormat) *ParameterMutator
- func (m *ParameterMutator) Default(v interface{}) *ParameterMutator
- func (m *ParameterMutator) Description(v string) *ParameterMutator
- func (m *ParameterMutator) Enum(value interface{}) *ParameterMutator
- func (m *ParameterMutator) ExclusiveMaximum(v float64) *ParameterMutator
- func (m *ParameterMutator) ExclusiveMinimum(v float64) *ParameterMutator
- func (m *ParameterMutator) Extension(name string, value interface{}) *ParameterMutator
- func (m *ParameterMutator) Format(v string) *ParameterMutator
- func (m *ParameterMutator) In(v Location) *ParameterMutator
- func (m *ParameterMutator) Items(v Items) *ParameterMutator
- func (m *ParameterMutator) MaxItems(v int) *ParameterMutator
- func (m *ParameterMutator) MaxLength(v int) *ParameterMutator
- func (m *ParameterMutator) Maximum(v float64) *ParameterMutator
- func (m *ParameterMutator) MinItems(v int) *ParameterMutator
- func (m *ParameterMutator) MinLength(v int) *ParameterMutator
- func (m *ParameterMutator) Minimum(v float64) *ParameterMutator
- func (m *ParameterMutator) MultipleOf(v float64) *ParameterMutator
- func (m *ParameterMutator) Name(v string) *ParameterMutator
- func (m *ParameterMutator) Pattern(v string) *ParameterMutator
- func (m *ParameterMutator) Required(v bool) *ParameterMutator
- func (m *ParameterMutator) Schema(v Schema) *ParameterMutator
- func (m *ParameterMutator) Title(v string) *ParameterMutator
- func (m *ParameterMutator) Type(v PrimitiveType) *ParameterMutator
- func (m *ParameterMutator) UniqueItems(v bool) *ParameterMutator
- type ParameterVisitor
- type PathItem
- type PathItemBuilder
- func (b *PathItemBuilder) Build(options ...Option) (PathItem, error)
- func (b *PathItemBuilder) Delete(v Operation) *PathItemBuilder
- func (b *PathItemBuilder) Extension(name string, value interface{}) *PathItemBuilder
- func (b *PathItemBuilder) Get(oper Operation) *PathItemBuilder
- func (b *PathItemBuilder) Head(v Operation) *PathItemBuilder
- func (b *PathItemBuilder) MustBuild(options ...Option) PathItem
- func (b *PathItemBuilder) Options(v Operation) *PathItemBuilder
- func (b *PathItemBuilder) Parameters(v ...Parameter) *PathItemBuilder
- func (b *PathItemBuilder) Patch(v Operation) *PathItemBuilder
- func (b *PathItemBuilder) Post(v Operation) *PathItemBuilder
- func (b *PathItemBuilder) Put(v Operation) *PathItemBuilder
- func (b *PathItemBuilder) Reference(v string) *PathItemBuilder
- type PathItemListIterator
- type PathItemMap
- type PathItemMapIterator
- type PathItemMapKey
- type PathItemMutator
- func (m *PathItemMutator) Apply() error
- func (m *PathItemMutator) ClearParameters() *PathItemMutator
- func (m *PathItemMutator) Delete(v Operation) *PathItemMutator
- func (m *PathItemMutator) Extension(name string, value interface{}) *PathItemMutator
- func (m *PathItemMutator) Get(v Operation) *PathItemMutator
- func (m *PathItemMutator) Head(v Operation) *PathItemMutator
- func (m *PathItemMutator) Options(v Operation) *PathItemMutator
- func (m *PathItemMutator) Parameter(value Parameter) *PathItemMutator
- func (m *PathItemMutator) Patch(v Operation) *PathItemMutator
- func (m *PathItemMutator) Post(v Operation) *PathItemMutator
- func (m *PathItemMutator) Put(v Operation) *PathItemMutator
- func (m *PathItemMutator) Trace(v Operation) *PathItemMutator
- type PathItemVisitor
- type Paths
- type PathsBuilder
- func (b *PathsBuilder) Build(options ...Option) (Paths, error)
- func (b *PathsBuilder) Extension(name string, value interface{}) *PathsBuilder
- func (b *PathsBuilder) MustBuild(options ...Option) Paths
- func (b *PathsBuilder) Path(path string, item PathItem) *PathsBuilder
- func (b *PathsBuilder) Paths(v PathItemMap) *PathsBuilder
- func (b *PathsBuilder) Reference(v string) *PathsBuilder
- type PathsMutator
- type PathsVisitor
- type PrimitiveType
- type QueryJSONer
- type ResolveError
- type Resolver
- type Response
- type ResponseBuilder
- func (b *ResponseBuilder) Build(options ...Option) (Response, error)
- func (b *ResponseBuilder) Examples(v ExampleMap) *ResponseBuilder
- func (b *ResponseBuilder) Extension(name string, value interface{}) *ResponseBuilder
- func (b *ResponseBuilder) Headers(v HeaderMap) *ResponseBuilder
- func (b *ResponseBuilder) MustBuild(options ...Option) Response
- func (b *ResponseBuilder) Name(v string) *ResponseBuilder
- func (b *ResponseBuilder) Reference(v string) *ResponseBuilder
- func (b *ResponseBuilder) Schema(v Schema) *ResponseBuilder
- func (b *ResponseBuilder) StatusCode(v string) *ResponseBuilder
- type ResponseMap
- type ResponseMapIterator
- type ResponseMapKey
- type ResponseMutator
- func (m *ResponseMutator) Apply() error
- func (m *ResponseMutator) ClearExamples() *ResponseMutator
- func (m *ResponseMutator) ClearHeaders() *ResponseMutator
- func (m *ResponseMutator) Description(v string) *ResponseMutator
- func (m *ResponseMutator) Example(key ExampleMapKey, value interface{}) *ResponseMutator
- func (m *ResponseMutator) Extension(name string, value interface{}) *ResponseMutator
- func (m *ResponseMutator) Header(key HeaderMapKey, value Header) *ResponseMutator
- func (m *ResponseMutator) Name(v string) *ResponseMutator
- func (m *ResponseMutator) Schema(v Schema) *ResponseMutator
- func (m *ResponseMutator) StatusCode(v string) *ResponseMutator
- type ResponseVisitor
- type Responses
- type ResponsesBuilder
- func (b *ResponsesBuilder) Build(options ...Option) (Responses, error)
- func (b *ResponsesBuilder) Default(v Response) *ResponsesBuilder
- func (b *ResponsesBuilder) Extension(name string, value interface{}) *ResponsesBuilder
- func (b *ResponsesBuilder) MustBuild(options ...Option) Responses
- func (b *ResponsesBuilder) Reference(v string) *ResponsesBuilder
- func (b *ResponsesBuilder) Response(code string, v Response) *ResponsesBuilder
- func (b *ResponsesBuilder) Responses(v ResponseMap) *ResponsesBuilder
- type ResponsesMutator
- type ResponsesVisitor
- type Schema
- type SchemaBuilder
- func (b *SchemaBuilder) AdditionaProperties(v SchemaMap) *SchemaBuilder
- func (b *SchemaBuilder) AllOf(v ...Schema) *SchemaBuilder
- func (b *SchemaBuilder) Build(options ...Option) (Schema, error)
- func (b *SchemaBuilder) Default(v interface{}) *SchemaBuilder
- func (b *SchemaBuilder) Deprecated(v bool) *SchemaBuilder
- func (b *SchemaBuilder) Discriminator(v string) *SchemaBuilder
- func (b *SchemaBuilder) Enum(v ...interface{}) *SchemaBuilder
- func (b *SchemaBuilder) Example(v interface{}) *SchemaBuilder
- func (b *SchemaBuilder) ExclusiveMaximum(v float64) *SchemaBuilder
- func (b *SchemaBuilder) ExclusiveMinimum(v float64) *SchemaBuilder
- func (b *SchemaBuilder) Extension(name string, value interface{}) *SchemaBuilder
- func (b *SchemaBuilder) ExternalDocs(v ExternalDocumentation) *SchemaBuilder
- func (b *SchemaBuilder) Format(v string) *SchemaBuilder
- func (b *SchemaBuilder) Items(v Schema) *SchemaBuilder
- func (b *SchemaBuilder) MaxItems(v int) *SchemaBuilder
- func (b *SchemaBuilder) MaxLength(v int) *SchemaBuilder
- func (b *SchemaBuilder) MaxProperties(v int) *SchemaBuilder
- func (b *SchemaBuilder) Maximum(v float64) *SchemaBuilder
- func (b *SchemaBuilder) MinItems(v int) *SchemaBuilder
- func (b *SchemaBuilder) MinLength(v int) *SchemaBuilder
- func (b *SchemaBuilder) MinProperties(v int) *SchemaBuilder
- func (b *SchemaBuilder) Minimum(v float64) *SchemaBuilder
- func (b *SchemaBuilder) MultipleOf(v float64) *SchemaBuilder
- func (b *SchemaBuilder) MustBuild(options ...Option) Schema
- func (b *SchemaBuilder) Pattern(v string) *SchemaBuilder
- func (b *SchemaBuilder) Property(name string, prop Schema) *SchemaBuilder
- func (b *SchemaBuilder) ReadOnly(v bool) *SchemaBuilder
- func (b *SchemaBuilder) Reference(v string) *SchemaBuilder
- func (b *SchemaBuilder) Required(v ...string) *SchemaBuilder
- func (b *SchemaBuilder) Title(v string) *SchemaBuilder
- func (b *SchemaBuilder) Type(v PrimitiveType) *SchemaBuilder
- func (b *SchemaBuilder) UniqueItems(v bool) *SchemaBuilder
- func (b *SchemaBuilder) XML(v XML) *SchemaBuilder
- type SchemaConverter
- type SchemaList
- type SchemaListIterator
- type SchemaMap
- type SchemaMapIterator
- type SchemaMapKey
- type SchemaMutator
- func (m *SchemaMutator) AdditionaProperty(key SchemaMapKey, value Schema) *SchemaMutator
- func (m *SchemaMutator) AllOf(value Schema) *SchemaMutator
- func (m *SchemaMutator) Apply() error
- func (m *SchemaMutator) ClearAdditionaProperties() *SchemaMutator
- func (m *SchemaMutator) ClearAllOf() *SchemaMutator
- func (m *SchemaMutator) ClearEnum() *SchemaMutator
- func (m *SchemaMutator) ClearExclusiveMaximum() *SchemaMutator
- func (m *SchemaMutator) ClearExclusiveMinimum() *SchemaMutator
- func (m *SchemaMutator) ClearMaxItems() *SchemaMutator
- func (m *SchemaMutator) ClearMaxLength() *SchemaMutator
- func (m *SchemaMutator) ClearMaxProperties() *SchemaMutator
- func (m *SchemaMutator) ClearMaximum() *SchemaMutator
- func (m *SchemaMutator) ClearMinItems() *SchemaMutator
- func (m *SchemaMutator) ClearMinLength() *SchemaMutator
- func (m *SchemaMutator) ClearMinProperties() *SchemaMutator
- func (m *SchemaMutator) ClearMinimum() *SchemaMutator
- func (m *SchemaMutator) ClearMultipleOf() *SchemaMutator
- func (m *SchemaMutator) ClearProperties() *SchemaMutator
- func (m *SchemaMutator) ClearRequired() *SchemaMutator
- func (m *SchemaMutator) ClearUniqueItems() *SchemaMutator
- func (m *SchemaMutator) Default(v interface{}) *SchemaMutator
- func (m *SchemaMutator) Deprecated(v bool) *SchemaMutator
- func (m *SchemaMutator) Discriminator(v string) *SchemaMutator
- func (m *SchemaMutator) Enum(value interface{}) *SchemaMutator
- func (m *SchemaMutator) Example(v interface{}) *SchemaMutator
- func (m *SchemaMutator) ExclusiveMaximum(v float64) *SchemaMutator
- func (m *SchemaMutator) ExclusiveMinimum(v float64) *SchemaMutator
- func (m *SchemaMutator) Extension(name string, value interface{}) *SchemaMutator
- func (m *SchemaMutator) ExternalDocs(v ExternalDocumentation) *SchemaMutator
- func (m *SchemaMutator) Format(v string) *SchemaMutator
- func (m *SchemaMutator) Items(v Schema) *SchemaMutator
- func (m *SchemaMutator) MaxItems(v int) *SchemaMutator
- func (m *SchemaMutator) MaxLength(v int) *SchemaMutator
- func (m *SchemaMutator) MaxProperties(v int) *SchemaMutator
- func (m *SchemaMutator) Maximum(v float64) *SchemaMutator
- func (m *SchemaMutator) MinItems(v int) *SchemaMutator
- func (m *SchemaMutator) MinLength(v int) *SchemaMutator
- func (m *SchemaMutator) MinProperties(v int) *SchemaMutator
- func (m *SchemaMutator) Minimum(v float64) *SchemaMutator
- func (m *SchemaMutator) MultipleOf(v float64) *SchemaMutator
- func (m *SchemaMutator) Name(v string) *SchemaMutator
- func (m *SchemaMutator) Pattern(v string) *SchemaMutator
- func (m *SchemaMutator) Property(key SchemaMapKey, value Schema) *SchemaMutator
- func (m *SchemaMutator) ReadOnly(v bool) *SchemaMutator
- func (m *SchemaMutator) Required(value string) *SchemaMutator
- func (m *SchemaMutator) Title(v string) *SchemaMutator
- func (m *SchemaMutator) Type(v PrimitiveType) *SchemaMutator
- func (m *SchemaMutator) UniqueItems(v bool) *SchemaMutator
- func (m *SchemaMutator) XML(v XML) *SchemaMutator
- type SchemaVisitor
- type Scheme
- type SchemeList
- type SchemeListIterator
- type ScopesMap
- type ScopesMapIterator
- type ScopesMapKey
- type SecurityRequirement
- type SecurityRequirementBuilder
- func (b *SecurityRequirementBuilder) Build(options ...Option) (SecurityRequirement, error)
- func (b *SecurityRequirementBuilder) Extension(name string, value interface{}) *SecurityRequirementBuilder
- func (b *SecurityRequirementBuilder) MustBuild(options ...Option) SecurityRequirement
- func (b *SecurityRequirementBuilder) Name(v string) *SecurityRequirementBuilder
- func (b *SecurityRequirementBuilder) Reference(v string) *SecurityRequirementBuilder
- type SecurityRequirementList
- type SecurityRequirementListIterator
- type SecurityRequirementMutator
- type SecurityRequirementVisitor
- type SecurityScheme
- type SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) AuthorizationURL(v string) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) Build(options ...Option) (SecurityScheme, error)
- func (b *SecuritySchemeBuilder) Description(v string) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) Extension(name string, value interface{}) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) Flow(v string) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) In(v string) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) MustBuild(options ...Option) SecurityScheme
- func (b *SecuritySchemeBuilder) Name(v string) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) Reference(v string) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) Scopes(v StringMap) *SecuritySchemeBuilder
- func (b *SecuritySchemeBuilder) TokenURL(v string) *SecuritySchemeBuilder
- type SecuritySchemeMap
- type SecuritySchemeMapIterator
- type SecuritySchemeMapKey
- type SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Apply() error
- func (m *SecuritySchemeMutator) AuthorizationURL(v string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) ClearScopes() *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Description(v string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Extension(name string, value interface{}) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Flow(v string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) In(v string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Name(v string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Scope(key StringMapKey, value string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) TokenURL(v string) *SecuritySchemeMutator
- func (m *SecuritySchemeMutator) Type(v string) *SecuritySchemeMutator
- type SecuritySchemeVisitor
- type SliceQueryJSON
- type StringList
- type StringListIterator
- type StringListListIterator
- type StringMap
- type StringMapIterator
- type StringMapKey
- type Swagger
- type SwaggerBuilder
- func (b *SwaggerBuilder) BasePath(v string) *SwaggerBuilder
- func (b *SwaggerBuilder) Build(options ...Option) (Swagger, error)
- func (b *SwaggerBuilder) Consumes(v ...MIMEType) *SwaggerBuilder
- func (b *SwaggerBuilder) Definitions(v InterfaceMap) *SwaggerBuilder
- func (b *SwaggerBuilder) Extension(name string, value interface{}) *SwaggerBuilder
- func (b *SwaggerBuilder) ExternalDocs(v ExternalDocumentation) *SwaggerBuilder
- func (b *SwaggerBuilder) Host(v string) *SwaggerBuilder
- func (b *SwaggerBuilder) MustBuild(options ...Option) Swagger
- func (b *SwaggerBuilder) Parameters(v ParameterMap) *SwaggerBuilder
- func (b *SwaggerBuilder) Produces(v ...MIMEType) *SwaggerBuilder
- func (b *SwaggerBuilder) Reference(v string) *SwaggerBuilder
- func (b *SwaggerBuilder) Responses(v ResponseMap) *SwaggerBuilder
- func (b *SwaggerBuilder) Schemes(v ...Scheme) *SwaggerBuilder
- func (b *SwaggerBuilder) Security(v ...SecurityRequirement) *SwaggerBuilder
- func (b *SwaggerBuilder) SecurityDefinitions(v SecuritySchemeMap) *SwaggerBuilder
- func (b *SwaggerBuilder) Tags(v ...Tag) *SwaggerBuilder
- type SwaggerMutator
- func (m *SwaggerMutator) Apply() error
- func (m *SwaggerMutator) BasePath(v string) *SwaggerMutator
- func (m *SwaggerMutator) ClearConsumes() *SwaggerMutator
- func (m *SwaggerMutator) ClearDefinitions() *SwaggerMutator
- func (m *SwaggerMutator) ClearParameters() *SwaggerMutator
- func (m *SwaggerMutator) ClearProduces() *SwaggerMutator
- func (m *SwaggerMutator) ClearResponses() *SwaggerMutator
- func (m *SwaggerMutator) ClearSchemes() *SwaggerMutator
- func (m *SwaggerMutator) ClearSecurity() *SwaggerMutator
- func (m *SwaggerMutator) ClearSecurityDefinitions() *SwaggerMutator
- func (m *SwaggerMutator) ClearTags() *SwaggerMutator
- func (m *SwaggerMutator) Consume(value string) *SwaggerMutator
- func (m *SwaggerMutator) Definition(key InterfaceMapKey, value interface{}) *SwaggerMutator
- func (m *SwaggerMutator) Extension(name string, value interface{}) *SwaggerMutator
- func (m *SwaggerMutator) ExternalDocs(v ExternalDocumentation) *SwaggerMutator
- func (m *SwaggerMutator) Host(v string) *SwaggerMutator
- func (m *SwaggerMutator) Info(v Info) *SwaggerMutator
- func (m *SwaggerMutator) Parameter(key ParameterMapKey, value Parameter) *SwaggerMutator
- func (m *SwaggerMutator) Paths(v Paths) *SwaggerMutator
- func (m *SwaggerMutator) Produce(value string) *SwaggerMutator
- func (m *SwaggerMutator) Response(key ResponseMapKey, value Response) *SwaggerMutator
- func (m *SwaggerMutator) Scheme(value string) *SwaggerMutator
- func (m *SwaggerMutator) Security(value SecurityRequirement) *SwaggerMutator
- func (m *SwaggerMutator) SecurityDefinition(key SecuritySchemeMapKey, value SecurityScheme) *SwaggerMutator
- func (m *SwaggerMutator) Tag(value Tag) *SwaggerMutator
- func (m *SwaggerMutator) Version(v string) *SwaggerMutator
- type SwaggerVisitor
- type Tag
- type TagBuilder
- func (b *TagBuilder) Build(options ...Option) (Tag, error)
- func (b *TagBuilder) Description(v string) *TagBuilder
- func (b *TagBuilder) Extension(name string, value interface{}) *TagBuilder
- func (b *TagBuilder) ExternalDocs(v ExternalDocumentation) *TagBuilder
- func (b *TagBuilder) MustBuild(options ...Option) Tag
- func (b *TagBuilder) Reference(v string) *TagBuilder
- type TagList
- type TagListIterator
- type TagMutator
- type TagVisitor
- type Validator
- type XML
- type XMLBuilder
- func (b *XMLBuilder) Attribute(v bool) *XMLBuilder
- func (b *XMLBuilder) Build(options ...Option) (XML, error)
- func (b *XMLBuilder) Extension(name string, value interface{}) *XMLBuilder
- func (b *XMLBuilder) MustBuild(options ...Option) XML
- func (b *XMLBuilder) Name(v string) *XMLBuilder
- func (b *XMLBuilder) Namespace(v string) *XMLBuilder
- func (b *XMLBuilder) Prefix(v string) *XMLBuilder
- func (b *XMLBuilder) Reference(v string) *XMLBuilder
- func (b *XMLBuilder) Wrapped(v bool) *XMLBuilder
- type XMLMutator
- func (m *XMLMutator) Apply() error
- func (m *XMLMutator) Attribute(v bool) *XMLMutator
- func (m *XMLMutator) Extension(name string, value interface{}) *XMLMutator
- func (m *XMLMutator) Name(v string) *XMLMutator
- func (m *XMLMutator) Namespace(v string) *XMLMutator
- func (m *XMLMutator) Prefix(v string) *XMLMutator
- func (m *XMLMutator) Wrapped(v bool) *XMLMutator
- type XMLVisitor
Constants ¶
const ( Int32 = "int32" Int64 = "int64" Float = "float" Double = "double" )
Variables ¶
var ErrVisitAbort = errors.New(`visit aborted (non-error)`)
Functions ¶
func ContactFromJSON ¶
ContactFromJSON constructs a Contact from JSON buffer. `dst` must be a pointer to `Contact`
func ExternalDocumentationFromJSON ¶
ExternalDocumentationFromJSON constructs a ExternalDocumentation from JSON buffer. `dst` must be a pointer to `ExternalDocumentation`
func HeaderFromJSON ¶
HeaderFromJSON constructs a Header from JSON buffer. `dst` must be a pointer to `Header`
func InfoFromJSON ¶
InfoFromJSON constructs a Info from JSON buffer. `dst` must be a pointer to `Info`
func ItemsFromJSON ¶
ItemsFromJSON constructs a Items from JSON buffer. `dst` must be a pointer to `Items`
func LicenseFromJSON ¶
LicenseFromJSON constructs a License from JSON buffer. `dst` must be a pointer to `License`
func OperationFromJSON ¶
OperationFromJSON constructs a Operation from JSON buffer. `dst` must be a pointer to `Operation`
func ParameterFromJSON ¶
ParameterFromJSON constructs a Parameter from JSON buffer. `dst` must be a pointer to `Parameter`
func PathItemFromJSON ¶
PathItemFromJSON constructs a PathItem from JSON buffer. `dst` must be a pointer to `PathItem`
func PathsFromJSON ¶
PathsFromJSON constructs a Paths from JSON buffer. `dst` must be a pointer to `Paths`
func ResponseFromJSON ¶
ResponseFromJSON constructs a Response from JSON buffer. `dst` must be a pointer to `Response`
func ResponsesFromJSON ¶
ResponsesFromJSON constructs a Responses from JSON buffer. `dst` must be a pointer to `Responses`
func SchemaFromJSON ¶
SchemaFromJSON constructs a Schema from JSON buffer. `dst` must be a pointer to `Schema`
func SecurityRequirementFromJSON ¶
SecurityRequirementFromJSON constructs a SecurityRequirement from JSON buffer. `dst` must be a pointer to `SecurityRequirement`
func SecuritySchemeFromJSON ¶
SecuritySchemeFromJSON constructs a SecurityScheme from JSON buffer. `dst` must be a pointer to `SecurityScheme`
func SwaggerFromJSON ¶
SwaggerFromJSON constructs a Swagger from JSON buffer. `dst` must be a pointer to `Swagger`
func TagFromJSON ¶
TagFromJSON constructs a Tag from JSON buffer. `dst` must be a pointer to `Tag`
func XMLFromJSON ¶
XMLFromJSON constructs a XML from JSON buffer. `dst` must be a pointer to `XML`
Types ¶
type CollectionFormat ¶
type CollectionFormat string
const ( CSV CollectionFormat = "csv" SSV CollectionFormat = "ssv" TSV CollectionFormat = "tsv" Pipes CollectionFormat = "pipes" Multi CollectionFormat = "multi" )
type ContactBuilder ¶
type ContactBuilder struct {
// contains filtered or unexported fields
}
ContactBuilder is used to build an instance of Contact. The user must call `Build()` after providing all the necessary information to build an instance of Contact. Builders may NOT be reused. It must be created for every instance of Contact that you want to create
func NewContact ¶
func NewContact(options ...Option) *ContactBuilder
NewContact creates a new builder object for Contact
func (*ContactBuilder) Build ¶
func (b *ContactBuilder) Build(options ...Option) (Contact, error)
Build finalizes the building process for Contact and returns the result By default, Build() will validate if the given structure is valid
func (*ContactBuilder) Email ¶
func (b *ContactBuilder) Email(v string) *ContactBuilder
Email sets the email field for object Contact.
func (*ContactBuilder) Extension ¶
func (b *ContactBuilder) Extension(name string, value interface{}) *ContactBuilder
Extension sets an arbitrary element (an extension) to the object Contact. The extension name should start with a "x-"
func (*ContactBuilder) MustBuild ¶
func (b *ContactBuilder) MustBuild(options ...Option) Contact
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*ContactBuilder) Name ¶
func (b *ContactBuilder) Name(v string) *ContactBuilder
Name sets the name field for object Contact.
func (*ContactBuilder) Reference ¶
func (b *ContactBuilder) Reference(v string) *ContactBuilder
Reference sets the $ref (reference) field for object Contact.
func (*ContactBuilder) URL ¶
func (b *ContactBuilder) URL(v string) *ContactBuilder
URL sets the url field for object Contact.
type ContactMutator ¶
type ContactMutator struct {
// contains filtered or unexported fields
}
ContactMutator is used to build an instance of Contact. The user must call `Apply()` after providing all the necessary information to the new instance of Contact with new values
func MutateContact ¶
func MutateContact(v Contact, options ...Option) *ContactMutator
MutateContact creates a new mutator object for Contact Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*ContactMutator) Apply ¶
func (m *ContactMutator) Apply() error
Apply finalizes the matuation process for Contact and returns the result
func (*ContactMutator) Email ¶
func (m *ContactMutator) Email(v string) *ContactMutator
Email sets the Email field for object Contact.
func (*ContactMutator) Extension ¶
func (m *ContactMutator) Extension(name string, value interface{}) *ContactMutator
Extension sets an arbitrary extension field in Contact
func (*ContactMutator) Name ¶
func (m *ContactMutator) Name(v string) *ContactMutator
Name sets the Name field for object Contact.
func (*ContactMutator) URL ¶
func (m *ContactMutator) URL(v string) *ContactMutator
URL sets the URL field for object Contact.
type ContactVisitor ¶
ContactVisitor is an interface for objects that knows how to process Contact elements while traversing the OpenAPI structure
type ExampleMap ¶
type ExampleMap map[ExampleMapKey]interface{}
func (*ExampleMap) Clear ¶
func (v *ExampleMap) Clear() error
Clear removes all elements from ExampleMap
func (ExampleMap) QueryJSON ¶
func (v ExampleMap) QueryJSON(path string) (ret interface{}, ok bool)
QueryJSON is used to query an element within the document Using jsonref
func (*ExampleMap) Validate ¶
func (v *ExampleMap) Validate(recurse bool) error
Validate checks the correctness of values in ExampleMap
type ExampleMapIterator ¶
type ExampleMapIterator struct {
// contains filtered or unexported fields
}
func (*ExampleMapIterator) Item ¶
func (iter *ExampleMapIterator) Item() (string, interface{})
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ExampleMapKey ¶
type ExampleMapKey = string
type Extensions ¶
type Extensions map[string]interface{}
type ExtensionsIterator ¶
type ExtensionsIterator struct {
// contains filtered or unexported fields
}
func (*ExtensionsIterator) Item ¶
func (iter *ExtensionsIterator) Item() (string, interface{})
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ExternalDocumentation ¶
type ExternalDocumentationBuilder ¶
type ExternalDocumentationBuilder struct {
// contains filtered or unexported fields
}
ExternalDocumentationBuilder is used to build an instance of ExternalDocumentation. The user must call `Build()` after providing all the necessary information to build an instance of ExternalDocumentation. Builders may NOT be reused. It must be created for every instance of ExternalDocumentation that you want to create
func NewExternalDocumentation ¶
func NewExternalDocumentation(url string, options ...Option) *ExternalDocumentationBuilder
NewExternalDocumentation creates a new builder object for ExternalDocumentation
func (*ExternalDocumentationBuilder) Build ¶
func (b *ExternalDocumentationBuilder) Build(options ...Option) (ExternalDocumentation, error)
Build finalizes the building process for ExternalDocumentation and returns the result By default, Build() will validate if the given structure is valid
func (*ExternalDocumentationBuilder) Description ¶
func (b *ExternalDocumentationBuilder) Description(v string) *ExternalDocumentationBuilder
Description sets the description field for object ExternalDocumentation.
func (*ExternalDocumentationBuilder) Extension ¶
func (b *ExternalDocumentationBuilder) Extension(name string, value interface{}) *ExternalDocumentationBuilder
Extension sets an arbitrary element (an extension) to the object ExternalDocumentation. The extension name should start with a "x-"
func (*ExternalDocumentationBuilder) MustBuild ¶
func (b *ExternalDocumentationBuilder) MustBuild(options ...Option) ExternalDocumentation
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*ExternalDocumentationBuilder) Reference ¶
func (b *ExternalDocumentationBuilder) Reference(v string) *ExternalDocumentationBuilder
Reference sets the $ref (reference) field for object ExternalDocumentation.
type ExternalDocumentationMutator ¶
type ExternalDocumentationMutator struct {
// contains filtered or unexported fields
}
ExternalDocumentationMutator is used to build an instance of ExternalDocumentation. The user must call `Apply()` after providing all the necessary information to the new instance of ExternalDocumentation with new values
func MutateExternalDocumentation ¶
func MutateExternalDocumentation(v ExternalDocumentation, options ...Option) *ExternalDocumentationMutator
MutateExternalDocumentation creates a new mutator object for ExternalDocumentation Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*ExternalDocumentationMutator) Apply ¶
func (m *ExternalDocumentationMutator) Apply() error
Apply finalizes the matuation process for ExternalDocumentation and returns the result
func (*ExternalDocumentationMutator) Description ¶
func (m *ExternalDocumentationMutator) Description(v string) *ExternalDocumentationMutator
Description sets the Description field for object ExternalDocumentation.
func (*ExternalDocumentationMutator) Extension ¶
func (m *ExternalDocumentationMutator) Extension(name string, value interface{}) *ExternalDocumentationMutator
Extension sets an arbitrary extension field in ExternalDocumentation
func (*ExternalDocumentationMutator) URL ¶
func (m *ExternalDocumentationMutator) URL(v string) *ExternalDocumentationMutator
URL sets the URL field for object ExternalDocumentation.
type ExternalDocumentationVisitor ¶
type ExternalDocumentationVisitor interface {
VisitExternalDocumentation(context.Context, ExternalDocumentation) error
}
ExternalDocumentationVisitor is an interface for objects that knows how to process ExternalDocumentation elements while traversing the OpenAPI structure
type Header ¶
type Header interface { Name() string Description() string Type() string Format() string Items() Items CollectionFormat() CollectionFormat Default() interface{} Maximum() float64 ExclusiveMaximum() float64 Minimum() float64 ExclusiveMinimum() float64 MaxLength() int MinLength() int Pattern() string MaxItems() int MinItems() int UniqueItems() bool Enum() *InterfaceListIterator MultipleOf() float64 Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Header IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator }
type HeaderBuilder ¶
type HeaderBuilder struct {
// contains filtered or unexported fields
}
HeaderBuilder is used to build an instance of Header. The user must call `Build()` after providing all the necessary information to build an instance of Header. Builders may NOT be reused. It must be created for every instance of Header that you want to create
func NewHeader ¶
func NewHeader(typ string, options ...Option) *HeaderBuilder
NewHeader creates a new builder object for Header
func (*HeaderBuilder) Build ¶
func (b *HeaderBuilder) Build(options ...Option) (Header, error)
Build finalizes the building process for Header and returns the result By default, Build() will validate if the given structure is valid
func (*HeaderBuilder) CollectionFormat ¶
func (b *HeaderBuilder) CollectionFormat(v CollectionFormat) *HeaderBuilder
CollectionFormat sets the collectionFormat field for object Header.
func (*HeaderBuilder) Default ¶
func (b *HeaderBuilder) Default(v interface{}) *HeaderBuilder
Default sets the defaultValue field for object Header.
func (*HeaderBuilder) Description ¶
func (b *HeaderBuilder) Description(v string) *HeaderBuilder
Description sets the description field for object Header.
func (*HeaderBuilder) Enum ¶
func (b *HeaderBuilder) Enum(v ...interface{}) *HeaderBuilder
Enum sets the enum field for object Header.
func (*HeaderBuilder) ExclusiveMaximum ¶
func (b *HeaderBuilder) ExclusiveMaximum(v float64) *HeaderBuilder
ExclusiveMaximum sets the exclusiveMaximum field for object Header.
func (*HeaderBuilder) ExclusiveMinimum ¶
func (b *HeaderBuilder) ExclusiveMinimum(v float64) *HeaderBuilder
ExclusiveMinimum sets the exclusiveMinimum field for object Header.
func (*HeaderBuilder) Extension ¶
func (b *HeaderBuilder) Extension(name string, value interface{}) *HeaderBuilder
Extension sets an arbitrary element (an extension) to the object Header. The extension name should start with a "x-"
func (*HeaderBuilder) Format ¶
func (b *HeaderBuilder) Format(v string) *HeaderBuilder
Format sets the format field for object Header.
func (*HeaderBuilder) Items ¶
func (b *HeaderBuilder) Items(v Items) *HeaderBuilder
Items sets the items field for object Header.
func (*HeaderBuilder) MaxItems ¶
func (b *HeaderBuilder) MaxItems(v int) *HeaderBuilder
MaxItems sets the maxItems field for object Header.
func (*HeaderBuilder) MaxLength ¶
func (b *HeaderBuilder) MaxLength(v int) *HeaderBuilder
MaxLength sets the maxLength field for object Header.
func (*HeaderBuilder) Maximum ¶
func (b *HeaderBuilder) Maximum(v float64) *HeaderBuilder
Maximum sets the maximum field for object Header.
func (*HeaderBuilder) MinItems ¶
func (b *HeaderBuilder) MinItems(v int) *HeaderBuilder
MinItems sets the minItems field for object Header.
func (*HeaderBuilder) MinLength ¶
func (b *HeaderBuilder) MinLength(v int) *HeaderBuilder
MinLength sets the minLength field for object Header.
func (*HeaderBuilder) Minimum ¶
func (b *HeaderBuilder) Minimum(v float64) *HeaderBuilder
Minimum sets the minimum field for object Header.
func (*HeaderBuilder) MultipleOf ¶
func (b *HeaderBuilder) MultipleOf(v float64) *HeaderBuilder
MultipleOf sets the multipleOf field for object Header.
func (*HeaderBuilder) MustBuild ¶
func (b *HeaderBuilder) MustBuild(options ...Option) Header
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*HeaderBuilder) Name ¶
func (b *HeaderBuilder) Name(v string) *HeaderBuilder
Name sets the name field for object Header.
func (*HeaderBuilder) Pattern ¶
func (b *HeaderBuilder) Pattern(v string) *HeaderBuilder
Pattern sets the pattern field for object Header.
func (*HeaderBuilder) Reference ¶
func (b *HeaderBuilder) Reference(v string) *HeaderBuilder
Reference sets the $ref (reference) field for object Header.
func (*HeaderBuilder) UniqueItems ¶
func (b *HeaderBuilder) UniqueItems(v bool) *HeaderBuilder
UniqueItems sets the uniqueItems field for object Header.
type HeaderMap ¶
type HeaderMap map[HeaderMapKey]Header
func (HeaderMap) QueryJSON ¶
QueryJSON is used to query an element within the document Using jsonref
func (*HeaderMap) UnmarshalJSON ¶
UnmarshalJSON takes a JSON buffer and properly populates `v`
type HeaderMapIterator ¶
type HeaderMapIterator struct {
// contains filtered or unexported fields
}
func (*HeaderMapIterator) Item ¶
func (iter *HeaderMapIterator) Item() (string, Header)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type HeaderMapKey ¶
type HeaderMapKey = string
type HeaderMutator ¶
type HeaderMutator struct {
// contains filtered or unexported fields
}
HeaderMutator is used to build an instance of Header. The user must call `Apply()` after providing all the necessary information to the new instance of Header with new values
func MutateHeader ¶
func MutateHeader(v Header, options ...Option) *HeaderMutator
MutateHeader creates a new mutator object for Header Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*HeaderMutator) Apply ¶
func (m *HeaderMutator) Apply() error
Apply finalizes the matuation process for Header and returns the result
func (*HeaderMutator) ClearEnum ¶
func (m *HeaderMutator) ClearEnum() *HeaderMutator
ClearEnum clears all elements in enum
func (*HeaderMutator) CollectionFormat ¶
func (m *HeaderMutator) CollectionFormat(v CollectionFormat) *HeaderMutator
CollectionFormat sets the CollectionFormat field for object Header.
func (*HeaderMutator) Default ¶
func (m *HeaderMutator) Default(v interface{}) *HeaderMutator
Default sets the Default field for object Header.
func (*HeaderMutator) Description ¶
func (m *HeaderMutator) Description(v string) *HeaderMutator
Description sets the Description field for object Header.
func (*HeaderMutator) Enum ¶
func (m *HeaderMutator) Enum(value interface{}) *HeaderMutator
Enum appends a value to enum
func (*HeaderMutator) ExclusiveMaximum ¶
func (m *HeaderMutator) ExclusiveMaximum(v float64) *HeaderMutator
ExclusiveMaximum sets the ExclusiveMaximum field for object Header.
func (*HeaderMutator) ExclusiveMinimum ¶
func (m *HeaderMutator) ExclusiveMinimum(v float64) *HeaderMutator
ExclusiveMinimum sets the ExclusiveMinimum field for object Header.
func (*HeaderMutator) Extension ¶
func (m *HeaderMutator) Extension(name string, value interface{}) *HeaderMutator
Extension sets an arbitrary extension field in Header
func (*HeaderMutator) Format ¶
func (m *HeaderMutator) Format(v string) *HeaderMutator
Format sets the Format field for object Header.
func (*HeaderMutator) Items ¶
func (m *HeaderMutator) Items(v Items) *HeaderMutator
Items sets the Items field for object Header.
func (*HeaderMutator) MaxItems ¶
func (m *HeaderMutator) MaxItems(v int) *HeaderMutator
MaxItems sets the MaxItems field for object Header.
func (*HeaderMutator) MaxLength ¶
func (m *HeaderMutator) MaxLength(v int) *HeaderMutator
MaxLength sets the MaxLength field for object Header.
func (*HeaderMutator) Maximum ¶
func (m *HeaderMutator) Maximum(v float64) *HeaderMutator
Maximum sets the Maximum field for object Header.
func (*HeaderMutator) MinItems ¶
func (m *HeaderMutator) MinItems(v int) *HeaderMutator
MinItems sets the MinItems field for object Header.
func (*HeaderMutator) MinLength ¶
func (m *HeaderMutator) MinLength(v int) *HeaderMutator
MinLength sets the MinLength field for object Header.
func (*HeaderMutator) Minimum ¶
func (m *HeaderMutator) Minimum(v float64) *HeaderMutator
Minimum sets the Minimum field for object Header.
func (*HeaderMutator) MultipleOf ¶
func (m *HeaderMutator) MultipleOf(v float64) *HeaderMutator
MultipleOf sets the MultipleOf field for object Header.
func (*HeaderMutator) Name ¶
func (m *HeaderMutator) Name(v string) *HeaderMutator
Name sets the Name field for object Header.
func (*HeaderMutator) Pattern ¶
func (m *HeaderMutator) Pattern(v string) *HeaderMutator
Pattern sets the Pattern field for object Header.
func (*HeaderMutator) Type ¶
func (m *HeaderMutator) Type(v string) *HeaderMutator
Type sets the Type field for object Header.
func (*HeaderMutator) UniqueItems ¶
func (m *HeaderMutator) UniqueItems(v bool) *HeaderMutator
UniqueItems sets the UniqueItems field for object Header.
type HeaderVisitor ¶
HeaderVisitor is an interface for objects that knows how to process Header elements while traversing the OpenAPI structure
type InfoBuilder ¶
type InfoBuilder struct {
// contains filtered or unexported fields
}
InfoBuilder is used to build an instance of Info. The user must call `Build()` after providing all the necessary information to build an instance of Info. Builders may NOT be reused. It must be created for every instance of Info that you want to create
func NewInfo ¶
func NewInfo(title string, version string, options ...Option) *InfoBuilder
NewInfo creates a new builder object for Info
func (*InfoBuilder) Build ¶
func (b *InfoBuilder) Build(options ...Option) (Info, error)
Build finalizes the building process for Info and returns the result By default, Build() will validate if the given structure is valid
func (*InfoBuilder) Contact ¶
func (b *InfoBuilder) Contact(v Contact) *InfoBuilder
Contact sets the contact field for object Info.
func (*InfoBuilder) Description ¶
func (b *InfoBuilder) Description(v string) *InfoBuilder
Description sets the description field for object Info.
func (*InfoBuilder) Extension ¶
func (b *InfoBuilder) Extension(name string, value interface{}) *InfoBuilder
Extension sets an arbitrary element (an extension) to the object Info. The extension name should start with a "x-"
func (*InfoBuilder) License ¶
func (b *InfoBuilder) License(v License) *InfoBuilder
License sets the license field for object Info.
func (*InfoBuilder) MustBuild ¶
func (b *InfoBuilder) MustBuild(options ...Option) Info
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*InfoBuilder) Reference ¶
func (b *InfoBuilder) Reference(v string) *InfoBuilder
Reference sets the $ref (reference) field for object Info.
func (*InfoBuilder) TermsOfService ¶
func (b *InfoBuilder) TermsOfService(v string) *InfoBuilder
TermsOfService sets the termsOfService field for object Info.
type InfoMutator ¶
type InfoMutator struct {
// contains filtered or unexported fields
}
InfoMutator is used to build an instance of Info. The user must call `Apply()` after providing all the necessary information to the new instance of Info with new values
func MutateInfo ¶
func MutateInfo(v Info, options ...Option) *InfoMutator
MutateInfo creates a new mutator object for Info Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*InfoMutator) Apply ¶
func (m *InfoMutator) Apply() error
Apply finalizes the matuation process for Info and returns the result
func (*InfoMutator) Contact ¶
func (m *InfoMutator) Contact(v Contact) *InfoMutator
Contact sets the Contact field for object Info.
func (*InfoMutator) Description ¶
func (m *InfoMutator) Description(v string) *InfoMutator
Description sets the Description field for object Info.
func (*InfoMutator) Extension ¶
func (m *InfoMutator) Extension(name string, value interface{}) *InfoMutator
Extension sets an arbitrary extension field in Info
func (*InfoMutator) License ¶
func (m *InfoMutator) License(v License) *InfoMutator
License sets the License field for object Info.
func (*InfoMutator) TermsOfService ¶
func (m *InfoMutator) TermsOfService(v string) *InfoMutator
TermsOfService sets the TermsOfService field for object Info.
func (*InfoMutator) Title ¶
func (m *InfoMutator) Title(v string) *InfoMutator
Title sets the Title field for object Info.
func (*InfoMutator) Version ¶
func (m *InfoMutator) Version(v string) *InfoMutator
Version sets the Version field for object Info.
type InfoVisitor ¶
InfoVisitor is an interface for objects that knows how to process Info elements while traversing the OpenAPI structure
type InterfaceList ¶
type InterfaceList []interface{}
func (*InterfaceList) Clear ¶
func (v *InterfaceList) Clear() error
Clear removes all values from InterfaceList
func (*InterfaceList) Validate ¶
func (v *InterfaceList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type InterfaceListIterator ¶
type InterfaceListIterator struct {
// contains filtered or unexported fields
}
func (*InterfaceListIterator) Item ¶
func (iter *InterfaceListIterator) Item() interface{}
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type InterfaceMap ¶
type InterfaceMap map[InterfaceMapKey]interface{}
func (*InterfaceMap) Clear ¶
func (v *InterfaceMap) Clear() error
Clear removes all elements from InterfaceMap
func (InterfaceMap) QueryJSON ¶
func (v InterfaceMap) QueryJSON(path string) (ret interface{}, ok bool)
QueryJSON is used to query an element within the document Using jsonref
func (*InterfaceMap) Validate ¶
func (v *InterfaceMap) Validate(recurse bool) error
Validate checks the correctness of values in InterfaceMap
type InterfaceMapIterator ¶
type InterfaceMapIterator struct {
// contains filtered or unexported fields
}
func (*InterfaceMapIterator) Item ¶
func (iter *InterfaceMapIterator) Item() (string, interface{})
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type InterfaceMapKey ¶
type InterfaceMapKey = string
type Items ¶
type Items interface { Type() PrimitiveType Format() string Items() Items CollectionFormat() CollectionFormat Default() interface{} HasMaximum() bool Maximum() float64 HasExclusiveMaximum() bool ExclusiveMaximum() float64 HasMinimum() bool Minimum() float64 HasExclusiveMinimum() bool ExclusiveMinimum() float64 HasMaxLength() bool MaxLength() int HasMinLength() bool MinLength() int Pattern() string HasMaxItems() bool MaxItems() int HasMinItems() bool MinItems() int HasUniqueItems() bool UniqueItems() bool Enum() *InterfaceListIterator HasMultipleOf() bool MultipleOf() float64 Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Items IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator SchemaConverter }
type ItemsBuilder ¶
type ItemsBuilder struct {
// contains filtered or unexported fields
}
ItemsBuilder is used to build an instance of Items. The user must call `Build()` after providing all the necessary information to build an instance of Items. Builders may NOT be reused. It must be created for every instance of Items that you want to create
func NewItems ¶
func NewItems(options ...Option) *ItemsBuilder
NewItems creates a new builder object for Items
func (*ItemsBuilder) Build ¶
func (b *ItemsBuilder) Build(options ...Option) (Items, error)
Build finalizes the building process for Items and returns the result By default, Build() will validate if the given structure is valid
func (*ItemsBuilder) CollectionFormat ¶
func (b *ItemsBuilder) CollectionFormat(v CollectionFormat) *ItemsBuilder
CollectionFormat sets the collectionFormat field for object Items.
func (*ItemsBuilder) Default ¶
func (b *ItemsBuilder) Default(v interface{}) *ItemsBuilder
Default sets the defaultValue field for object Items.
func (*ItemsBuilder) Enum ¶
func (b *ItemsBuilder) Enum(v ...interface{}) *ItemsBuilder
Enum sets the enum field for object Items.
func (*ItemsBuilder) ExclusiveMaximum ¶
func (b *ItemsBuilder) ExclusiveMaximum(v float64) *ItemsBuilder
ExclusiveMaximum sets the exclusiveMaximum field for object Items.
func (*ItemsBuilder) ExclusiveMinimum ¶
func (b *ItemsBuilder) ExclusiveMinimum(v float64) *ItemsBuilder
ExclusiveMinimum sets the exclusiveMinimum field for object Items.
func (*ItemsBuilder) Extension ¶
func (b *ItemsBuilder) Extension(name string, value interface{}) *ItemsBuilder
Extension sets an arbitrary element (an extension) to the object Items. The extension name should start with a "x-"
func (*ItemsBuilder) Format ¶
func (b *ItemsBuilder) Format(v string) *ItemsBuilder
Format sets the format field for object Items.
func (*ItemsBuilder) Items ¶
func (b *ItemsBuilder) Items(v Items) *ItemsBuilder
Items sets the items field for object Items.
func (*ItemsBuilder) MaxItems ¶
func (b *ItemsBuilder) MaxItems(v int) *ItemsBuilder
MaxItems sets the maxItems field for object Items.
func (*ItemsBuilder) MaxLength ¶
func (b *ItemsBuilder) MaxLength(v int) *ItemsBuilder
MaxLength sets the maxLength field for object Items.
func (*ItemsBuilder) Maximum ¶
func (b *ItemsBuilder) Maximum(v float64) *ItemsBuilder
Maximum sets the maximum field for object Items.
func (*ItemsBuilder) MinItems ¶
func (b *ItemsBuilder) MinItems(v int) *ItemsBuilder
MinItems sets the minItems field for object Items.
func (*ItemsBuilder) MinLength ¶
func (b *ItemsBuilder) MinLength(v int) *ItemsBuilder
MinLength sets the minLength field for object Items.
func (*ItemsBuilder) Minimum ¶
func (b *ItemsBuilder) Minimum(v float64) *ItemsBuilder
Minimum sets the minimum field for object Items.
func (*ItemsBuilder) MultipleOf ¶
func (b *ItemsBuilder) MultipleOf(v float64) *ItemsBuilder
MultipleOf sets the multipleOf field for object Items.
func (*ItemsBuilder) MustBuild ¶
func (b *ItemsBuilder) MustBuild(options ...Option) Items
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*ItemsBuilder) Pattern ¶
func (b *ItemsBuilder) Pattern(v string) *ItemsBuilder
Pattern sets the pattern field for object Items.
func (*ItemsBuilder) Reference ¶
func (b *ItemsBuilder) Reference(v string) *ItemsBuilder
Reference sets the $ref (reference) field for object Items.
func (*ItemsBuilder) Type ¶
func (b *ItemsBuilder) Type(v PrimitiveType) *ItemsBuilder
Type sets the typ field for object Items.
func (*ItemsBuilder) UniqueItems ¶
func (b *ItemsBuilder) UniqueItems(v bool) *ItemsBuilder
UniqueItems sets the uniqueItems field for object Items.
type ItemsMutator ¶
type ItemsMutator struct {
// contains filtered or unexported fields
}
ItemsMutator is used to build an instance of Items. The user must call `Apply()` after providing all the necessary information to the new instance of Items with new values
func MutateItems ¶
func MutateItems(v Items, options ...Option) *ItemsMutator
MutateItems creates a new mutator object for Items Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*ItemsMutator) Apply ¶
func (m *ItemsMutator) Apply() error
Apply finalizes the matuation process for Items and returns the result
func (*ItemsMutator) ClearEnum ¶
func (m *ItemsMutator) ClearEnum() *ItemsMutator
ClearEnum clears all elements in enum
func (*ItemsMutator) ClearExclusiveMaximum ¶
func (m *ItemsMutator) ClearExclusiveMaximum() *ItemsMutator
ClearExclusiveMaximum clears the exclusiveMaximum field
func (*ItemsMutator) ClearExclusiveMinimum ¶
func (m *ItemsMutator) ClearExclusiveMinimum() *ItemsMutator
ClearExclusiveMinimum clears the exclusiveMinimum field
func (*ItemsMutator) ClearMaxItems ¶
func (m *ItemsMutator) ClearMaxItems() *ItemsMutator
ClearMaxItems clears the maxItems field
func (*ItemsMutator) ClearMaxLength ¶
func (m *ItemsMutator) ClearMaxLength() *ItemsMutator
ClearMaxLength clears the maxLength field
func (*ItemsMutator) ClearMaximum ¶
func (m *ItemsMutator) ClearMaximum() *ItemsMutator
ClearMaximum clears the maximum field
func (*ItemsMutator) ClearMinItems ¶
func (m *ItemsMutator) ClearMinItems() *ItemsMutator
ClearMinItems clears the minItems field
func (*ItemsMutator) ClearMinLength ¶
func (m *ItemsMutator) ClearMinLength() *ItemsMutator
ClearMinLength clears the minLength field
func (*ItemsMutator) ClearMinimum ¶
func (m *ItemsMutator) ClearMinimum() *ItemsMutator
ClearMinimum clears the minimum field
func (*ItemsMutator) ClearMultipleOf ¶
func (m *ItemsMutator) ClearMultipleOf() *ItemsMutator
ClearMultipleOf clears the multipleOf field
func (*ItemsMutator) ClearUniqueItems ¶
func (m *ItemsMutator) ClearUniqueItems() *ItemsMutator
ClearUniqueItems clears the uniqueItems field
func (*ItemsMutator) CollectionFormat ¶
func (m *ItemsMutator) CollectionFormat(v CollectionFormat) *ItemsMutator
CollectionFormat sets the CollectionFormat field for object Items.
func (*ItemsMutator) Default ¶
func (m *ItemsMutator) Default(v interface{}) *ItemsMutator
Default sets the Default field for object Items.
func (*ItemsMutator) Enum ¶
func (m *ItemsMutator) Enum(value interface{}) *ItemsMutator
Enum appends a value to enum
func (*ItemsMutator) ExclusiveMaximum ¶
func (m *ItemsMutator) ExclusiveMaximum(v float64) *ItemsMutator
ExclusiveMaximum sets the exclusiveMaximum field.
func (*ItemsMutator) ExclusiveMinimum ¶
func (m *ItemsMutator) ExclusiveMinimum(v float64) *ItemsMutator
ExclusiveMinimum sets the exclusiveMinimum field.
func (*ItemsMutator) Extension ¶
func (m *ItemsMutator) Extension(name string, value interface{}) *ItemsMutator
Extension sets an arbitrary extension field in Items
func (*ItemsMutator) Format ¶
func (m *ItemsMutator) Format(v string) *ItemsMutator
Format sets the Format field for object Items.
func (*ItemsMutator) Items ¶
func (m *ItemsMutator) Items(v Items) *ItemsMutator
Items sets the Items field for object Items.
func (*ItemsMutator) MaxItems ¶
func (m *ItemsMutator) MaxItems(v int) *ItemsMutator
MaxItems sets the maxItems field.
func (*ItemsMutator) MaxLength ¶
func (m *ItemsMutator) MaxLength(v int) *ItemsMutator
MaxLength sets the maxLength field.
func (*ItemsMutator) Maximum ¶
func (m *ItemsMutator) Maximum(v float64) *ItemsMutator
Maximum sets the maximum field.
func (*ItemsMutator) MinItems ¶
func (m *ItemsMutator) MinItems(v int) *ItemsMutator
MinItems sets the minItems field.
func (*ItemsMutator) MinLength ¶
func (m *ItemsMutator) MinLength(v int) *ItemsMutator
MinLength sets the minLength field.
func (*ItemsMutator) Minimum ¶
func (m *ItemsMutator) Minimum(v float64) *ItemsMutator
Minimum sets the minimum field.
func (*ItemsMutator) MultipleOf ¶
func (m *ItemsMutator) MultipleOf(v float64) *ItemsMutator
MultipleOf sets the multipleOf field.
func (*ItemsMutator) Pattern ¶
func (m *ItemsMutator) Pattern(v string) *ItemsMutator
Pattern sets the Pattern field for object Items.
func (*ItemsMutator) Type ¶
func (m *ItemsMutator) Type(v PrimitiveType) *ItemsMutator
Type sets the Type field for object Items.
func (*ItemsMutator) UniqueItems ¶
func (m *ItemsMutator) UniqueItems(v bool) *ItemsMutator
UniqueItems sets the uniqueItems field.
type ItemsVisitor ¶
ItemsVisitor is an interface for objects that knows how to process Items elements while traversing the OpenAPI structure
type LicenseBuilder ¶
type LicenseBuilder struct {
// contains filtered or unexported fields
}
LicenseBuilder is used to build an instance of License. The user must call `Build()` after providing all the necessary information to build an instance of License. Builders may NOT be reused. It must be created for every instance of License that you want to create
func NewLicense ¶
func NewLicense(name string, options ...Option) *LicenseBuilder
NewLicense creates a new builder object for License
func (*LicenseBuilder) Build ¶
func (b *LicenseBuilder) Build(options ...Option) (License, error)
Build finalizes the building process for License and returns the result By default, Build() will validate if the given structure is valid
func (*LicenseBuilder) Extension ¶
func (b *LicenseBuilder) Extension(name string, value interface{}) *LicenseBuilder
Extension sets an arbitrary element (an extension) to the object License. The extension name should start with a "x-"
func (*LicenseBuilder) MustBuild ¶
func (b *LicenseBuilder) MustBuild(options ...Option) License
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*LicenseBuilder) Reference ¶
func (b *LicenseBuilder) Reference(v string) *LicenseBuilder
Reference sets the $ref (reference) field for object License.
func (*LicenseBuilder) URL ¶
func (b *LicenseBuilder) URL(v string) *LicenseBuilder
URL sets the url field for object License.
type LicenseMutator ¶
type LicenseMutator struct {
// contains filtered or unexported fields
}
LicenseMutator is used to build an instance of License. The user must call `Apply()` after providing all the necessary information to the new instance of License with new values
func MutateLicense ¶
func MutateLicense(v License, options ...Option) *LicenseMutator
MutateLicense creates a new mutator object for License Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*LicenseMutator) Apply ¶
func (m *LicenseMutator) Apply() error
Apply finalizes the matuation process for License and returns the result
func (*LicenseMutator) Extension ¶
func (m *LicenseMutator) Extension(name string, value interface{}) *LicenseMutator
Extension sets an arbitrary extension field in License
func (*LicenseMutator) Name ¶
func (m *LicenseMutator) Name(v string) *LicenseMutator
Name sets the Name field for object License.
func (*LicenseMutator) URL ¶
func (m *LicenseMutator) URL(v string) *LicenseMutator
URL sets the URL field for object License.
type LicenseVisitor ¶
LicenseVisitor is an interface for objects that knows how to process License elements while traversing the OpenAPI structure
type MIMETypeList ¶
type MIMETypeList []MIMEType
func (*MIMETypeList) Clear ¶
func (v *MIMETypeList) Clear() error
Clear removes all values from MIMETypeList
func (*MIMETypeList) Validate ¶
func (v *MIMETypeList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type MIMETypeListIterator ¶
type MIMETypeListIterator struct {
// contains filtered or unexported fields
}
func (*MIMETypeListIterator) Item ¶
func (iter *MIMETypeListIterator) Item() MIMEType
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type MapQueryJSON ¶
type MapQueryJSON map[string]interface{}
type MediaTypeListIterator ¶
type MediaTypeListIterator struct {
// contains filtered or unexported fields
}
func (*MediaTypeListIterator) Item ¶
func (iter *MediaTypeListIterator) Item() MediaType
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type Operation ¶
type Operation interface { Verb() string PathItem() PathItem Tags() *StringListIterator Summary() string Description() string ExternalDocs() ExternalDocumentation OperationID() string Consumes() *MIMETypeListIterator Produces() *MIMETypeListIterator Parameters() *ParameterListIterator Responses() Responses Schemes() *SchemeListIterator Deprecated() bool Security() *SecurityRequirementListIterator Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Operation IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator // contains filtered or unexported methods }
type OperationBuilder ¶
type OperationBuilder struct {
// contains filtered or unexported fields
}
OperationBuilder is used to build an instance of Operation. The user must call `Build()` after providing all the necessary information to build an instance of Operation. Builders may NOT be reused. It must be created for every instance of Operation that you want to create
func NewOperation ¶
func NewOperation(responses Responses, options ...Option) *OperationBuilder
NewOperation creates a new builder object for Operation
func (*OperationBuilder) Build ¶
func (b *OperationBuilder) Build(options ...Option) (Operation, error)
Build finalizes the building process for Operation and returns the result By default, Build() will validate if the given structure is valid
func (*OperationBuilder) Consumes ¶
func (b *OperationBuilder) Consumes(v ...MIMEType) *OperationBuilder
Consumes sets the consumes field for object Operation.
func (*OperationBuilder) Deprecated ¶
func (b *OperationBuilder) Deprecated(v bool) *OperationBuilder
Deprecated sets the deprecated field for object Operation.
func (*OperationBuilder) Description ¶
func (b *OperationBuilder) Description(v string) *OperationBuilder
Description sets the description field for object Operation.
func (*OperationBuilder) Extension ¶
func (b *OperationBuilder) Extension(name string, value interface{}) *OperationBuilder
Extension sets an arbitrary element (an extension) to the object Operation. The extension name should start with a "x-"
func (*OperationBuilder) ExternalDocs ¶
func (b *OperationBuilder) ExternalDocs(v ExternalDocumentation) *OperationBuilder
ExternalDocs sets the externalDocs field for object Operation.
func (*OperationBuilder) MustBuild ¶
func (b *OperationBuilder) MustBuild(options ...Option) Operation
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*OperationBuilder) OperationID ¶
func (b *OperationBuilder) OperationID(v string) *OperationBuilder
OperationID sets the operationID field for object Operation.
func (*OperationBuilder) Parameters ¶
func (b *OperationBuilder) Parameters(v ...Parameter) *OperationBuilder
Parameters sets the parameters field for object Operation.
func (*OperationBuilder) Produces ¶
func (b *OperationBuilder) Produces(v ...MIMEType) *OperationBuilder
Produces sets the produces field for object Operation.
func (*OperationBuilder) Reference ¶
func (b *OperationBuilder) Reference(v string) *OperationBuilder
Reference sets the $ref (reference) field for object Operation.
func (*OperationBuilder) Schemes ¶
func (b *OperationBuilder) Schemes(v ...Scheme) *OperationBuilder
Schemes sets the schemes field for object Operation.
func (*OperationBuilder) Security ¶
func (b *OperationBuilder) Security(v ...SecurityRequirement) *OperationBuilder
Security sets the security field for object Operation.
func (*OperationBuilder) Summary ¶
func (b *OperationBuilder) Summary(v string) *OperationBuilder
Summary sets the summary field for object Operation.
func (*OperationBuilder) Tags ¶
func (b *OperationBuilder) Tags(v ...string) *OperationBuilder
Tags sets the tags field for object Operation.
type OperationListIterator ¶
type OperationListIterator struct {
// contains filtered or unexported fields
}
func (*OperationListIterator) Item ¶
func (iter *OperationListIterator) Item() Operation
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type OperationMutator ¶
type OperationMutator struct {
// contains filtered or unexported fields
}
OperationMutator is used to build an instance of Operation. The user must call `Apply()` after providing all the necessary information to the new instance of Operation with new values
func MutateOperation ¶
func MutateOperation(v Operation, options ...Option) *OperationMutator
MutateOperation creates a new mutator object for Operation Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*OperationMutator) Apply ¶
func (m *OperationMutator) Apply() error
Apply finalizes the matuation process for Operation and returns the result
func (*OperationMutator) ClearConsumes ¶
func (m *OperationMutator) ClearConsumes() *OperationMutator
ClearConsumes clears all elements in consumes
func (*OperationMutator) ClearParameters ¶
func (m *OperationMutator) ClearParameters() *OperationMutator
ClearParameters clears all elements in parameters
func (*OperationMutator) ClearProduces ¶
func (m *OperationMutator) ClearProduces() *OperationMutator
ClearProduces clears all elements in produces
func (*OperationMutator) ClearSchemes ¶
func (m *OperationMutator) ClearSchemes() *OperationMutator
ClearSchemes clears all elements in schemes
func (*OperationMutator) ClearSecurity ¶
func (m *OperationMutator) ClearSecurity() *OperationMutator
ClearSecurity clears all elements in security
func (*OperationMutator) ClearTags ¶
func (m *OperationMutator) ClearTags() *OperationMutator
ClearTags clears all elements in tags
func (*OperationMutator) Consume ¶
func (m *OperationMutator) Consume(value string) *OperationMutator
Consume appends a value to consumes
func (*OperationMutator) Deprecated ¶
func (m *OperationMutator) Deprecated(v bool) *OperationMutator
Deprecated sets the Deprecated field for object Operation.
func (*OperationMutator) Description ¶
func (m *OperationMutator) Description(v string) *OperationMutator
Description sets the Description field for object Operation.
func (*OperationMutator) Extension ¶
func (m *OperationMutator) Extension(name string, value interface{}) *OperationMutator
Extension sets an arbitrary extension field in Operation
func (*OperationMutator) ExternalDocs ¶
func (m *OperationMutator) ExternalDocs(v ExternalDocumentation) *OperationMutator
ExternalDocs sets the ExternalDocs field for object Operation.
func (*OperationMutator) OperationID ¶
func (m *OperationMutator) OperationID(v string) *OperationMutator
OperationID sets the OperationID field for object Operation.
func (*OperationMutator) Parameter ¶
func (m *OperationMutator) Parameter(value Parameter) *OperationMutator
Parameter appends a value to parameters
func (*OperationMutator) Produce ¶
func (m *OperationMutator) Produce(value string) *OperationMutator
Produce appends a value to produces
func (*OperationMutator) Responses ¶
func (m *OperationMutator) Responses(v Responses) *OperationMutator
Responses sets the Responses field for object Operation.
func (*OperationMutator) Scheme ¶
func (m *OperationMutator) Scheme(value string) *OperationMutator
Scheme appends a value to schemes
func (*OperationMutator) Security ¶
func (m *OperationMutator) Security(value SecurityRequirement) *OperationMutator
Security appends a value to security
func (*OperationMutator) Summary ¶
func (m *OperationMutator) Summary(v string) *OperationMutator
Summary sets the Summary field for object Operation.
func (*OperationMutator) Tag ¶
func (m *OperationMutator) Tag(value string) *OperationMutator
Tag appends a value to tags
type OperationVisitor ¶
OperationVisitor is an interface for objects that knows how to process Operation elements while traversing the OpenAPI structure
type Option ¶
func WithLocker ¶
WithLocker specifies the lock object to be used for applicable constructs, such as a Builder object. If a nil value is passed, usually it effectively becomes a non-locking operation. Please Consult the specific construct you're working with for exact semantics
func WithValidate ¶
WithValidate specifies if validation should be performed on the object. This option can be passed to `ParseYAML`, `ParseJSON`, and `Do` methods for builders and mutators.
type Parameter ¶
type Parameter interface { Name() string Description() string Required() bool In() Location Schema() Schema Type() PrimitiveType Format() string Title() string AllowEmptyValue() bool Items() Items CollectionFormat() CollectionFormat Default() interface{} HasMaximum() bool Maximum() float64 HasExclusiveMaximum() bool ExclusiveMaximum() float64 HasMinimum() bool Minimum() float64 HasExclusiveMinimum() bool ExclusiveMinimum() float64 HasMaxLength() bool MaxLength() int HasMinLength() bool MinLength() int Pattern() string HasMaxItems() bool MaxItems() int HasMinItems() bool MinItems() int HasUniqueItems() bool UniqueItems() bool Enum() *InterfaceListIterator HasMultipleOf() bool MultipleOf() float64 Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Parameter IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator SchemaConverter }
type ParameterBuilder ¶
type ParameterBuilder struct {
// contains filtered or unexported fields
}
ParameterBuilder is used to build an instance of Parameter. The user must call `Build()` after providing all the necessary information to build an instance of Parameter. Builders may NOT be reused. It must be created for every instance of Parameter that you want to create
func NewParameter ¶
func NewParameter(name string, in Location, options ...Option) *ParameterBuilder
NewParameter creates a new builder object for Parameter
func (*ParameterBuilder) AllowEmptyValue ¶
func (b *ParameterBuilder) AllowEmptyValue(v bool) *ParameterBuilder
AllowEmptyValue sets the allowEmptyValue field for object Parameter.
func (*ParameterBuilder) Build ¶
func (b *ParameterBuilder) Build(options ...Option) (Parameter, error)
Build finalizes the building process for Parameter and returns the result By default, Build() will validate if the given structure is valid
func (*ParameterBuilder) CollectionFormat ¶
func (b *ParameterBuilder) CollectionFormat(v CollectionFormat) *ParameterBuilder
CollectionFormat sets the collectionFormat field for object Parameter.
func (*ParameterBuilder) Default ¶
func (b *ParameterBuilder) Default(v interface{}) *ParameterBuilder
Default sets the defaultValue field for object Parameter.
func (*ParameterBuilder) Description ¶
func (b *ParameterBuilder) Description(v string) *ParameterBuilder
Description sets the description field for object Parameter.
func (*ParameterBuilder) Enum ¶
func (b *ParameterBuilder) Enum(v ...interface{}) *ParameterBuilder
Enum sets the enum field for object Parameter.
func (*ParameterBuilder) ExclusiveMaximum ¶
func (b *ParameterBuilder) ExclusiveMaximum(v float64) *ParameterBuilder
ExclusiveMaximum sets the exclusiveMaximum field for object Parameter.
func (*ParameterBuilder) ExclusiveMinimum ¶
func (b *ParameterBuilder) ExclusiveMinimum(v float64) *ParameterBuilder
ExclusiveMinimum sets the exclusiveMinimum field for object Parameter.
func (*ParameterBuilder) Extension ¶
func (b *ParameterBuilder) Extension(name string, value interface{}) *ParameterBuilder
Extension sets an arbitrary element (an extension) to the object Parameter. The extension name should start with a "x-"
func (*ParameterBuilder) Format ¶
func (b *ParameterBuilder) Format(v string) *ParameterBuilder
Format sets the format field for object Parameter.
func (*ParameterBuilder) Items ¶
func (b *ParameterBuilder) Items(v Items) *ParameterBuilder
Items sets the items field for object Parameter.
func (*ParameterBuilder) MaxItems ¶
func (b *ParameterBuilder) MaxItems(v int) *ParameterBuilder
MaxItems sets the maxItems field for object Parameter.
func (*ParameterBuilder) MaxLength ¶
func (b *ParameterBuilder) MaxLength(v int) *ParameterBuilder
MaxLength sets the maxLength field for object Parameter.
func (*ParameterBuilder) Maximum ¶
func (b *ParameterBuilder) Maximum(v float64) *ParameterBuilder
Maximum sets the maximum field for object Parameter.
func (*ParameterBuilder) MinItems ¶
func (b *ParameterBuilder) MinItems(v int) *ParameterBuilder
MinItems sets the minItems field for object Parameter.
func (*ParameterBuilder) MinLength ¶
func (b *ParameterBuilder) MinLength(v int) *ParameterBuilder
MinLength sets the minLength field for object Parameter.
func (*ParameterBuilder) Minimum ¶
func (b *ParameterBuilder) Minimum(v float64) *ParameterBuilder
Minimum sets the minimum field for object Parameter.
func (*ParameterBuilder) MultipleOf ¶
func (b *ParameterBuilder) MultipleOf(v float64) *ParameterBuilder
MultipleOf sets the multipleOf field for object Parameter.
func (*ParameterBuilder) MustBuild ¶
func (b *ParameterBuilder) MustBuild(options ...Option) Parameter
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*ParameterBuilder) Pattern ¶
func (b *ParameterBuilder) Pattern(v string) *ParameterBuilder
Pattern sets the pattern field for object Parameter.
func (*ParameterBuilder) Reference ¶
func (b *ParameterBuilder) Reference(v string) *ParameterBuilder
Reference sets the $ref (reference) field for object Parameter.
func (*ParameterBuilder) Required ¶
func (b *ParameterBuilder) Required(v bool) *ParameterBuilder
Required sets the required field for object Parameter.
func (*ParameterBuilder) Schema ¶
func (b *ParameterBuilder) Schema(v Schema) *ParameterBuilder
Schema sets the schema field for object Parameter.
func (*ParameterBuilder) Title ¶
func (b *ParameterBuilder) Title(v string) *ParameterBuilder
Title sets the title field for object Parameter.
func (*ParameterBuilder) Type ¶
func (b *ParameterBuilder) Type(v PrimitiveType) *ParameterBuilder
Type sets the typ field for object Parameter.
func (*ParameterBuilder) UniqueItems ¶
func (b *ParameterBuilder) UniqueItems(v bool) *ParameterBuilder
UniqueItems sets the uniqueItems field for object Parameter.
type ParameterList ¶
type ParameterList []Parameter
func (*ParameterList) Clear ¶
func (v *ParameterList) Clear() error
Clear removes all values from ParameterList
func (*ParameterList) UnmarshalJSON ¶
func (v *ParameterList) UnmarshalJSON(data []byte) error
UnmarshalJSON defines how ParameterList is deserialized from JSON
func (*ParameterList) Validate ¶
func (v *ParameterList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type ParameterListIterator ¶
type ParameterListIterator struct {
// contains filtered or unexported fields
}
func (*ParameterListIterator) Item ¶
func (iter *ParameterListIterator) Item() Parameter
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ParameterMap ¶
type ParameterMap map[ParameterMapKey]Parameter
func (*ParameterMap) Clear ¶
func (v *ParameterMap) Clear() error
Clear removes all elements from ParameterMap
func (ParameterMap) QueryJSON ¶
func (v ParameterMap) QueryJSON(path string) (ret interface{}, ok bool)
QueryJSON is used to query an element within the document Using jsonref
func (*ParameterMap) UnmarshalJSON ¶
func (v *ParameterMap) UnmarshalJSON(data []byte) error
UnmarshalJSON takes a JSON buffer and properly populates `v`
func (*ParameterMap) Validate ¶
func (v *ParameterMap) Validate(recurse bool) error
Validate checks the correctness of values in ParameterMap
type ParameterMapIterator ¶
type ParameterMapIterator struct {
// contains filtered or unexported fields
}
func (*ParameterMapIterator) Item ¶
func (iter *ParameterMapIterator) Item() (string, Parameter)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ParameterMapKey ¶
type ParameterMapKey = string
type ParameterMutator ¶
type ParameterMutator struct {
// contains filtered or unexported fields
}
ParameterMutator is used to build an instance of Parameter. The user must call `Apply()` after providing all the necessary information to the new instance of Parameter with new values
func MutateParameter ¶
func MutateParameter(v Parameter, options ...Option) *ParameterMutator
MutateParameter creates a new mutator object for Parameter Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*ParameterMutator) AllowEmptyValue ¶
func (m *ParameterMutator) AllowEmptyValue(v bool) *ParameterMutator
AllowEmptyValue sets the AllowEmptyValue field for object Parameter.
func (*ParameterMutator) Apply ¶
func (m *ParameterMutator) Apply() error
Apply finalizes the matuation process for Parameter and returns the result
func (*ParameterMutator) ClearEnum ¶
func (m *ParameterMutator) ClearEnum() *ParameterMutator
ClearEnum clears all elements in enum
func (*ParameterMutator) ClearExclusiveMaximum ¶
func (m *ParameterMutator) ClearExclusiveMaximum() *ParameterMutator
ClearExclusiveMaximum clears the exclusiveMaximum field
func (*ParameterMutator) ClearExclusiveMinimum ¶
func (m *ParameterMutator) ClearExclusiveMinimum() *ParameterMutator
ClearExclusiveMinimum clears the exclusiveMinimum field
func (*ParameterMutator) ClearMaxItems ¶
func (m *ParameterMutator) ClearMaxItems() *ParameterMutator
ClearMaxItems clears the maxItems field
func (*ParameterMutator) ClearMaxLength ¶
func (m *ParameterMutator) ClearMaxLength() *ParameterMutator
ClearMaxLength clears the maxLength field
func (*ParameterMutator) ClearMaximum ¶
func (m *ParameterMutator) ClearMaximum() *ParameterMutator
ClearMaximum clears the maximum field
func (*ParameterMutator) ClearMinItems ¶
func (m *ParameterMutator) ClearMinItems() *ParameterMutator
ClearMinItems clears the minItems field
func (*ParameterMutator) ClearMinLength ¶
func (m *ParameterMutator) ClearMinLength() *ParameterMutator
ClearMinLength clears the minLength field
func (*ParameterMutator) ClearMinimum ¶
func (m *ParameterMutator) ClearMinimum() *ParameterMutator
ClearMinimum clears the minimum field
func (*ParameterMutator) ClearMultipleOf ¶
func (m *ParameterMutator) ClearMultipleOf() *ParameterMutator
ClearMultipleOf clears the multipleOf field
func (*ParameterMutator) ClearUniqueItems ¶
func (m *ParameterMutator) ClearUniqueItems() *ParameterMutator
ClearUniqueItems clears the uniqueItems field
func (*ParameterMutator) CollectionFormat ¶
func (m *ParameterMutator) CollectionFormat(v CollectionFormat) *ParameterMutator
CollectionFormat sets the CollectionFormat field for object Parameter.
func (*ParameterMutator) Default ¶
func (m *ParameterMutator) Default(v interface{}) *ParameterMutator
Default sets the Default field for object Parameter.
func (*ParameterMutator) Description ¶
func (m *ParameterMutator) Description(v string) *ParameterMutator
Description sets the Description field for object Parameter.
func (*ParameterMutator) Enum ¶
func (m *ParameterMutator) Enum(value interface{}) *ParameterMutator
Enum appends a value to enum
func (*ParameterMutator) ExclusiveMaximum ¶
func (m *ParameterMutator) ExclusiveMaximum(v float64) *ParameterMutator
ExclusiveMaximum sets the exclusiveMaximum field.
func (*ParameterMutator) ExclusiveMinimum ¶
func (m *ParameterMutator) ExclusiveMinimum(v float64) *ParameterMutator
ExclusiveMinimum sets the exclusiveMinimum field.
func (*ParameterMutator) Extension ¶
func (m *ParameterMutator) Extension(name string, value interface{}) *ParameterMutator
Extension sets an arbitrary extension field in Parameter
func (*ParameterMutator) Format ¶
func (m *ParameterMutator) Format(v string) *ParameterMutator
Format sets the Format field for object Parameter.
func (*ParameterMutator) In ¶
func (m *ParameterMutator) In(v Location) *ParameterMutator
In sets the In field for object Parameter.
func (*ParameterMutator) Items ¶
func (m *ParameterMutator) Items(v Items) *ParameterMutator
Items sets the Items field for object Parameter.
func (*ParameterMutator) MaxItems ¶
func (m *ParameterMutator) MaxItems(v int) *ParameterMutator
MaxItems sets the maxItems field.
func (*ParameterMutator) MaxLength ¶
func (m *ParameterMutator) MaxLength(v int) *ParameterMutator
MaxLength sets the maxLength field.
func (*ParameterMutator) Maximum ¶
func (m *ParameterMutator) Maximum(v float64) *ParameterMutator
Maximum sets the maximum field.
func (*ParameterMutator) MinItems ¶
func (m *ParameterMutator) MinItems(v int) *ParameterMutator
MinItems sets the minItems field.
func (*ParameterMutator) MinLength ¶
func (m *ParameterMutator) MinLength(v int) *ParameterMutator
MinLength sets the minLength field.
func (*ParameterMutator) Minimum ¶
func (m *ParameterMutator) Minimum(v float64) *ParameterMutator
Minimum sets the minimum field.
func (*ParameterMutator) MultipleOf ¶
func (m *ParameterMutator) MultipleOf(v float64) *ParameterMutator
MultipleOf sets the multipleOf field.
func (*ParameterMutator) Name ¶
func (m *ParameterMutator) Name(v string) *ParameterMutator
Name sets the Name field for object Parameter.
func (*ParameterMutator) Pattern ¶
func (m *ParameterMutator) Pattern(v string) *ParameterMutator
Pattern sets the Pattern field for object Parameter.
func (*ParameterMutator) Required ¶
func (m *ParameterMutator) Required(v bool) *ParameterMutator
Required sets the Required field for object Parameter.
func (*ParameterMutator) Schema ¶
func (m *ParameterMutator) Schema(v Schema) *ParameterMutator
Schema sets the Schema field for object Parameter.
func (*ParameterMutator) Title ¶
func (m *ParameterMutator) Title(v string) *ParameterMutator
Title sets the Title field for object Parameter.
func (*ParameterMutator) Type ¶
func (m *ParameterMutator) Type(v PrimitiveType) *ParameterMutator
Type sets the Type field for object Parameter.
func (*ParameterMutator) UniqueItems ¶
func (m *ParameterMutator) UniqueItems(v bool) *ParameterMutator
UniqueItems sets the uniqueItems field.
type ParameterVisitor ¶
ParameterVisitor is an interface for objects that knows how to process Parameter elements while traversing the OpenAPI structure
type PathItem ¶
type PathItem interface { Name() string Path() string Get() Operation Put() Operation Post() Operation Delete() Operation Options() Operation Head() Operation Patch() Operation Parameters() *ParameterListIterator Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() PathItem IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator Operations() *OperationListIterator // contains filtered or unexported methods }
type PathItemBuilder ¶
type PathItemBuilder struct {
// contains filtered or unexported fields
}
PathItemBuilder is used to build an instance of PathItem. The user must call `Build()` after providing all the necessary information to build an instance of PathItem. Builders may NOT be reused. It must be created for every instance of PathItem that you want to create
func NewPathItem ¶
func NewPathItem(options ...Option) *PathItemBuilder
NewPathItem creates a new builder object for PathItem
func (*PathItemBuilder) Build ¶
func (b *PathItemBuilder) Build(options ...Option) (PathItem, error)
Build finalizes the building process for PathItem and returns the result By default, Build() will validate if the given structure is valid
func (*PathItemBuilder) Delete ¶
func (b *PathItemBuilder) Delete(v Operation) *PathItemBuilder
func (*PathItemBuilder) Extension ¶
func (b *PathItemBuilder) Extension(name string, value interface{}) *PathItemBuilder
Extension sets an arbitrary element (an extension) to the object PathItem. The extension name should start with a "x-"
func (*PathItemBuilder) Get ¶
func (b *PathItemBuilder) Get(oper Operation) *PathItemBuilder
func (*PathItemBuilder) Head ¶
func (b *PathItemBuilder) Head(v Operation) *PathItemBuilder
func (*PathItemBuilder) MustBuild ¶
func (b *PathItemBuilder) MustBuild(options ...Option) PathItem
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*PathItemBuilder) Options ¶
func (b *PathItemBuilder) Options(v Operation) *PathItemBuilder
func (*PathItemBuilder) Parameters ¶
func (b *PathItemBuilder) Parameters(v ...Parameter) *PathItemBuilder
Parameters sets the parameters field for object PathItem.
func (*PathItemBuilder) Patch ¶
func (b *PathItemBuilder) Patch(v Operation) *PathItemBuilder
func (*PathItemBuilder) Post ¶
func (b *PathItemBuilder) Post(v Operation) *PathItemBuilder
func (*PathItemBuilder) Put ¶
func (b *PathItemBuilder) Put(v Operation) *PathItemBuilder
func (*PathItemBuilder) Reference ¶
func (b *PathItemBuilder) Reference(v string) *PathItemBuilder
Reference sets the $ref (reference) field for object PathItem.
type PathItemListIterator ¶
type PathItemListIterator struct {
// contains filtered or unexported fields
}
func (*PathItemListIterator) Item ¶
func (iter *PathItemListIterator) Item() PathItem
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type PathItemMap ¶
type PathItemMap map[PathItemMapKey]PathItem
func (*PathItemMap) Clear ¶
func (v *PathItemMap) Clear() error
Clear removes all elements from PathItemMap
func (PathItemMap) QueryJSON ¶
func (v PathItemMap) QueryJSON(path string) (ret interface{}, ok bool)
QueryJSON is used to query an element within the document Using jsonref
func (*PathItemMap) UnmarshalJSON ¶
func (v *PathItemMap) UnmarshalJSON(data []byte) error
UnmarshalJSON takes a JSON buffer and properly populates `v`
func (*PathItemMap) Validate ¶
func (v *PathItemMap) Validate(recurse bool) error
Validate checks the correctness of values in PathItemMap
type PathItemMapIterator ¶
type PathItemMapIterator struct {
// contains filtered or unexported fields
}
func (*PathItemMapIterator) Item ¶
func (iter *PathItemMapIterator) Item() (string, PathItem)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type PathItemMapKey ¶
type PathItemMapKey = string
type PathItemMutator ¶
type PathItemMutator struct {
// contains filtered or unexported fields
}
PathItemMutator is used to build an instance of PathItem. The user must call `Apply()` after providing all the necessary information to the new instance of PathItem with new values
func MutatePathItem ¶
func MutatePathItem(v PathItem, options ...Option) *PathItemMutator
MutatePathItem creates a new mutator object for PathItem Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*PathItemMutator) Apply ¶
func (m *PathItemMutator) Apply() error
Apply finalizes the matuation process for PathItem and returns the result
func (*PathItemMutator) ClearParameters ¶
func (m *PathItemMutator) ClearParameters() *PathItemMutator
ClearParameters clears all elements in parameters
func (*PathItemMutator) Delete ¶
func (m *PathItemMutator) Delete(v Operation) *PathItemMutator
func (*PathItemMutator) Extension ¶
func (m *PathItemMutator) Extension(name string, value interface{}) *PathItemMutator
Extension sets an arbitrary extension field in PathItem
func (*PathItemMutator) Get ¶
func (m *PathItemMutator) Get(v Operation) *PathItemMutator
func (*PathItemMutator) Head ¶
func (m *PathItemMutator) Head(v Operation) *PathItemMutator
func (*PathItemMutator) Options ¶
func (m *PathItemMutator) Options(v Operation) *PathItemMutator
func (*PathItemMutator) Parameter ¶
func (m *PathItemMutator) Parameter(value Parameter) *PathItemMutator
Parameter appends a value to parameters
func (*PathItemMutator) Patch ¶
func (m *PathItemMutator) Patch(v Operation) *PathItemMutator
func (*PathItemMutator) Post ¶
func (m *PathItemMutator) Post(v Operation) *PathItemMutator
func (*PathItemMutator) Put ¶
func (m *PathItemMutator) Put(v Operation) *PathItemMutator
func (*PathItemMutator) Trace ¶
func (m *PathItemMutator) Trace(v Operation) *PathItemMutator
type PathItemVisitor ¶
PathItemVisitor is an interface for objects that knows how to process PathItem elements while traversing the OpenAPI structure
type Paths ¶
type Paths interface { Paths() *PathItemMapIterator Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Paths IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator }
type PathsBuilder ¶
type PathsBuilder struct {
// contains filtered or unexported fields
}
PathsBuilder is used to build an instance of Paths. The user must call `Build()` after providing all the necessary information to build an instance of Paths. Builders may NOT be reused. It must be created for every instance of Paths that you want to create
func NewPaths ¶
func NewPaths(options ...Option) *PathsBuilder
NewPaths creates a new builder object for Paths
func (*PathsBuilder) Build ¶
func (b *PathsBuilder) Build(options ...Option) (Paths, error)
Build finalizes the building process for Paths and returns the result By default, Build() will validate if the given structure is valid
func (*PathsBuilder) Extension ¶
func (b *PathsBuilder) Extension(name string, value interface{}) *PathsBuilder
Extension sets an arbitrary element (an extension) to the object Paths. The extension name should start with a "x-"
func (*PathsBuilder) MustBuild ¶
func (b *PathsBuilder) MustBuild(options ...Option) Paths
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*PathsBuilder) Path ¶
func (b *PathsBuilder) Path(path string, item PathItem) *PathsBuilder
Path sets the path item for path `path` to `item`
func (*PathsBuilder) Paths ¶
func (b *PathsBuilder) Paths(v PathItemMap) *PathsBuilder
Paths sets the paths field for object Paths.
func (*PathsBuilder) Reference ¶
func (b *PathsBuilder) Reference(v string) *PathsBuilder
Reference sets the $ref (reference) field for object Paths.
type PathsMutator ¶
type PathsMutator struct {
// contains filtered or unexported fields
}
PathsMutator is used to build an instance of Paths. The user must call `Apply()` after providing all the necessary information to the new instance of Paths with new values
func MutatePaths ¶
func MutatePaths(v Paths, options ...Option) *PathsMutator
MutatePaths creates a new mutator object for Paths Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*PathsMutator) Apply ¶
func (m *PathsMutator) Apply() error
Apply finalizes the matuation process for Paths and returns the result
func (*PathsMutator) Extension ¶
func (m *PathsMutator) Extension(name string, value interface{}) *PathsMutator
Extension sets an arbitrary extension field in Paths
func (*PathsMutator) Path ¶
func (m *PathsMutator) Path(path string, item PathItem) *PathsMutator
Path sets the path item for path `path` to `item`
type PathsVisitor ¶
PathsVisitor is an interface for objects that knows how to process Paths elements while traversing the OpenAPI structure
type PrimitiveType ¶
type PrimitiveType string
const ( Invalid PrimitiveType = "invalid" Integer PrimitiveType = "integer" Number PrimitiveType = "number" String PrimitiveType = "string" Boolean PrimitiveType = "boolean" Object PrimitiveType = "object" Array PrimitiveType = "array" File PrimitiveType = "file" Null PrimitiveType = "null" )
func GuessSchemaType ¶
func GuessSchemaType(s Schema) PrimitiveType
GuessSchemaType returns the type declared in the Schema, or if not present, attempts to guess by the presence of certain fields. In case it can't determine the type, return Invalid
func (PrimitiveType) IsValid ¶
func (p PrimitiveType) IsValid() bool
type QueryJSONer ¶
type ResolveError ¶
type ResolveError interface {
Fatal() bool
}
ResolveError is returned when Resolver fails to resolve a reference (`$ref`)
type Resolver ¶
type Resolver interface { // Resolves a JSON reference. In very rare occasions where // you do not want to actually resolve the value but allow // processing to continue, you may return an error value // that implements ResolveError and return false for the // `Fatal` method. Resolve(string) (interface{}, error) }
Resolver resolves JSON references (`$ref`)
func NewResolver ¶
type Response ¶
type Response interface { Name() string StatusCode() string Description() string Schema() Schema Headers() *HeaderMapIterator Examples() *ExampleMapIterator Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Response IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator // contains filtered or unexported methods }
type ResponseBuilder ¶
type ResponseBuilder struct {
// contains filtered or unexported fields
}
ResponseBuilder is used to build an instance of Response. The user must call `Build()` after providing all the necessary information to build an instance of Response. Builders may NOT be reused. It must be created for every instance of Response that you want to create
func NewResponse ¶
func NewResponse(description string, options ...Option) *ResponseBuilder
NewResponse creates a new builder object for Response
func (*ResponseBuilder) Build ¶
func (b *ResponseBuilder) Build(options ...Option) (Response, error)
Build finalizes the building process for Response and returns the result By default, Build() will validate if the given structure is valid
func (*ResponseBuilder) Examples ¶
func (b *ResponseBuilder) Examples(v ExampleMap) *ResponseBuilder
Examples sets the examples field for object Response.
func (*ResponseBuilder) Extension ¶
func (b *ResponseBuilder) Extension(name string, value interface{}) *ResponseBuilder
Extension sets an arbitrary element (an extension) to the object Response. The extension name should start with a "x-"
func (*ResponseBuilder) Headers ¶
func (b *ResponseBuilder) Headers(v HeaderMap) *ResponseBuilder
Headers sets the headers field for object Response.
func (*ResponseBuilder) MustBuild ¶
func (b *ResponseBuilder) MustBuild(options ...Option) Response
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*ResponseBuilder) Name ¶
func (b *ResponseBuilder) Name(v string) *ResponseBuilder
Name sets the name field for object Response.
func (*ResponseBuilder) Reference ¶
func (b *ResponseBuilder) Reference(v string) *ResponseBuilder
Reference sets the $ref (reference) field for object Response.
func (*ResponseBuilder) Schema ¶
func (b *ResponseBuilder) Schema(v Schema) *ResponseBuilder
Schema sets the schema field for object Response.
func (*ResponseBuilder) StatusCode ¶
func (b *ResponseBuilder) StatusCode(v string) *ResponseBuilder
StatusCode sets the statusCode field for object Response.
type ResponseMap ¶
type ResponseMap map[ResponseMapKey]Response
func (*ResponseMap) Clear ¶
func (v *ResponseMap) Clear() error
Clear removes all elements from ResponseMap
func (ResponseMap) QueryJSON ¶
func (v ResponseMap) QueryJSON(path string) (ret interface{}, ok bool)
QueryJSON is used to query an element within the document Using jsonref
func (*ResponseMap) UnmarshalJSON ¶
func (v *ResponseMap) UnmarshalJSON(data []byte) error
UnmarshalJSON takes a JSON buffer and properly populates `v`
func (*ResponseMap) Validate ¶
func (v *ResponseMap) Validate(recurse bool) error
Validate checks the correctness of values in ResponseMap
type ResponseMapIterator ¶
type ResponseMapIterator struct {
// contains filtered or unexported fields
}
func (*ResponseMapIterator) Item ¶
func (iter *ResponseMapIterator) Item() (string, Response)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ResponseMapKey ¶
type ResponseMapKey = string
type ResponseMutator ¶
type ResponseMutator struct {
// contains filtered or unexported fields
}
ResponseMutator is used to build an instance of Response. The user must call `Apply()` after providing all the necessary information to the new instance of Response with new values
func MutateResponse ¶
func MutateResponse(v Response, options ...Option) *ResponseMutator
MutateResponse creates a new mutator object for Response Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*ResponseMutator) Apply ¶
func (m *ResponseMutator) Apply() error
Apply finalizes the matuation process for Response and returns the result
func (*ResponseMutator) ClearExamples ¶
func (m *ResponseMutator) ClearExamples() *ResponseMutator
ClearExamples removes all values in examples field
func (*ResponseMutator) ClearHeaders ¶
func (m *ResponseMutator) ClearHeaders() *ResponseMutator
ClearHeaders removes all values in headers field
func (*ResponseMutator) Description ¶
func (m *ResponseMutator) Description(v string) *ResponseMutator
Description sets the Description field for object Response.
func (*ResponseMutator) Example ¶
func (m *ResponseMutator) Example(key ExampleMapKey, value interface{}) *ResponseMutator
Example sets the value of examples
func (*ResponseMutator) Extension ¶
func (m *ResponseMutator) Extension(name string, value interface{}) *ResponseMutator
Extension sets an arbitrary extension field in Response
func (*ResponseMutator) Header ¶
func (m *ResponseMutator) Header(key HeaderMapKey, value Header) *ResponseMutator
Header sets the value of headers
func (*ResponseMutator) Name ¶
func (m *ResponseMutator) Name(v string) *ResponseMutator
Name sets the Name field for object Response.
func (*ResponseMutator) Schema ¶
func (m *ResponseMutator) Schema(v Schema) *ResponseMutator
Schema sets the Schema field for object Response.
func (*ResponseMutator) StatusCode ¶
func (m *ResponseMutator) StatusCode(v string) *ResponseMutator
StatusCode sets the StatusCode field for object Response.
type ResponseVisitor ¶
ResponseVisitor is an interface for objects that knows how to process Response elements while traversing the OpenAPI structure
type ResponsesBuilder ¶
type ResponsesBuilder struct {
// contains filtered or unexported fields
}
ResponsesBuilder is used to build an instance of Responses. The user must call `Build()` after providing all the necessary information to build an instance of Responses. Builders may NOT be reused. It must be created for every instance of Responses that you want to create
func NewResponses ¶
func NewResponses(options ...Option) *ResponsesBuilder
NewResponses creates a new builder object for Responses
func (*ResponsesBuilder) Build ¶
func (b *ResponsesBuilder) Build(options ...Option) (Responses, error)
Build finalizes the building process for Responses and returns the result By default, Build() will validate if the given structure is valid
func (*ResponsesBuilder) Default ¶
func (b *ResponsesBuilder) Default(v Response) *ResponsesBuilder
Default sets the defaultValue field for object Responses.
func (*ResponsesBuilder) Extension ¶
func (b *ResponsesBuilder) Extension(name string, value interface{}) *ResponsesBuilder
Extension sets an arbitrary element (an extension) to the object Responses. The extension name should start with a "x-"
func (*ResponsesBuilder) MustBuild ¶
func (b *ResponsesBuilder) MustBuild(options ...Option) Responses
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*ResponsesBuilder) Reference ¶
func (b *ResponsesBuilder) Reference(v string) *ResponsesBuilder
Reference sets the $ref (reference) field for object Responses.
func (*ResponsesBuilder) Response ¶
func (b *ResponsesBuilder) Response(code string, v Response) *ResponsesBuilder
Response sets the response for status code `code` to `v`
func (*ResponsesBuilder) Responses ¶
func (b *ResponsesBuilder) Responses(v ResponseMap) *ResponsesBuilder
Responses sets the responses field for object Responses.
type ResponsesMutator ¶
type ResponsesMutator struct {
// contains filtered or unexported fields
}
ResponsesMutator is used to build an instance of Responses. The user must call `Apply()` after providing all the necessary information to the new instance of Responses with new values
func MutateResponses ¶
func MutateResponses(v Responses, options ...Option) *ResponsesMutator
MutateResponses creates a new mutator object for Responses Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*ResponsesMutator) Apply ¶
func (m *ResponsesMutator) Apply() error
Apply finalizes the matuation process for Responses and returns the result
func (*ResponsesMutator) Default ¶
func (m *ResponsesMutator) Default(v Response) *ResponsesMutator
Default sets the Default field for object Responses.
func (*ResponsesMutator) Extension ¶
func (m *ResponsesMutator) Extension(name string, value interface{}) *ResponsesMutator
Extension sets an arbitrary extension field in Responses
func (*ResponsesMutator) Response ¶
func (m *ResponsesMutator) Response(key ResponseMapKey, value Response) *ResponsesMutator
type ResponsesVisitor ¶
ResponsesVisitor is an interface for objects that knows how to process Responses elements while traversing the OpenAPI structure
type Schema ¶
type Schema interface { Name() string Type() PrimitiveType Format() string Title() string HasMultipleOf() bool MultipleOf() float64 HasMaximum() bool Maximum() float64 HasExclusiveMaximum() bool ExclusiveMaximum() float64 HasMinimum() bool Minimum() float64 HasExclusiveMinimum() bool ExclusiveMinimum() float64 HasMaxLength() bool MaxLength() int HasMinLength() bool MinLength() int Pattern() string HasMaxItems() bool MaxItems() int HasMinItems() bool MinItems() int HasUniqueItems() bool UniqueItems() bool HasMaxProperties() bool MaxProperties() int HasMinProperties() bool MinProperties() int Required() *StringListIterator Enum() *InterfaceListIterator AllOf() *SchemaListIterator Items() Schema Properties() *SchemaMapIterator AdditionaProperties() *SchemaMapIterator Default() interface{} Discriminator() string ReadOnly() bool ExternalDocs() ExternalDocumentation Example() interface{} Deprecated() bool XML() XML Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Schema IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator IsRequiredProperty(string) bool IsValid() bool SchemaConverter }
func MergeSchemas ¶
Merges two schemas, and creates a new one.
Schemas that have JSON references are not supported.
Only objects and arrays are supported. Both of the specified schemas must be of the same primitive type.
If there are ambiquities such as duplicate fields defined in both schemas, it returns an error.
The resulting schema is always unnamed.
func MergedSchema ¶
MergedSchema is a utility function to automatically return a merged schema in presence of 'allOf' element. If it does not exist, returns the given schema unchanged.
This function requires an external resolver, as it may be the case that we may need to resolve definitions
type SchemaBuilder ¶
type SchemaBuilder struct {
// contains filtered or unexported fields
}
SchemaBuilder is used to build an instance of Schema. The user must call `Build()` after providing all the necessary information to build an instance of Schema. Builders may NOT be reused. It must be created for every instance of Schema that you want to create
func NewSchema ¶
func NewSchema(options ...Option) *SchemaBuilder
NewSchema creates a new builder object for Schema
func (*SchemaBuilder) AdditionaProperties ¶
func (b *SchemaBuilder) AdditionaProperties(v SchemaMap) *SchemaBuilder
AdditionaProperties sets the additionaProperties field for object Schema.
func (*SchemaBuilder) AllOf ¶
func (b *SchemaBuilder) AllOf(v ...Schema) *SchemaBuilder
AllOf sets the allOf field for object Schema.
func (*SchemaBuilder) Build ¶
func (b *SchemaBuilder) Build(options ...Option) (Schema, error)
Build finalizes the building process for Schema and returns the result By default, Build() will validate if the given structure is valid
func (*SchemaBuilder) Default ¶
func (b *SchemaBuilder) Default(v interface{}) *SchemaBuilder
Default sets the defaultValue field for object Schema.
func (*SchemaBuilder) Deprecated ¶
func (b *SchemaBuilder) Deprecated(v bool) *SchemaBuilder
Deprecated sets the deprecated field for object Schema.
func (*SchemaBuilder) Discriminator ¶
func (b *SchemaBuilder) Discriminator(v string) *SchemaBuilder
Discriminator sets the discriminator field for object Schema.
func (*SchemaBuilder) Enum ¶
func (b *SchemaBuilder) Enum(v ...interface{}) *SchemaBuilder
Enum sets the enum field for object Schema.
func (*SchemaBuilder) Example ¶
func (b *SchemaBuilder) Example(v interface{}) *SchemaBuilder
Example sets the example field for object Schema.
func (*SchemaBuilder) ExclusiveMaximum ¶
func (b *SchemaBuilder) ExclusiveMaximum(v float64) *SchemaBuilder
ExclusiveMaximum sets the exclusiveMaximum field for object Schema.
func (*SchemaBuilder) ExclusiveMinimum ¶
func (b *SchemaBuilder) ExclusiveMinimum(v float64) *SchemaBuilder
ExclusiveMinimum sets the exclusiveMinimum field for object Schema.
func (*SchemaBuilder) Extension ¶
func (b *SchemaBuilder) Extension(name string, value interface{}) *SchemaBuilder
Extension sets an arbitrary element (an extension) to the object Schema. The extension name should start with a "x-"
func (*SchemaBuilder) ExternalDocs ¶
func (b *SchemaBuilder) ExternalDocs(v ExternalDocumentation) *SchemaBuilder
ExternalDocs sets the externalDocs field for object Schema.
func (*SchemaBuilder) Format ¶
func (b *SchemaBuilder) Format(v string) *SchemaBuilder
Format sets the format field for object Schema.
func (*SchemaBuilder) Items ¶
func (b *SchemaBuilder) Items(v Schema) *SchemaBuilder
Items sets the items field for object Schema.
func (*SchemaBuilder) MaxItems ¶
func (b *SchemaBuilder) MaxItems(v int) *SchemaBuilder
MaxItems sets the maxItems field for object Schema.
func (*SchemaBuilder) MaxLength ¶
func (b *SchemaBuilder) MaxLength(v int) *SchemaBuilder
MaxLength sets the maxLength field for object Schema.
func (*SchemaBuilder) MaxProperties ¶
func (b *SchemaBuilder) MaxProperties(v int) *SchemaBuilder
MaxProperties sets the maxProperties field for object Schema.
func (*SchemaBuilder) Maximum ¶
func (b *SchemaBuilder) Maximum(v float64) *SchemaBuilder
Maximum sets the maximum field for object Schema.
func (*SchemaBuilder) MinItems ¶
func (b *SchemaBuilder) MinItems(v int) *SchemaBuilder
MinItems sets the minItems field for object Schema.
func (*SchemaBuilder) MinLength ¶
func (b *SchemaBuilder) MinLength(v int) *SchemaBuilder
MinLength sets the minLength field for object Schema.
func (*SchemaBuilder) MinProperties ¶
func (b *SchemaBuilder) MinProperties(v int) *SchemaBuilder
MinProperties sets the minProperties field for object Schema.
func (*SchemaBuilder) Minimum ¶
func (b *SchemaBuilder) Minimum(v float64) *SchemaBuilder
Minimum sets the minimum field for object Schema.
func (*SchemaBuilder) MultipleOf ¶
func (b *SchemaBuilder) MultipleOf(v float64) *SchemaBuilder
MultipleOf sets the multipleOf field for object Schema.
func (*SchemaBuilder) MustBuild ¶
func (b *SchemaBuilder) MustBuild(options ...Option) Schema
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*SchemaBuilder) Pattern ¶
func (b *SchemaBuilder) Pattern(v string) *SchemaBuilder
Pattern sets the pattern field for object Schema.
func (*SchemaBuilder) Property ¶
func (b *SchemaBuilder) Property(name string, prop Schema) *SchemaBuilder
func (*SchemaBuilder) ReadOnly ¶
func (b *SchemaBuilder) ReadOnly(v bool) *SchemaBuilder
ReadOnly sets the readOnly field for object Schema.
func (*SchemaBuilder) Reference ¶
func (b *SchemaBuilder) Reference(v string) *SchemaBuilder
Reference sets the $ref (reference) field for object Schema.
func (*SchemaBuilder) Required ¶
func (b *SchemaBuilder) Required(v ...string) *SchemaBuilder
Required sets the required field for object Schema.
func (*SchemaBuilder) Title ¶
func (b *SchemaBuilder) Title(v string) *SchemaBuilder
Title sets the title field for object Schema.
func (*SchemaBuilder) Type ¶
func (b *SchemaBuilder) Type(v PrimitiveType) *SchemaBuilder
Type sets the typ field for object Schema.
func (*SchemaBuilder) UniqueItems ¶
func (b *SchemaBuilder) UniqueItems(v bool) *SchemaBuilder
UniqueItems sets the uniqueItems field for object Schema.
func (*SchemaBuilder) XML ¶
func (b *SchemaBuilder) XML(v XML) *SchemaBuilder
XML sets the xml field for object Schema.
type SchemaConverter ¶
SchemaConverter is available for those types which resemble a Schema object, such as Parameter and Items. The resulting Schema will not be 100% compatible as the original object as available fields differ slightly, but should be close enough to be used interchangeably.
type SchemaList ¶
type SchemaList []Schema
func (*SchemaList) Clear ¶
func (v *SchemaList) Clear() error
Clear removes all values from SchemaList
func (*SchemaList) UnmarshalJSON ¶
func (v *SchemaList) UnmarshalJSON(data []byte) error
UnmarshalJSON defines how SchemaList is deserialized from JSON
func (*SchemaList) Validate ¶
func (v *SchemaList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type SchemaListIterator ¶
type SchemaListIterator struct {
// contains filtered or unexported fields
}
func (*SchemaListIterator) Item ¶
func (iter *SchemaListIterator) Item() Schema
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type SchemaMap ¶
type SchemaMap map[SchemaMapKey]Schema
func (SchemaMap) QueryJSON ¶
QueryJSON is used to query an element within the document Using jsonref
func (*SchemaMap) UnmarshalJSON ¶
UnmarshalJSON takes a JSON buffer and properly populates `v`
type SchemaMapIterator ¶
type SchemaMapIterator struct {
// contains filtered or unexported fields
}
func (*SchemaMapIterator) Item ¶
func (iter *SchemaMapIterator) Item() (string, Schema)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type SchemaMapKey ¶
type SchemaMapKey = string
type SchemaMutator ¶
type SchemaMutator struct {
// contains filtered or unexported fields
}
SchemaMutator is used to build an instance of Schema. The user must call `Apply()` after providing all the necessary information to the new instance of Schema with new values
func MutateSchema ¶
func MutateSchema(v Schema, options ...Option) *SchemaMutator
MutateSchema creates a new mutator object for Schema Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*SchemaMutator) AdditionaProperty ¶
func (m *SchemaMutator) AdditionaProperty(key SchemaMapKey, value Schema) *SchemaMutator
AdditionaProperty sets the value of additionaProperties
func (*SchemaMutator) AllOf ¶
func (m *SchemaMutator) AllOf(value Schema) *SchemaMutator
AllOf appends a value to allOf
func (*SchemaMutator) Apply ¶
func (m *SchemaMutator) Apply() error
Apply finalizes the matuation process for Schema and returns the result
func (*SchemaMutator) ClearAdditionaProperties ¶
func (m *SchemaMutator) ClearAdditionaProperties() *SchemaMutator
ClearAdditionaProperties removes all values in additionaProperties field
func (*SchemaMutator) ClearAllOf ¶
func (m *SchemaMutator) ClearAllOf() *SchemaMutator
ClearAllOf clears all elements in allOf
func (*SchemaMutator) ClearEnum ¶
func (m *SchemaMutator) ClearEnum() *SchemaMutator
ClearEnum clears all elements in enum
func (*SchemaMutator) ClearExclusiveMaximum ¶
func (m *SchemaMutator) ClearExclusiveMaximum() *SchemaMutator
ClearExclusiveMaximum clears the exclusiveMaximum field
func (*SchemaMutator) ClearExclusiveMinimum ¶
func (m *SchemaMutator) ClearExclusiveMinimum() *SchemaMutator
ClearExclusiveMinimum clears the exclusiveMinimum field
func (*SchemaMutator) ClearMaxItems ¶
func (m *SchemaMutator) ClearMaxItems() *SchemaMutator
ClearMaxItems clears the maxItems field
func (*SchemaMutator) ClearMaxLength ¶
func (m *SchemaMutator) ClearMaxLength() *SchemaMutator
ClearMaxLength clears the maxLength field
func (*SchemaMutator) ClearMaxProperties ¶
func (m *SchemaMutator) ClearMaxProperties() *SchemaMutator
ClearMaxProperties clears the maxProperties field
func (*SchemaMutator) ClearMaximum ¶
func (m *SchemaMutator) ClearMaximum() *SchemaMutator
ClearMaximum clears the maximum field
func (*SchemaMutator) ClearMinItems ¶
func (m *SchemaMutator) ClearMinItems() *SchemaMutator
ClearMinItems clears the minItems field
func (*SchemaMutator) ClearMinLength ¶
func (m *SchemaMutator) ClearMinLength() *SchemaMutator
ClearMinLength clears the minLength field
func (*SchemaMutator) ClearMinProperties ¶
func (m *SchemaMutator) ClearMinProperties() *SchemaMutator
ClearMinProperties clears the minProperties field
func (*SchemaMutator) ClearMinimum ¶
func (m *SchemaMutator) ClearMinimum() *SchemaMutator
ClearMinimum clears the minimum field
func (*SchemaMutator) ClearMultipleOf ¶
func (m *SchemaMutator) ClearMultipleOf() *SchemaMutator
ClearMultipleOf clears the multipleOf field
func (*SchemaMutator) ClearProperties ¶
func (m *SchemaMutator) ClearProperties() *SchemaMutator
ClearProperties removes all values in properties field
func (*SchemaMutator) ClearRequired ¶
func (m *SchemaMutator) ClearRequired() *SchemaMutator
ClearRequired clears all elements in required
func (*SchemaMutator) ClearUniqueItems ¶
func (m *SchemaMutator) ClearUniqueItems() *SchemaMutator
ClearUniqueItems clears the uniqueItems field
func (*SchemaMutator) Default ¶
func (m *SchemaMutator) Default(v interface{}) *SchemaMutator
Default sets the Default field for object Schema.
func (*SchemaMutator) Deprecated ¶
func (m *SchemaMutator) Deprecated(v bool) *SchemaMutator
Deprecated sets the Deprecated field for object Schema.
func (*SchemaMutator) Discriminator ¶
func (m *SchemaMutator) Discriminator(v string) *SchemaMutator
Discriminator sets the Discriminator field for object Schema.
func (*SchemaMutator) Enum ¶
func (m *SchemaMutator) Enum(value interface{}) *SchemaMutator
Enum appends a value to enum
func (*SchemaMutator) Example ¶
func (m *SchemaMutator) Example(v interface{}) *SchemaMutator
Example sets the Example field for object Schema.
func (*SchemaMutator) ExclusiveMaximum ¶
func (m *SchemaMutator) ExclusiveMaximum(v float64) *SchemaMutator
ExclusiveMaximum sets the exclusiveMaximum field.
func (*SchemaMutator) ExclusiveMinimum ¶
func (m *SchemaMutator) ExclusiveMinimum(v float64) *SchemaMutator
ExclusiveMinimum sets the exclusiveMinimum field.
func (*SchemaMutator) Extension ¶
func (m *SchemaMutator) Extension(name string, value interface{}) *SchemaMutator
Extension sets an arbitrary extension field in Schema
func (*SchemaMutator) ExternalDocs ¶
func (m *SchemaMutator) ExternalDocs(v ExternalDocumentation) *SchemaMutator
ExternalDocs sets the ExternalDocs field for object Schema.
func (*SchemaMutator) Format ¶
func (m *SchemaMutator) Format(v string) *SchemaMutator
Format sets the Format field for object Schema.
func (*SchemaMutator) Items ¶
func (m *SchemaMutator) Items(v Schema) *SchemaMutator
Items sets the Items field for object Schema.
func (*SchemaMutator) MaxItems ¶
func (m *SchemaMutator) MaxItems(v int) *SchemaMutator
MaxItems sets the maxItems field.
func (*SchemaMutator) MaxLength ¶
func (m *SchemaMutator) MaxLength(v int) *SchemaMutator
MaxLength sets the maxLength field.
func (*SchemaMutator) MaxProperties ¶
func (m *SchemaMutator) MaxProperties(v int) *SchemaMutator
MaxProperties sets the maxProperties field.
func (*SchemaMutator) Maximum ¶
func (m *SchemaMutator) Maximum(v float64) *SchemaMutator
Maximum sets the maximum field.
func (*SchemaMutator) MinItems ¶
func (m *SchemaMutator) MinItems(v int) *SchemaMutator
MinItems sets the minItems field.
func (*SchemaMutator) MinLength ¶
func (m *SchemaMutator) MinLength(v int) *SchemaMutator
MinLength sets the minLength field.
func (*SchemaMutator) MinProperties ¶
func (m *SchemaMutator) MinProperties(v int) *SchemaMutator
MinProperties sets the minProperties field.
func (*SchemaMutator) Minimum ¶
func (m *SchemaMutator) Minimum(v float64) *SchemaMutator
Minimum sets the minimum field.
func (*SchemaMutator) MultipleOf ¶
func (m *SchemaMutator) MultipleOf(v float64) *SchemaMutator
MultipleOf sets the multipleOf field.
func (*SchemaMutator) Name ¶
func (m *SchemaMutator) Name(v string) *SchemaMutator
Name sets the Name field for object Schema.
func (*SchemaMutator) Pattern ¶
func (m *SchemaMutator) Pattern(v string) *SchemaMutator
Pattern sets the Pattern field for object Schema.
func (*SchemaMutator) Property ¶
func (m *SchemaMutator) Property(key SchemaMapKey, value Schema) *SchemaMutator
Property sets the value of properties
func (*SchemaMutator) ReadOnly ¶
func (m *SchemaMutator) ReadOnly(v bool) *SchemaMutator
ReadOnly sets the ReadOnly field for object Schema.
func (*SchemaMutator) Required ¶
func (m *SchemaMutator) Required(value string) *SchemaMutator
Required appends a value to required
func (*SchemaMutator) Title ¶
func (m *SchemaMutator) Title(v string) *SchemaMutator
Title sets the Title field for object Schema.
func (*SchemaMutator) Type ¶
func (m *SchemaMutator) Type(v PrimitiveType) *SchemaMutator
Type sets the Type field for object Schema.
func (*SchemaMutator) UniqueItems ¶
func (m *SchemaMutator) UniqueItems(v bool) *SchemaMutator
UniqueItems sets the uniqueItems field.
func (*SchemaMutator) XML ¶
func (m *SchemaMutator) XML(v XML) *SchemaMutator
XML sets the XML field for object Schema.
type SchemaVisitor ¶
SchemaVisitor is an interface for objects that knows how to process Schema elements while traversing the OpenAPI structure
type SchemeList ¶
type SchemeList []string
func (*SchemeList) Clear ¶
func (v *SchemeList) Clear() error
Clear removes all values from SchemeList
func (*SchemeList) Validate ¶
func (v *SchemeList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type SchemeListIterator ¶
type SchemeListIterator struct {
// contains filtered or unexported fields
}
func (*SchemeListIterator) Item ¶
func (iter *SchemeListIterator) Item() Scheme
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ScopesMap ¶
type ScopesMap map[ScopesMapKey][]string
type ScopesMapIterator ¶
type ScopesMapIterator struct {
// contains filtered or unexported fields
}
func (*ScopesMapIterator) Item ¶
func (iter *ScopesMapIterator) Item() (string, []string)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type ScopesMapKey ¶
type ScopesMapKey = string
type SecurityRequirement ¶
type SecurityRequirement interface { Name() string Scopes() *ScopesMapIterator Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() SecurityRequirement IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator }
type SecurityRequirementBuilder ¶
type SecurityRequirementBuilder struct {
// contains filtered or unexported fields
}
SecurityRequirementBuilder is used to build an instance of SecurityRequirement. The user must call `Build()` after providing all the necessary information to build an instance of SecurityRequirement. Builders may NOT be reused. It must be created for every instance of SecurityRequirement that you want to create
func NewSecurityRequirement ¶
func NewSecurityRequirement(options ...Option) *SecurityRequirementBuilder
NewSecurityRequirement creates a new builder object for SecurityRequirement
func (*SecurityRequirementBuilder) Build ¶
func (b *SecurityRequirementBuilder) Build(options ...Option) (SecurityRequirement, error)
Build finalizes the building process for SecurityRequirement and returns the result By default, Build() will validate if the given structure is valid
func (*SecurityRequirementBuilder) Extension ¶
func (b *SecurityRequirementBuilder) Extension(name string, value interface{}) *SecurityRequirementBuilder
Extension sets an arbitrary element (an extension) to the object SecurityRequirement. The extension name should start with a "x-"
func (*SecurityRequirementBuilder) MustBuild ¶
func (b *SecurityRequirementBuilder) MustBuild(options ...Option) SecurityRequirement
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*SecurityRequirementBuilder) Name ¶
func (b *SecurityRequirementBuilder) Name(v string) *SecurityRequirementBuilder
Name sets the name field for object SecurityRequirement.
func (*SecurityRequirementBuilder) Reference ¶
func (b *SecurityRequirementBuilder) Reference(v string) *SecurityRequirementBuilder
Reference sets the $ref (reference) field for object SecurityRequirement.
type SecurityRequirementList ¶
type SecurityRequirementList []SecurityRequirement
func (*SecurityRequirementList) Clear ¶
func (v *SecurityRequirementList) Clear() error
Clear removes all values from SecurityRequirementList
func (*SecurityRequirementList) UnmarshalJSON ¶
func (v *SecurityRequirementList) UnmarshalJSON(data []byte) error
UnmarshalJSON defines how SecurityRequirementList is deserialized from JSON
func (*SecurityRequirementList) Validate ¶
func (v *SecurityRequirementList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type SecurityRequirementListIterator ¶
type SecurityRequirementListIterator struct {
// contains filtered or unexported fields
}
func (*SecurityRequirementListIterator) Item ¶
func (iter *SecurityRequirementListIterator) Item() SecurityRequirement
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type SecurityRequirementMutator ¶
type SecurityRequirementMutator struct {
// contains filtered or unexported fields
}
SecurityRequirementMutator is used to build an instance of SecurityRequirement. The user must call `Apply()` after providing all the necessary information to the new instance of SecurityRequirement with new values
func MutateSecurityRequirement ¶
func MutateSecurityRequirement(v SecurityRequirement, options ...Option) *SecurityRequirementMutator
MutateSecurityRequirement creates a new mutator object for SecurityRequirement Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*SecurityRequirementMutator) Apply ¶
func (m *SecurityRequirementMutator) Apply() error
Apply finalizes the matuation process for SecurityRequirement and returns the result
func (*SecurityRequirementMutator) Extension ¶
func (m *SecurityRequirementMutator) Extension(name string, value interface{}) *SecurityRequirementMutator
Extension sets an arbitrary extension field in SecurityRequirement
func (*SecurityRequirementMutator) Name ¶
func (m *SecurityRequirementMutator) Name(v string) *SecurityRequirementMutator
Name sets the Name field for object SecurityRequirement.
type SecurityRequirementVisitor ¶
type SecurityRequirementVisitor interface {
VisitSecurityRequirement(context.Context, SecurityRequirement) error
}
SecurityRequirementVisitor is an interface for objects that knows how to process SecurityRequirement elements while traversing the OpenAPI structure
type SecurityScheme ¶
type SecurityScheme interface { Type() string Description() string Name() string In() string Flow() string AuthorizationURL() string TokenURL() string Scopes() *StringMapIterator Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() SecurityScheme IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator }
type SecuritySchemeBuilder ¶
type SecuritySchemeBuilder struct {
// contains filtered or unexported fields
}
SecuritySchemeBuilder is used to build an instance of SecurityScheme. The user must call `Build()` after providing all the necessary information to build an instance of SecurityScheme. Builders may NOT be reused. It must be created for every instance of SecurityScheme that you want to create
func NewSecurityScheme ¶
func NewSecurityScheme(typ string, options ...Option) *SecuritySchemeBuilder
NewSecurityScheme creates a new builder object for SecurityScheme
func (*SecuritySchemeBuilder) AuthorizationURL ¶
func (b *SecuritySchemeBuilder) AuthorizationURL(v string) *SecuritySchemeBuilder
AuthorizationURL sets the authorizationURL field for object SecurityScheme.
func (*SecuritySchemeBuilder) Build ¶
func (b *SecuritySchemeBuilder) Build(options ...Option) (SecurityScheme, error)
Build finalizes the building process for SecurityScheme and returns the result By default, Build() will validate if the given structure is valid
func (*SecuritySchemeBuilder) Description ¶
func (b *SecuritySchemeBuilder) Description(v string) *SecuritySchemeBuilder
Description sets the description field for object SecurityScheme.
func (*SecuritySchemeBuilder) Extension ¶
func (b *SecuritySchemeBuilder) Extension(name string, value interface{}) *SecuritySchemeBuilder
Extension sets an arbitrary element (an extension) to the object SecurityScheme. The extension name should start with a "x-"
func (*SecuritySchemeBuilder) Flow ¶
func (b *SecuritySchemeBuilder) Flow(v string) *SecuritySchemeBuilder
Flow sets the flow field for object SecurityScheme.
func (*SecuritySchemeBuilder) In ¶
func (b *SecuritySchemeBuilder) In(v string) *SecuritySchemeBuilder
In sets the in field for object SecurityScheme.
func (*SecuritySchemeBuilder) MustBuild ¶
func (b *SecuritySchemeBuilder) MustBuild(options ...Option) SecurityScheme
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*SecuritySchemeBuilder) Name ¶
func (b *SecuritySchemeBuilder) Name(v string) *SecuritySchemeBuilder
Name sets the name field for object SecurityScheme.
func (*SecuritySchemeBuilder) Reference ¶
func (b *SecuritySchemeBuilder) Reference(v string) *SecuritySchemeBuilder
Reference sets the $ref (reference) field for object SecurityScheme.
func (*SecuritySchemeBuilder) Scopes ¶
func (b *SecuritySchemeBuilder) Scopes(v StringMap) *SecuritySchemeBuilder
Scopes sets the scopes field for object SecurityScheme.
func (*SecuritySchemeBuilder) TokenURL ¶
func (b *SecuritySchemeBuilder) TokenURL(v string) *SecuritySchemeBuilder
TokenURL sets the tokenURL field for object SecurityScheme.
type SecuritySchemeMap ¶
type SecuritySchemeMap map[SecuritySchemeMapKey]SecurityScheme
func (*SecuritySchemeMap) Clear ¶
func (v *SecuritySchemeMap) Clear() error
Clear removes all elements from SecuritySchemeMap
func (SecuritySchemeMap) QueryJSON ¶
func (v SecuritySchemeMap) QueryJSON(path string) (ret interface{}, ok bool)
QueryJSON is used to query an element within the document Using jsonref
func (*SecuritySchemeMap) UnmarshalJSON ¶
func (v *SecuritySchemeMap) UnmarshalJSON(data []byte) error
UnmarshalJSON takes a JSON buffer and properly populates `v`
func (*SecuritySchemeMap) Validate ¶
func (v *SecuritySchemeMap) Validate(recurse bool) error
Validate checks the correctness of values in SecuritySchemeMap
type SecuritySchemeMapIterator ¶
type SecuritySchemeMapIterator struct {
// contains filtered or unexported fields
}
func (*SecuritySchemeMapIterator) Item ¶
func (iter *SecuritySchemeMapIterator) Item() (string, SecurityScheme)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type SecuritySchemeMapKey ¶
type SecuritySchemeMapKey = string
type SecuritySchemeMutator ¶
type SecuritySchemeMutator struct {
// contains filtered or unexported fields
}
SecuritySchemeMutator is used to build an instance of SecurityScheme. The user must call `Apply()` after providing all the necessary information to the new instance of SecurityScheme with new values
func MutateSecurityScheme ¶
func MutateSecurityScheme(v SecurityScheme, options ...Option) *SecuritySchemeMutator
MutateSecurityScheme creates a new mutator object for SecurityScheme Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*SecuritySchemeMutator) Apply ¶
func (m *SecuritySchemeMutator) Apply() error
Apply finalizes the matuation process for SecurityScheme and returns the result
func (*SecuritySchemeMutator) AuthorizationURL ¶
func (m *SecuritySchemeMutator) AuthorizationURL(v string) *SecuritySchemeMutator
AuthorizationURL sets the AuthorizationURL field for object SecurityScheme.
func (*SecuritySchemeMutator) ClearScopes ¶
func (m *SecuritySchemeMutator) ClearScopes() *SecuritySchemeMutator
ClearScopes removes all values in scopes field
func (*SecuritySchemeMutator) Description ¶
func (m *SecuritySchemeMutator) Description(v string) *SecuritySchemeMutator
Description sets the Description field for object SecurityScheme.
func (*SecuritySchemeMutator) Extension ¶
func (m *SecuritySchemeMutator) Extension(name string, value interface{}) *SecuritySchemeMutator
Extension sets an arbitrary extension field in SecurityScheme
func (*SecuritySchemeMutator) Flow ¶
func (m *SecuritySchemeMutator) Flow(v string) *SecuritySchemeMutator
Flow sets the Flow field for object SecurityScheme.
func (*SecuritySchemeMutator) In ¶
func (m *SecuritySchemeMutator) In(v string) *SecuritySchemeMutator
In sets the In field for object SecurityScheme.
func (*SecuritySchemeMutator) Name ¶
func (m *SecuritySchemeMutator) Name(v string) *SecuritySchemeMutator
Name sets the Name field for object SecurityScheme.
func (*SecuritySchemeMutator) Scope ¶
func (m *SecuritySchemeMutator) Scope(key StringMapKey, value string) *SecuritySchemeMutator
Scope sets the value of scopes
func (*SecuritySchemeMutator) TokenURL ¶
func (m *SecuritySchemeMutator) TokenURL(v string) *SecuritySchemeMutator
TokenURL sets the TokenURL field for object SecurityScheme.
func (*SecuritySchemeMutator) Type ¶
func (m *SecuritySchemeMutator) Type(v string) *SecuritySchemeMutator
Type sets the Type field for object SecurityScheme.
type SecuritySchemeVisitor ¶
type SecuritySchemeVisitor interface {
VisitSecurityScheme(context.Context, SecurityScheme) error
}
SecuritySchemeVisitor is an interface for objects that knows how to process SecurityScheme elements while traversing the OpenAPI structure
type SliceQueryJSON ¶
type SliceQueryJSON []interface{}
type StringList ¶
type StringList []string
func (*StringList) Clear ¶
func (v *StringList) Clear() error
Clear removes all values from StringList
func (*StringList) Validate ¶
func (v *StringList) Validate(recurse bool) error
Validate checks for the values for correctness. If `recurse` is specified, child elements are also validated
type StringListIterator ¶
type StringListIterator struct {
// contains filtered or unexported fields
}
func (*StringListIterator) Item ¶
func (iter *StringListIterator) Item() string
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type StringListListIterator ¶
type StringListListIterator struct {
// contains filtered or unexported fields
}
func (*StringListListIterator) Item ¶
func (iter *StringListListIterator) Item() []string
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type StringMap ¶
type StringMap map[StringMapKey]string
type StringMapIterator ¶
type StringMapIterator struct {
// contains filtered or unexported fields
}
func (*StringMapIterator) Item ¶
func (iter *StringMapIterator) Item() (string, string)
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type StringMapKey ¶
type StringMapKey = string
type Swagger ¶
type Swagger interface { Version() string Info() Info Host() string BasePath() string Schemes() *SchemeListIterator Consumes() *MIMETypeListIterator Produces() *MIMETypeListIterator Paths() Paths Definitions() *InterfaceMapIterator Parameters() *ParameterMapIterator Responses() *ResponseMapIterator SecurityDefinitions() *SecuritySchemeMapIterator Security() *SecurityRequirementListIterator Tags() *TagListIterator ExternalDocs() ExternalDocumentation Extension(string) (interface{}, bool) Extensions() *ExtensionsIterator Clone() Swagger IsUnresolved() bool MarshalJSON() ([]byte, error) Reference() string Validator QueryJSON(string) (interface{}, bool) }
type SwaggerBuilder ¶
type SwaggerBuilder struct {
// contains filtered or unexported fields
}
SwaggerBuilder is used to build an instance of Swagger. The user must call `Build()` after providing all the necessary information to build an instance of Swagger. Builders may NOT be reused. It must be created for every instance of Swagger that you want to create
func NewSwagger ¶
func NewSwagger(info Info, paths Paths, options ...Option) *SwaggerBuilder
NewSwagger creates a new builder object for Swagger
func (*SwaggerBuilder) BasePath ¶
func (b *SwaggerBuilder) BasePath(v string) *SwaggerBuilder
BasePath sets the basePath field for object Swagger.
func (*SwaggerBuilder) Build ¶
func (b *SwaggerBuilder) Build(options ...Option) (Swagger, error)
Build finalizes the building process for Swagger and returns the result By default, Build() will validate if the given structure is valid
func (*SwaggerBuilder) Consumes ¶
func (b *SwaggerBuilder) Consumes(v ...MIMEType) *SwaggerBuilder
Consumes sets the consumes field for object Swagger.
func (*SwaggerBuilder) Definitions ¶
func (b *SwaggerBuilder) Definitions(v InterfaceMap) *SwaggerBuilder
Definitions sets the definitions field for object Swagger.
func (*SwaggerBuilder) Extension ¶
func (b *SwaggerBuilder) Extension(name string, value interface{}) *SwaggerBuilder
Extension sets an arbitrary element (an extension) to the object Swagger. The extension name should start with a "x-"
func (*SwaggerBuilder) ExternalDocs ¶
func (b *SwaggerBuilder) ExternalDocs(v ExternalDocumentation) *SwaggerBuilder
ExternalDocs sets the externalDocs field for object Swagger.
func (*SwaggerBuilder) Host ¶
func (b *SwaggerBuilder) Host(v string) *SwaggerBuilder
Host sets the host field for object Swagger.
func (*SwaggerBuilder) MustBuild ¶
func (b *SwaggerBuilder) MustBuild(options ...Option) Swagger
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*SwaggerBuilder) Parameters ¶
func (b *SwaggerBuilder) Parameters(v ParameterMap) *SwaggerBuilder
Parameters sets the parameters field for object Swagger.
func (*SwaggerBuilder) Produces ¶
func (b *SwaggerBuilder) Produces(v ...MIMEType) *SwaggerBuilder
Produces sets the produces field for object Swagger.
func (*SwaggerBuilder) Reference ¶
func (b *SwaggerBuilder) Reference(v string) *SwaggerBuilder
Reference sets the $ref (reference) field for object Swagger.
func (*SwaggerBuilder) Responses ¶
func (b *SwaggerBuilder) Responses(v ResponseMap) *SwaggerBuilder
Responses sets the responses field for object Swagger.
func (*SwaggerBuilder) Schemes ¶
func (b *SwaggerBuilder) Schemes(v ...Scheme) *SwaggerBuilder
Schemes sets the schemes field for object Swagger.
func (*SwaggerBuilder) Security ¶
func (b *SwaggerBuilder) Security(v ...SecurityRequirement) *SwaggerBuilder
Security sets the security field for object Swagger.
func (*SwaggerBuilder) SecurityDefinitions ¶
func (b *SwaggerBuilder) SecurityDefinitions(v SecuritySchemeMap) *SwaggerBuilder
SecurityDefinitions sets the securityDefinitions field for object Swagger.
func (*SwaggerBuilder) Tags ¶
func (b *SwaggerBuilder) Tags(v ...Tag) *SwaggerBuilder
Tags sets the tags field for object Swagger.
type SwaggerMutator ¶
type SwaggerMutator struct {
// contains filtered or unexported fields
}
SwaggerMutator is used to build an instance of Swagger. The user must call `Apply()` after providing all the necessary information to the new instance of Swagger with new values
func MutateSwagger ¶
func MutateSwagger(v Swagger, options ...Option) *SwaggerMutator
MutateSwagger creates a new mutator object for Swagger Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*SwaggerMutator) Apply ¶
func (m *SwaggerMutator) Apply() error
Apply finalizes the matuation process for Swagger and returns the result
func (*SwaggerMutator) BasePath ¶
func (m *SwaggerMutator) BasePath(v string) *SwaggerMutator
BasePath sets the BasePath field for object Swagger.
func (*SwaggerMutator) ClearConsumes ¶
func (m *SwaggerMutator) ClearConsumes() *SwaggerMutator
ClearConsumes clears all elements in consumes
func (*SwaggerMutator) ClearDefinitions ¶
func (m *SwaggerMutator) ClearDefinitions() *SwaggerMutator
ClearDefinitions removes all values in definitions field
func (*SwaggerMutator) ClearParameters ¶
func (m *SwaggerMutator) ClearParameters() *SwaggerMutator
ClearParameters removes all values in parameters field
func (*SwaggerMutator) ClearProduces ¶
func (m *SwaggerMutator) ClearProduces() *SwaggerMutator
ClearProduces clears all elements in produces
func (*SwaggerMutator) ClearResponses ¶
func (m *SwaggerMutator) ClearResponses() *SwaggerMutator
ClearResponses removes all values in responses field
func (*SwaggerMutator) ClearSchemes ¶
func (m *SwaggerMutator) ClearSchemes() *SwaggerMutator
ClearSchemes clears all elements in schemes
func (*SwaggerMutator) ClearSecurity ¶
func (m *SwaggerMutator) ClearSecurity() *SwaggerMutator
ClearSecurity clears all elements in security
func (*SwaggerMutator) ClearSecurityDefinitions ¶
func (m *SwaggerMutator) ClearSecurityDefinitions() *SwaggerMutator
ClearSecurityDefinitions removes all values in securityDefinitions field
func (*SwaggerMutator) ClearTags ¶
func (m *SwaggerMutator) ClearTags() *SwaggerMutator
ClearTags clears all elements in tags
func (*SwaggerMutator) Consume ¶
func (m *SwaggerMutator) Consume(value string) *SwaggerMutator
Consume appends a value to consumes
func (*SwaggerMutator) Definition ¶
func (m *SwaggerMutator) Definition(key InterfaceMapKey, value interface{}) *SwaggerMutator
Definition sets the value of definitions
func (*SwaggerMutator) Extension ¶
func (m *SwaggerMutator) Extension(name string, value interface{}) *SwaggerMutator
Extension sets an arbitrary extension field in Swagger
func (*SwaggerMutator) ExternalDocs ¶
func (m *SwaggerMutator) ExternalDocs(v ExternalDocumentation) *SwaggerMutator
ExternalDocs sets the ExternalDocs field for object Swagger.
func (*SwaggerMutator) Host ¶
func (m *SwaggerMutator) Host(v string) *SwaggerMutator
Host sets the Host field for object Swagger.
func (*SwaggerMutator) Info ¶
func (m *SwaggerMutator) Info(v Info) *SwaggerMutator
Info sets the Info field for object Swagger.
func (*SwaggerMutator) Parameter ¶
func (m *SwaggerMutator) Parameter(key ParameterMapKey, value Parameter) *SwaggerMutator
Parameter sets the value of parameters
func (*SwaggerMutator) Paths ¶
func (m *SwaggerMutator) Paths(v Paths) *SwaggerMutator
Paths sets the Paths field for object Swagger.
func (*SwaggerMutator) Produce ¶
func (m *SwaggerMutator) Produce(value string) *SwaggerMutator
Produce appends a value to produces
func (*SwaggerMutator) Response ¶
func (m *SwaggerMutator) Response(key ResponseMapKey, value Response) *SwaggerMutator
Response sets the value of responses
func (*SwaggerMutator) Scheme ¶
func (m *SwaggerMutator) Scheme(value string) *SwaggerMutator
Scheme appends a value to schemes
func (*SwaggerMutator) Security ¶
func (m *SwaggerMutator) Security(value SecurityRequirement) *SwaggerMutator
Security appends a value to security
func (*SwaggerMutator) SecurityDefinition ¶
func (m *SwaggerMutator) SecurityDefinition(key SecuritySchemeMapKey, value SecurityScheme) *SwaggerMutator
SecurityDefinition sets the value of securityDefinitions
func (*SwaggerMutator) Tag ¶
func (m *SwaggerMutator) Tag(value Tag) *SwaggerMutator
Tag appends a value to tags
func (*SwaggerMutator) Version ¶
func (m *SwaggerMutator) Version(v string) *SwaggerMutator
Version sets the Version field for object Swagger.
type SwaggerVisitor ¶
SwaggerVisitor is an interface for objects that knows how to process Swagger elements while traversing the OpenAPI structure
type TagBuilder ¶
type TagBuilder struct {
// contains filtered or unexported fields
}
TagBuilder is used to build an instance of Tag. The user must call `Build()` after providing all the necessary information to build an instance of Tag. Builders may NOT be reused. It must be created for every instance of Tag that you want to create
func NewTag ¶
func NewTag(name string, options ...Option) *TagBuilder
NewTag creates a new builder object for Tag
func (*TagBuilder) Build ¶
func (b *TagBuilder) Build(options ...Option) (Tag, error)
Build finalizes the building process for Tag and returns the result By default, Build() will validate if the given structure is valid
func (*TagBuilder) Description ¶
func (b *TagBuilder) Description(v string) *TagBuilder
Description sets the description field for object Tag.
func (*TagBuilder) Extension ¶
func (b *TagBuilder) Extension(name string, value interface{}) *TagBuilder
Extension sets an arbitrary element (an extension) to the object Tag. The extension name should start with a "x-"
func (*TagBuilder) ExternalDocs ¶
func (b *TagBuilder) ExternalDocs(v ExternalDocumentation) *TagBuilder
ExternalDocs sets the externalDocs field for object Tag.
func (*TagBuilder) MustBuild ¶
func (b *TagBuilder) MustBuild(options ...Option) Tag
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*TagBuilder) Reference ¶
func (b *TagBuilder) Reference(v string) *TagBuilder
Reference sets the $ref (reference) field for object Tag.
type TagList ¶
type TagList []Tag
func (*TagList) UnmarshalJSON ¶
UnmarshalJSON defines how TagList is deserialized from JSON
type TagListIterator ¶
type TagListIterator struct {
// contains filtered or unexported fields
}
func (*TagListIterator) Item ¶
func (iter *TagListIterator) Item() Tag
Item returns the next item in this iterator. Make sure to call Next() before hand to check if the iterator has more items
type TagMutator ¶
type TagMutator struct {
// contains filtered or unexported fields
}
TagMutator is used to build an instance of Tag. The user must call `Apply()` after providing all the necessary information to the new instance of Tag with new values
func MutateTag ¶
func MutateTag(v Tag, options ...Option) *TagMutator
MutateTag creates a new mutator object for Tag Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*TagMutator) Apply ¶
func (m *TagMutator) Apply() error
Apply finalizes the matuation process for Tag and returns the result
func (*TagMutator) Description ¶
func (m *TagMutator) Description(v string) *TagMutator
Description sets the Description field for object Tag.
func (*TagMutator) Extension ¶
func (m *TagMutator) Extension(name string, value interface{}) *TagMutator
Extension sets an arbitrary extension field in Tag
func (*TagMutator) ExternalDocs ¶
func (m *TagMutator) ExternalDocs(v ExternalDocumentation) *TagMutator
ExternalDocs sets the ExternalDocs field for object Tag.
func (*TagMutator) Name ¶
func (m *TagMutator) Name(v string) *TagMutator
Name sets the Name field for object Tag.
type TagVisitor ¶
TagVisitor is an interface for objects that knows how to process Tag elements while traversing the OpenAPI structure
type XMLBuilder ¶
type XMLBuilder struct {
// contains filtered or unexported fields
}
XMLBuilder is used to build an instance of XML. The user must call `Build()` after providing all the necessary information to build an instance of XML. Builders may NOT be reused. It must be created for every instance of XML that you want to create
func NewXML ¶
func NewXML(options ...Option) *XMLBuilder
NewXML creates a new builder object for XML
func (*XMLBuilder) Attribute ¶
func (b *XMLBuilder) Attribute(v bool) *XMLBuilder
Attribute sets the attribute field for object XML.
func (*XMLBuilder) Build ¶
func (b *XMLBuilder) Build(options ...Option) (XML, error)
Build finalizes the building process for XML and returns the result By default, Build() will validate if the given structure is valid
func (*XMLBuilder) Extension ¶
func (b *XMLBuilder) Extension(name string, value interface{}) *XMLBuilder
Extension sets an arbitrary element (an extension) to the object XML. The extension name should start with a "x-"
func (*XMLBuilder) MustBuild ¶
func (b *XMLBuilder) MustBuild(options ...Option) XML
MustBuild is a convenience function for those time when you know that the result of the builder must be successful
func (*XMLBuilder) Name ¶
func (b *XMLBuilder) Name(v string) *XMLBuilder
Name sets the name field for object XML.
func (*XMLBuilder) Namespace ¶
func (b *XMLBuilder) Namespace(v string) *XMLBuilder
Namespace sets the namespace field for object XML.
func (*XMLBuilder) Prefix ¶
func (b *XMLBuilder) Prefix(v string) *XMLBuilder
Prefix sets the prefix field for object XML.
func (*XMLBuilder) Reference ¶
func (b *XMLBuilder) Reference(v string) *XMLBuilder
Reference sets the $ref (reference) field for object XML.
func (*XMLBuilder) Wrapped ¶
func (b *XMLBuilder) Wrapped(v bool) *XMLBuilder
Wrapped sets the wrapped field for object XML.
type XMLMutator ¶
type XMLMutator struct {
// contains filtered or unexported fields
}
XMLMutator is used to build an instance of XML. The user must call `Apply()` after providing all the necessary information to the new instance of XML with new values
func MutateXML ¶
func MutateXML(v XML, options ...Option) *XMLMutator
MutateXML creates a new mutator object for XML Operations on the mutator are safe to be used concurrently, except for when calling `Apply()`, where the user is responsible for restricting access to the target object to be mutated
func (*XMLMutator) Apply ¶
func (m *XMLMutator) Apply() error
Apply finalizes the matuation process for XML and returns the result
func (*XMLMutator) Attribute ¶
func (m *XMLMutator) Attribute(v bool) *XMLMutator
Attribute sets the Attribute field for object XML.
func (*XMLMutator) Extension ¶
func (m *XMLMutator) Extension(name string, value interface{}) *XMLMutator
Extension sets an arbitrary extension field in XML
func (*XMLMutator) Name ¶
func (m *XMLMutator) Name(v string) *XMLMutator
Name sets the Name field for object XML.
func (*XMLMutator) Namespace ¶
func (m *XMLMutator) Namespace(v string) *XMLMutator
Namespace sets the Namespace field for object XML.
func (*XMLMutator) Prefix ¶
func (m *XMLMutator) Prefix(v string) *XMLMutator
Prefix sets the Prefix field for object XML.
func (*XMLMutator) Wrapped ¶
func (m *XMLMutator) Wrapped(v bool) *XMLMutator
Wrapped sets the Wrapped field for object XML.
Source Files ¶
- cloner_gen.go
- contact_accessors_gen.go
- contact_builder_gen.go
- contact_json_gen.go
- contact_mutator_gen.go
- contact_visitor_gen.go
- example_map_gen.go
- external_documentation_accessors_gen.go
- external_documentation_builder_gen.go
- external_documentation_json_gen.go
- external_documentation_mutator_gen.go
- external_documentation_visitor_gen.go
- header.go
- header_accessors_gen.go
- header_builder_gen.go
- header_json_gen.go
- header_map_gen.go
- header_mutator_gen.go
- header_visitor_gen.go
- info_accessors_gen.go
- info_builder_gen.go
- info_json_gen.go
- info_mutator_gen.go
- info_visitor_gen.go
- interface.go
- interface_gen.go
- interface_list_gen.go
- interface_map_gen.go
- items.go
- items_accessors_gen.go
- items_builder_gen.go
- items_json_gen.go
- items_mutator_gen.go
- items_visitor_gen.go
- iterator_gen.go
- license_accessors_gen.go
- license_builder_gen.go
- license_json_gen.go
- license_mutator_gen.go
- license_visitor_gen.go
- mime_type_list_gen.go
- openapi.go
- operation.go
- operation_accessors_gen.go
- operation_builder_gen.go
- operation_json_gen.go
- operation_mutator_gen.go
- operation_visitor_gen.go
- options.go
- parameter.go
- parameter_accessors_gen.go
- parameter_builder_gen.go
- parameter_json_gen.go
- parameter_list_gen.go
- parameter_map_gen.go
- parameter_mutator_gen.go
- parameter_visitor_gen.go
- path_item.go
- path_item_accessors_gen.go
- path_item_builder.go
- path_item_builder_gen.go
- path_item_json_gen.go
- path_item_map_gen.go
- path_item_mutator.go
- path_item_mutator_gen.go
- path_item_visitor_gen.go
- paths.go
- paths_accessors_gen.go
- paths_builder.go
- paths_builder_gen.go
- paths_json.go
- paths_json_gen.go
- paths_mutator.go
- paths_mutator_gen.go
- paths_visitor_gen.go
- primitive_types.go
- resolver.go
- response.go
- response_accessors_gen.go
- response_builder_gen.go
- response_json_gen.go
- response_map_gen.go
- response_mutator_gen.go
- response_visitor_gen.go
- responses.go
- responses_accessors_gen.go
- responses_builder.go
- responses_builder_gen.go
- responses_json_gen.go
- responses_mutator.go
- responses_mutator_gen.go
- responses_visitor_gen.go
- schema.go
- schema_accessors_gen.go
- schema_builder.go
- schema_builder_gen.go
- schema_json_gen.go
- schema_list_gen.go
- schema_map_gen.go
- schema_mutator_gen.go
- schema_visitor_gen.go
- scheme_list_gen.go
- scopes_map_gen.go
- security_requirement.go
- security_requirement_accessors_gen.go
- security_requirement_builder_gen.go
- security_requirement_json_gen.go
- security_requirement_list_gen.go
- security_requirement_mutator_gen.go
- security_requirement_visitor_gen.go
- security_scheme_accessors_gen.go
- security_scheme_builder_gen.go
- security_scheme_json_gen.go
- security_scheme_map_gen.go
- security_scheme_mutator_gen.go
- security_scheme_visitor_gen.go
- string_list_gen.go
- string_map_gen.go
- swagger_accessors_gen.go
- swagger_builder_gen.go
- swagger_json_gen.go
- swagger_mutator_gen.go
- swagger_visitor_gen.go
- tag_accessors_gen.go
- tag_builder_gen.go
- tag_json_gen.go
- tag_list_gen.go
- tag_mutator_gen.go
- tag_visitor_gen.go
- validator.go
- visitor_gen.go
- xml_accessors_gen.go
- xml_builder_gen.go
- xml_json_gen.go
- xml_mutator_gen.go
- xml_visitor_gen.go