openapi_v3

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

OpenAPI v3 Protocol Buffer Models

This directory contains a Protocol Buffer-language model and related code for supporting OpenAPI v3.

Gnostic applications and plugins can use OpenAPIv3.proto to generate Protocol Buffer support code for their preferred languages.

OpenAPIv3.go is used by Gnostic to read JSON and YAML OpenAPI descriptions into the Protocol Buffer-based datastructures generated from OpenAPIv3.proto.

OpenAPIv3.proto and OpenAPIv3.go are generated by the Gnostic compiler generator, and OpenAPIv3.pb.go is generated by protoc, the Protocol Buffer compiler, and protoc-gen-go, the Protocol Buffer Go code generation plugin.

openapi-3.0.json is a preliminary draft JSON schema for OpenAPI 3.0. It is not the official OpenAPI 3.0 JSON Schema, which at the time of this commit, does not exist.

The schema-generator directory contains support code which generates openapi-3.0.json from a draft of the OpenAPI 3.0 specification document (Markdown).

Documentation

Overview

Package openapi_v3 is a generated protocol buffer package.

It is generated from these files:

OpenAPIv3/OpenAPIv3.proto

It has these top-level messages:

AdditionalPropertiesItem
Any
AnyOrExpression
AnysOrExpressions
Callback
CallbackOrReference
CallbacksOrReferences
Components
Contact
DefaultType
Discriminator
Document
Encoding
Encodings
Example
ExampleOrReference
ExamplesOrReferences
Expression
ExternalDocs
Header
HeaderOrReference
HeadersOrReferences
Info
ItemsItem
License
Link
LinkOrReference
LinksOrReferences
MediaType
MediaTypes
NamedAny
NamedAnyOrExpression
NamedCallbackOrReference
NamedEncoding
NamedExampleOrReference
NamedHeaderOrReference
NamedLinkOrReference
NamedMediaType
NamedParameterOrReference
NamedPathItem
NamedRequestBodyOrReference
NamedResponseOrReference
NamedSchemaOrReference
NamedSecuritySchemeOrReference
NamedServerVariable
NamedString
OauthFlow
OauthFlows
Object
Operation
Parameter
ParameterOrReference
ParametersOrReferences
PathItem
Paths
Properties
Reference
RequestBodiesOrReferences
RequestBody
RequestBodyOrReference
Response
ResponseOrReference
Responses
ResponsesOrReferences
Schema
SchemaOrReference
SchemasOrReferences
SecurityRequirement
SecurityScheme
SecuritySchemeOrReference
SecuritySchemesOrReferences
Server
ServerVariable
ServerVariables
SpecificationExtension
StringArray
Strings
Tag
Xml

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns the package name (and OpenAPI version).

Types

type AdditionalPropertiesItem

type AdditionalPropertiesItem struct {
	// Types that are valid to be assigned to Oneof:
	//	*AdditionalPropertiesItem_SchemaOrReference
	//	*AdditionalPropertiesItem_Boolean
	Oneof isAdditionalPropertiesItem_Oneof `protobuf_oneof:"oneof"`
}

func NewAdditionalPropertiesItem

func NewAdditionalPropertiesItem(in interface{}, context *compiler.Context) (*AdditionalPropertiesItem, error)

NewAdditionalPropertiesItem creates an object of type AdditionalPropertiesItem if possible, returning an error if not.

func (*AdditionalPropertiesItem) Descriptor

func (*AdditionalPropertiesItem) Descriptor() ([]byte, []int)

func (*AdditionalPropertiesItem) GetBoolean

func (m *AdditionalPropertiesItem) GetBoolean() bool

func (*AdditionalPropertiesItem) GetOneof

func (m *AdditionalPropertiesItem) GetOneof() isAdditionalPropertiesItem_Oneof

func (*AdditionalPropertiesItem) GetSchemaOrReference

func (m *AdditionalPropertiesItem) GetSchemaOrReference() *SchemaOrReference

func (*AdditionalPropertiesItem) ProtoMessage

func (*AdditionalPropertiesItem) ProtoMessage()

func (*AdditionalPropertiesItem) Reset

func (m *AdditionalPropertiesItem) Reset()

func (*AdditionalPropertiesItem) ResolveReferences

func (m *AdditionalPropertiesItem) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside AdditionalPropertiesItem objects.

func (*AdditionalPropertiesItem) String

func (m *AdditionalPropertiesItem) String() string

func (*AdditionalPropertiesItem) ToRawInfo

func (m *AdditionalPropertiesItem) ToRawInfo() interface{}

ToRawInfo returns a description of AdditionalPropertiesItem suitable for JSON or YAML export.

func (*AdditionalPropertiesItem) XXX_OneofFuncs

func (*AdditionalPropertiesItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type AdditionalPropertiesItem_Boolean

type AdditionalPropertiesItem_Boolean struct {
	Boolean bool `protobuf:"varint,2,opt,name=boolean,oneof"`
}

type AdditionalPropertiesItem_SchemaOrReference

type AdditionalPropertiesItem_SchemaOrReference struct {
	SchemaOrReference *SchemaOrReference `protobuf:"bytes,1,opt,name=schema_or_reference,json=schemaOrReference,oneof"`
}

type Any

type Any struct {
	Value *google_protobuf.Any `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
	Yaml  string               `protobuf:"bytes,2,opt,name=yaml" json:"yaml,omitempty"`
}

func NewAny

func NewAny(in interface{}, context *compiler.Context) (*Any, error)

NewAny creates an object of type Any if possible, returning an error if not.

func (*Any) Descriptor

func (*Any) Descriptor() ([]byte, []int)

func (*Any) GetValue

func (m *Any) GetValue() *google_protobuf.Any

func (*Any) GetYaml

func (m *Any) GetYaml() string

func (*Any) ProtoMessage

func (*Any) ProtoMessage()

func (*Any) Reset

func (m *Any) Reset()

func (*Any) ResolveReferences

func (m *Any) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Any objects.

func (*Any) String

func (m *Any) String() string

func (*Any) ToRawInfo

func (m *Any) ToRawInfo() interface{}

ToRawInfo returns a description of Any suitable for JSON or YAML export.

type AnyOrExpression

type AnyOrExpression struct {
	// Types that are valid to be assigned to Oneof:
	//	*AnyOrExpression_Any
	//	*AnyOrExpression_Expression
	Oneof isAnyOrExpression_Oneof `protobuf_oneof:"oneof"`
}

func NewAnyOrExpression

func NewAnyOrExpression(in interface{}, context *compiler.Context) (*AnyOrExpression, error)

NewAnyOrExpression creates an object of type AnyOrExpression if possible, returning an error if not.

func (*AnyOrExpression) Descriptor

func (*AnyOrExpression) Descriptor() ([]byte, []int)

func (*AnyOrExpression) GetAny

func (m *AnyOrExpression) GetAny() *Any

func (*AnyOrExpression) GetExpression

func (m *AnyOrExpression) GetExpression() *Expression

func (*AnyOrExpression) GetOneof

func (m *AnyOrExpression) GetOneof() isAnyOrExpression_Oneof

func (*AnyOrExpression) ProtoMessage

func (*AnyOrExpression) ProtoMessage()

func (*AnyOrExpression) Reset

func (m *AnyOrExpression) Reset()

func (*AnyOrExpression) ResolveReferences

func (m *AnyOrExpression) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside AnyOrExpression objects.

func (*AnyOrExpression) String

func (m *AnyOrExpression) String() string

func (*AnyOrExpression) ToRawInfo

func (m *AnyOrExpression) ToRawInfo() interface{}

ToRawInfo returns a description of AnyOrExpression suitable for JSON or YAML export.

func (*AnyOrExpression) XXX_OneofFuncs

func (*AnyOrExpression) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type AnyOrExpression_Any

type AnyOrExpression_Any struct {
	Any *Any `protobuf:"bytes,1,opt,name=any,oneof"`
}

type AnyOrExpression_Expression

type AnyOrExpression_Expression struct {
	Expression *Expression `protobuf:"bytes,2,opt,name=expression,oneof"`
}

type AnysOrExpressions

type AnysOrExpressions struct {
	AdditionalProperties []*NamedAnyOrExpression `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewAnysOrExpressions

func NewAnysOrExpressions(in interface{}, context *compiler.Context) (*AnysOrExpressions, error)

NewAnysOrExpressions creates an object of type AnysOrExpressions if possible, returning an error if not.

func (*AnysOrExpressions) Descriptor

func (*AnysOrExpressions) Descriptor() ([]byte, []int)

func (*AnysOrExpressions) GetAdditionalProperties

func (m *AnysOrExpressions) GetAdditionalProperties() []*NamedAnyOrExpression

func (*AnysOrExpressions) ProtoMessage

func (*AnysOrExpressions) ProtoMessage()

func (*AnysOrExpressions) Reset

func (m *AnysOrExpressions) Reset()

func (*AnysOrExpressions) ResolveReferences

func (m *AnysOrExpressions) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside AnysOrExpressions objects.

func (*AnysOrExpressions) String

func (m *AnysOrExpressions) String() string

func (*AnysOrExpressions) ToRawInfo

func (m *AnysOrExpressions) ToRawInfo() interface{}

ToRawInfo returns a description of AnysOrExpressions suitable for JSON or YAML export.

type Callback

type Callback struct {
	Path                   []*NamedPathItem `protobuf:"bytes,1,rep,name=path" json:"path,omitempty"`
	SpecificationExtension []*NamedAny      `protobuf:"bytes,2,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the callback object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.

func NewCallback

func NewCallback(in interface{}, context *compiler.Context) (*Callback, error)

NewCallback creates an object of type Callback if possible, returning an error if not.

func (*Callback) Descriptor

func (*Callback) Descriptor() ([]byte, []int)

func (*Callback) GetPath

func (m *Callback) GetPath() []*NamedPathItem

func (*Callback) GetSpecificationExtension

func (m *Callback) GetSpecificationExtension() []*NamedAny

func (*Callback) ProtoMessage

func (*Callback) ProtoMessage()

func (*Callback) Reset

func (m *Callback) Reset()

func (*Callback) ResolveReferences

func (m *Callback) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Callback objects.

func (*Callback) String

func (m *Callback) String() string

func (*Callback) ToRawInfo

func (m *Callback) ToRawInfo() interface{}

ToRawInfo returns a description of Callback suitable for JSON or YAML export.

type CallbackOrReference

type CallbackOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*CallbackOrReference_Callback
	//	*CallbackOrReference_Reference
	Oneof isCallbackOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewCallbackOrReference

func NewCallbackOrReference(in interface{}, context *compiler.Context) (*CallbackOrReference, error)

NewCallbackOrReference creates an object of type CallbackOrReference if possible, returning an error if not.

func (*CallbackOrReference) Descriptor

func (*CallbackOrReference) Descriptor() ([]byte, []int)

func (*CallbackOrReference) GetCallback

func (m *CallbackOrReference) GetCallback() *Callback

func (*CallbackOrReference) GetOneof

func (m *CallbackOrReference) GetOneof() isCallbackOrReference_Oneof

func (*CallbackOrReference) GetReference

func (m *CallbackOrReference) GetReference() *Reference

func (*CallbackOrReference) ProtoMessage

func (*CallbackOrReference) ProtoMessage()

func (*CallbackOrReference) Reset

func (m *CallbackOrReference) Reset()

func (*CallbackOrReference) ResolveReferences

func (m *CallbackOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside CallbackOrReference objects.

func (*CallbackOrReference) String

func (m *CallbackOrReference) String() string

func (*CallbackOrReference) ToRawInfo

func (m *CallbackOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of CallbackOrReference suitable for JSON or YAML export.

func (*CallbackOrReference) XXX_OneofFuncs

func (*CallbackOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type CallbackOrReference_Callback

type CallbackOrReference_Callback struct {
	Callback *Callback `protobuf:"bytes,1,opt,name=callback,oneof"`
}

type CallbackOrReference_Reference

type CallbackOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type CallbacksOrReferences

type CallbacksOrReferences struct {
	AdditionalProperties []*NamedCallbackOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewCallbacksOrReferences

func NewCallbacksOrReferences(in interface{}, context *compiler.Context) (*CallbacksOrReferences, error)

NewCallbacksOrReferences creates an object of type CallbacksOrReferences if possible, returning an error if not.

func (*CallbacksOrReferences) Descriptor

func (*CallbacksOrReferences) Descriptor() ([]byte, []int)

func (*CallbacksOrReferences) GetAdditionalProperties

func (m *CallbacksOrReferences) GetAdditionalProperties() []*NamedCallbackOrReference

func (*CallbacksOrReferences) ProtoMessage

func (*CallbacksOrReferences) ProtoMessage()

func (*CallbacksOrReferences) Reset

func (m *CallbacksOrReferences) Reset()

func (*CallbacksOrReferences) ResolveReferences

func (m *CallbacksOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside CallbacksOrReferences objects.

func (*CallbacksOrReferences) String

func (m *CallbacksOrReferences) String() string

func (*CallbacksOrReferences) ToRawInfo

func (m *CallbacksOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of CallbacksOrReferences suitable for JSON or YAML export.

type Components

type Components struct {
	Schemas                *SchemasOrReferences         `protobuf:"bytes,1,opt,name=schemas" json:"schemas,omitempty"`
	Responses              *ResponsesOrReferences       `protobuf:"bytes,2,opt,name=responses" json:"responses,omitempty"`
	Parameters             *ParametersOrReferences      `protobuf:"bytes,3,opt,name=parameters" json:"parameters,omitempty"`
	Examples               *ExamplesOrReferences        `protobuf:"bytes,4,opt,name=examples" json:"examples,omitempty"`
	RequestBodies          *RequestBodiesOrReferences   `protobuf:"bytes,5,opt,name=request_bodies,json=requestBodies" json:"request_bodies,omitempty"`
	Headers                *HeadersOrReferences         `protobuf:"bytes,6,opt,name=headers" json:"headers,omitempty"`
	SecuritySchemes        *SecuritySchemesOrReferences `protobuf:"bytes,7,opt,name=security_schemes,json=securitySchemes" json:"security_schemes,omitempty"`
	Links                  *LinksOrReferences           `protobuf:"bytes,8,opt,name=links" json:"links,omitempty"`
	Callbacks              *CallbacksOrReferences       `protobuf:"bytes,9,opt,name=callbacks" json:"callbacks,omitempty"`
	SpecificationExtension []*NamedAny                  `protobuf:"bytes,10,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Holds a set of reusable objects for different aspects of the OAS. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object.

func NewComponents

func NewComponents(in interface{}, context *compiler.Context) (*Components, error)

NewComponents creates an object of type Components if possible, returning an error if not.

func (*Components) Descriptor

func (*Components) Descriptor() ([]byte, []int)

func (*Components) GetCallbacks

func (m *Components) GetCallbacks() *CallbacksOrReferences

func (*Components) GetExamples

func (m *Components) GetExamples() *ExamplesOrReferences

func (*Components) GetHeaders

func (m *Components) GetHeaders() *HeadersOrReferences
func (m *Components) GetLinks() *LinksOrReferences

func (*Components) GetParameters

func (m *Components) GetParameters() *ParametersOrReferences

func (*Components) GetRequestBodies

func (m *Components) GetRequestBodies() *RequestBodiesOrReferences

func (*Components) GetResponses

func (m *Components) GetResponses() *ResponsesOrReferences

func (*Components) GetSchemas

func (m *Components) GetSchemas() *SchemasOrReferences

func (*Components) GetSecuritySchemes

func (m *Components) GetSecuritySchemes() *SecuritySchemesOrReferences

func (*Components) GetSpecificationExtension

func (m *Components) GetSpecificationExtension() []*NamedAny

func (*Components) ProtoMessage

func (*Components) ProtoMessage()

func (*Components) Reset

func (m *Components) Reset()

func (*Components) ResolveReferences

func (m *Components) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Components objects.

func (*Components) String

func (m *Components) String() string

func (*Components) ToRawInfo

func (m *Components) ToRawInfo() interface{}

ToRawInfo returns a description of Components suitable for JSON or YAML export.

type Contact

type Contact struct {
	Name                   string      `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Url                    string      `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
	Email                  string      `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,4,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Contact information for the exposed API.

func NewContact

func NewContact(in interface{}, context *compiler.Context) (*Contact, error)

NewContact creates an object of type Contact if possible, returning an error if not.

func (*Contact) Descriptor

func (*Contact) Descriptor() ([]byte, []int)

func (*Contact) GetEmail

func (m *Contact) GetEmail() string

func (*Contact) GetName

func (m *Contact) GetName() string

func (*Contact) GetSpecificationExtension

func (m *Contact) GetSpecificationExtension() []*NamedAny

func (*Contact) GetUrl

func (m *Contact) GetUrl() string

func (*Contact) ProtoMessage

func (*Contact) ProtoMessage()

func (*Contact) Reset

func (m *Contact) Reset()

func (*Contact) ResolveReferences

func (m *Contact) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Contact objects.

func (*Contact) String

func (m *Contact) String() string

func (*Contact) ToRawInfo

func (m *Contact) ToRawInfo() interface{}

ToRawInfo returns a description of Contact suitable for JSON or YAML export.

type DefaultType

type DefaultType struct {
	// Types that are valid to be assigned to Oneof:
	//	*DefaultType_Number
	//	*DefaultType_Boolean
	//	*DefaultType_String_
	Oneof isDefaultType_Oneof `protobuf_oneof:"oneof"`
}

func NewDefaultType

func NewDefaultType(in interface{}, context *compiler.Context) (*DefaultType, error)

NewDefaultType creates an object of type DefaultType if possible, returning an error if not.

func (*DefaultType) Descriptor

func (*DefaultType) Descriptor() ([]byte, []int)

func (*DefaultType) GetBoolean

func (m *DefaultType) GetBoolean() bool

func (*DefaultType) GetNumber

func (m *DefaultType) GetNumber() float64

func (*DefaultType) GetOneof

func (m *DefaultType) GetOneof() isDefaultType_Oneof

func (*DefaultType) GetString_

func (m *DefaultType) GetString_() string

func (*DefaultType) ProtoMessage

func (*DefaultType) ProtoMessage()

func (*DefaultType) Reset

func (m *DefaultType) Reset()

func (*DefaultType) ResolveReferences

func (m *DefaultType) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside DefaultType objects.

func (*DefaultType) String

func (m *DefaultType) String() string

func (*DefaultType) ToRawInfo

func (m *DefaultType) ToRawInfo() interface{}

ToRawInfo returns a description of DefaultType suitable for JSON or YAML export.

func (*DefaultType) XXX_OneofFuncs

func (*DefaultType) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type DefaultType_Boolean

type DefaultType_Boolean struct {
	Boolean bool `protobuf:"varint,2,opt,name=boolean,oneof"`
}

type DefaultType_Number

type DefaultType_Number struct {
	Number float64 `protobuf:"fixed64,1,opt,name=number,oneof"`
}

type DefaultType_String_

type DefaultType_String_ struct {
	String_ string `protobuf:"bytes,3,opt,name=string,oneof"`
}

type Discriminator

type Discriminator struct {
	PropertyName string   `protobuf:"bytes,1,opt,name=property_name,json=propertyName" json:"property_name,omitempty"`
	Mapping      *Strings `protobuf:"bytes,2,opt,name=mapping" json:"mapping,omitempty"`
}

When request bodies or response payloads may be one of a number of different schemas, a `discriminator` object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the specification of an alternative schema based on the value associated with it. When using the discriminator, _inline_ schemas will not be considered.

func NewDiscriminator

func NewDiscriminator(in interface{}, context *compiler.Context) (*Discriminator, error)

NewDiscriminator creates an object of type Discriminator if possible, returning an error if not.

func (*Discriminator) Descriptor

func (*Discriminator) Descriptor() ([]byte, []int)

func (*Discriminator) GetMapping

func (m *Discriminator) GetMapping() *Strings

func (*Discriminator) GetPropertyName

func (m *Discriminator) GetPropertyName() string

func (*Discriminator) ProtoMessage

func (*Discriminator) ProtoMessage()

func (*Discriminator) Reset

func (m *Discriminator) Reset()

func (*Discriminator) ResolveReferences

func (m *Discriminator) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Discriminator objects.

func (*Discriminator) String

func (m *Discriminator) String() string

func (*Discriminator) ToRawInfo

func (m *Discriminator) ToRawInfo() interface{}

ToRawInfo returns a description of Discriminator suitable for JSON or YAML export.

type Document

type Document struct {
	Openapi                string                 `protobuf:"bytes,1,opt,name=openapi" json:"openapi,omitempty"`
	Info                   *Info                  `protobuf:"bytes,2,opt,name=info" json:"info,omitempty"`
	Servers                []*Server              `protobuf:"bytes,3,rep,name=servers" json:"servers,omitempty"`
	Paths                  *Paths                 `protobuf:"bytes,4,opt,name=paths" json:"paths,omitempty"`
	Components             *Components            `protobuf:"bytes,5,opt,name=components" json:"components,omitempty"`
	Security               []*SecurityRequirement `protobuf:"bytes,6,rep,name=security" json:"security,omitempty"`
	Tags                   []*Tag                 `protobuf:"bytes,7,rep,name=tags" json:"tags,omitempty"`
	ExternalDocs           *ExternalDocs          `protobuf:"bytes,8,opt,name=external_docs,json=externalDocs" json:"external_docs,omitempty"`
	SpecificationExtension []*NamedAny            `protobuf:"bytes,9,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

func NewDocument

func NewDocument(in interface{}, context *compiler.Context) (*Document, error)

NewDocument creates an object of type Document if possible, returning an error if not.

func (*Document) Descriptor

func (*Document) Descriptor() ([]byte, []int)

func (*Document) GetComponents

func (m *Document) GetComponents() *Components

func (*Document) GetExternalDocs

func (m *Document) GetExternalDocs() *ExternalDocs

func (*Document) GetInfo

func (m *Document) GetInfo() *Info

func (*Document) GetOpenapi

func (m *Document) GetOpenapi() string

func (*Document) GetPaths

func (m *Document) GetPaths() *Paths

func (*Document) GetSecurity

func (m *Document) GetSecurity() []*SecurityRequirement

func (*Document) GetServers

func (m *Document) GetServers() []*Server

func (*Document) GetSpecificationExtension

func (m *Document) GetSpecificationExtension() []*NamedAny

func (*Document) GetTags

func (m *Document) GetTags() []*Tag

func (*Document) ProtoMessage

func (*Document) ProtoMessage()

func (*Document) Reset

func (m *Document) Reset()

func (*Document) ResolveReferences

func (m *Document) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Document objects.

func (*Document) String

func (m *Document) String() string

func (*Document) ToRawInfo

func (m *Document) ToRawInfo() interface{}

ToRawInfo returns a description of Document suitable for JSON or YAML export.

type Encoding

type Encoding struct {
	ContentType            string               `protobuf:"bytes,1,opt,name=content_type,json=contentType" json:"content_type,omitempty"`
	Headers                *HeadersOrReferences `protobuf:"bytes,2,opt,name=headers" json:"headers,omitempty"`
	Style                  string               `protobuf:"bytes,3,opt,name=style" json:"style,omitempty"`
	Explode                bool                 `protobuf:"varint,4,opt,name=explode" json:"explode,omitempty"`
	AllowReserved          bool                 `protobuf:"varint,5,opt,name=allow_reserved,json=allowReserved" json:"allow_reserved,omitempty"`
	SpecificationExtension []*NamedAny          `protobuf:"bytes,6,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

A single encoding definition applied to a single schema property.

func NewEncoding

func NewEncoding(in interface{}, context *compiler.Context) (*Encoding, error)

NewEncoding creates an object of type Encoding if possible, returning an error if not.

func (*Encoding) Descriptor

func (*Encoding) Descriptor() ([]byte, []int)

func (*Encoding) GetAllowReserved

func (m *Encoding) GetAllowReserved() bool

func (*Encoding) GetContentType

func (m *Encoding) GetContentType() string

func (*Encoding) GetExplode

func (m *Encoding) GetExplode() bool

func (*Encoding) GetHeaders

func (m *Encoding) GetHeaders() *HeadersOrReferences

func (*Encoding) GetSpecificationExtension

func (m *Encoding) GetSpecificationExtension() []*NamedAny

func (*Encoding) GetStyle

func (m *Encoding) GetStyle() string

func (*Encoding) ProtoMessage

func (*Encoding) ProtoMessage()

func (*Encoding) Reset

func (m *Encoding) Reset()

func (*Encoding) ResolveReferences

func (m *Encoding) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Encoding objects.

func (*Encoding) String

func (m *Encoding) String() string

func (*Encoding) ToRawInfo

func (m *Encoding) ToRawInfo() interface{}

ToRawInfo returns a description of Encoding suitable for JSON or YAML export.

type Encodings

type Encodings struct {
	AdditionalProperties []*NamedEncoding `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewEncodings

func NewEncodings(in interface{}, context *compiler.Context) (*Encodings, error)

NewEncodings creates an object of type Encodings if possible, returning an error if not.

func (*Encodings) Descriptor

func (*Encodings) Descriptor() ([]byte, []int)

func (*Encodings) GetAdditionalProperties

func (m *Encodings) GetAdditionalProperties() []*NamedEncoding

func (*Encodings) ProtoMessage

func (*Encodings) ProtoMessage()

func (*Encodings) Reset

func (m *Encodings) Reset()

func (*Encodings) ResolveReferences

func (m *Encodings) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Encodings objects.

func (*Encodings) String

func (m *Encodings) String() string

func (*Encodings) ToRawInfo

func (m *Encodings) ToRawInfo() interface{}

ToRawInfo returns a description of Encodings suitable for JSON or YAML export.

type Example

type Example struct {
	Summary                string      `protobuf:"bytes,1,opt,name=summary" json:"summary,omitempty"`
	Description            string      `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	Value                  *Any        `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
	ExternalValue          string      `protobuf:"bytes,4,opt,name=external_value,json=externalValue" json:"external_value,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,5,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

func NewExample

func NewExample(in interface{}, context *compiler.Context) (*Example, error)

NewExample creates an object of type Example if possible, returning an error if not.

func (*Example) Descriptor

func (*Example) Descriptor() ([]byte, []int)

func (*Example) GetDescription

func (m *Example) GetDescription() string

func (*Example) GetExternalValue

func (m *Example) GetExternalValue() string

func (*Example) GetSpecificationExtension

func (m *Example) GetSpecificationExtension() []*NamedAny

func (*Example) GetSummary

func (m *Example) GetSummary() string

func (*Example) GetValue

func (m *Example) GetValue() *Any

func (*Example) ProtoMessage

func (*Example) ProtoMessage()

func (*Example) Reset

func (m *Example) Reset()

func (*Example) ResolveReferences

func (m *Example) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Example objects.

func (*Example) String

func (m *Example) String() string

func (*Example) ToRawInfo

func (m *Example) ToRawInfo() interface{}

ToRawInfo returns a description of Example suitable for JSON or YAML export.

type ExampleOrReference

type ExampleOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*ExampleOrReference_Example
	//	*ExampleOrReference_Reference
	Oneof isExampleOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewExampleOrReference

func NewExampleOrReference(in interface{}, context *compiler.Context) (*ExampleOrReference, error)

NewExampleOrReference creates an object of type ExampleOrReference if possible, returning an error if not.

func (*ExampleOrReference) Descriptor

func (*ExampleOrReference) Descriptor() ([]byte, []int)

func (*ExampleOrReference) GetExample

func (m *ExampleOrReference) GetExample() *Example

func (*ExampleOrReference) GetOneof

func (m *ExampleOrReference) GetOneof() isExampleOrReference_Oneof

func (*ExampleOrReference) GetReference

func (m *ExampleOrReference) GetReference() *Reference

func (*ExampleOrReference) ProtoMessage

func (*ExampleOrReference) ProtoMessage()

func (*ExampleOrReference) Reset

func (m *ExampleOrReference) Reset()

func (*ExampleOrReference) ResolveReferences

func (m *ExampleOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ExampleOrReference objects.

func (*ExampleOrReference) String

func (m *ExampleOrReference) String() string

func (*ExampleOrReference) ToRawInfo

func (m *ExampleOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of ExampleOrReference suitable for JSON or YAML export.

func (*ExampleOrReference) XXX_OneofFuncs

func (*ExampleOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ExampleOrReference_Example

type ExampleOrReference_Example struct {
	Example *Example `protobuf:"bytes,1,opt,name=example,oneof"`
}

type ExampleOrReference_Reference

type ExampleOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type ExamplesOrReferences

type ExamplesOrReferences struct {
	AdditionalProperties []*NamedExampleOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewExamplesOrReferences

func NewExamplesOrReferences(in interface{}, context *compiler.Context) (*ExamplesOrReferences, error)

NewExamplesOrReferences creates an object of type ExamplesOrReferences if possible, returning an error if not.

func (*ExamplesOrReferences) Descriptor

func (*ExamplesOrReferences) Descriptor() ([]byte, []int)

func (*ExamplesOrReferences) GetAdditionalProperties

func (m *ExamplesOrReferences) GetAdditionalProperties() []*NamedExampleOrReference

func (*ExamplesOrReferences) ProtoMessage

func (*ExamplesOrReferences) ProtoMessage()

func (*ExamplesOrReferences) Reset

func (m *ExamplesOrReferences) Reset()

func (*ExamplesOrReferences) ResolveReferences

func (m *ExamplesOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ExamplesOrReferences objects.

func (*ExamplesOrReferences) String

func (m *ExamplesOrReferences) String() string

func (*ExamplesOrReferences) ToRawInfo

func (m *ExamplesOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of ExamplesOrReferences suitable for JSON or YAML export.

type Expression

type Expression struct {
	AdditionalProperties []*NamedAny `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewExpression

func NewExpression(in interface{}, context *compiler.Context) (*Expression, error)

NewExpression creates an object of type Expression if possible, returning an error if not.

func (*Expression) Descriptor

func (*Expression) Descriptor() ([]byte, []int)

func (*Expression) GetAdditionalProperties

func (m *Expression) GetAdditionalProperties() []*NamedAny

func (*Expression) ProtoMessage

func (*Expression) ProtoMessage()

func (*Expression) Reset

func (m *Expression) Reset()

func (*Expression) ResolveReferences

func (m *Expression) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Expression objects.

func (*Expression) String

func (m *Expression) String() string

func (*Expression) ToRawInfo

func (m *Expression) ToRawInfo() interface{}

ToRawInfo returns a description of Expression suitable for JSON or YAML export.

type ExternalDocs

type ExternalDocs struct {
	Description            string      `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
	Url                    string      `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,3,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Allows referencing an external resource for extended documentation.

func NewExternalDocs

func NewExternalDocs(in interface{}, context *compiler.Context) (*ExternalDocs, error)

NewExternalDocs creates an object of type ExternalDocs if possible, returning an error if not.

func (*ExternalDocs) Descriptor

func (*ExternalDocs) Descriptor() ([]byte, []int)

func (*ExternalDocs) GetDescription

func (m *ExternalDocs) GetDescription() string

func (*ExternalDocs) GetSpecificationExtension

func (m *ExternalDocs) GetSpecificationExtension() []*NamedAny

func (*ExternalDocs) GetUrl

func (m *ExternalDocs) GetUrl() string

func (*ExternalDocs) ProtoMessage

func (*ExternalDocs) ProtoMessage()

func (*ExternalDocs) Reset

func (m *ExternalDocs) Reset()

func (*ExternalDocs) ResolveReferences

func (m *ExternalDocs) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ExternalDocs objects.

func (*ExternalDocs) String

func (m *ExternalDocs) String() string

func (*ExternalDocs) ToRawInfo

func (m *ExternalDocs) ToRawInfo() interface{}

ToRawInfo returns a description of ExternalDocs suitable for JSON or YAML export.

type Header struct {
	Description            string                `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
	Required               bool                  `protobuf:"varint,2,opt,name=required" json:"required,omitempty"`
	Deprecated             bool                  `protobuf:"varint,3,opt,name=deprecated" json:"deprecated,omitempty"`
	AllowEmptyValue        bool                  `protobuf:"varint,4,opt,name=allow_empty_value,json=allowEmptyValue" json:"allow_empty_value,omitempty"`
	Style                  string                `protobuf:"bytes,5,opt,name=style" json:"style,omitempty"`
	Explode                bool                  `protobuf:"varint,6,opt,name=explode" json:"explode,omitempty"`
	AllowReserved          bool                  `protobuf:"varint,7,opt,name=allow_reserved,json=allowReserved" json:"allow_reserved,omitempty"`
	Schema                 *SchemaOrReference    `protobuf:"bytes,8,opt,name=schema" json:"schema,omitempty"`
	Example                *Any                  `protobuf:"bytes,9,opt,name=example" json:"example,omitempty"`
	Examples               *ExamplesOrReferences `protobuf:"bytes,10,opt,name=examples" json:"examples,omitempty"`
	Content                *MediaTypes           `protobuf:"bytes,11,opt,name=content" json:"content,omitempty"`
	SpecificationExtension []*NamedAny           `protobuf:"bytes,12,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

The Header Object follows the structure of the Parameter Object with the following changes: 1. `name` MUST NOT be specified, it is given in the corresponding `headers` map. 1. `in` MUST NOT be specified, it is implicitly in `header`. 1. All traits that are affected by the location MUST be applicable to a location of `header` (for example, `style`).

func NewHeader

func NewHeader(in interface{}, context *compiler.Context) (*Header, error)

NewHeader creates an object of type Header if possible, returning an error if not.

func (*Header) Descriptor

func (*Header) Descriptor() ([]byte, []int)

func (*Header) GetAllowEmptyValue

func (m *Header) GetAllowEmptyValue() bool

func (*Header) GetAllowReserved

func (m *Header) GetAllowReserved() bool

func (*Header) GetContent

func (m *Header) GetContent() *MediaTypes

func (*Header) GetDeprecated

func (m *Header) GetDeprecated() bool

func (*Header) GetDescription

func (m *Header) GetDescription() string

func (*Header) GetExample

func (m *Header) GetExample() *Any

func (*Header) GetExamples

func (m *Header) GetExamples() *ExamplesOrReferences

func (*Header) GetExplode

func (m *Header) GetExplode() bool

func (*Header) GetRequired

func (m *Header) GetRequired() bool

func (*Header) GetSchema

func (m *Header) GetSchema() *SchemaOrReference

func (*Header) GetSpecificationExtension

func (m *Header) GetSpecificationExtension() []*NamedAny

func (*Header) GetStyle

func (m *Header) GetStyle() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) ResolveReferences

func (m *Header) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Header objects.

func (*Header) String

func (m *Header) String() string

func (*Header) ToRawInfo

func (m *Header) ToRawInfo() interface{}

ToRawInfo returns a description of Header suitable for JSON or YAML export.

type HeaderOrReference

type HeaderOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*HeaderOrReference_Header
	//	*HeaderOrReference_Reference
	Oneof isHeaderOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewHeaderOrReference

func NewHeaderOrReference(in interface{}, context *compiler.Context) (*HeaderOrReference, error)

NewHeaderOrReference creates an object of type HeaderOrReference if possible, returning an error if not.

func (*HeaderOrReference) Descriptor

func (*HeaderOrReference) Descriptor() ([]byte, []int)

func (*HeaderOrReference) GetHeader

func (m *HeaderOrReference) GetHeader() *Header

func (*HeaderOrReference) GetOneof

func (m *HeaderOrReference) GetOneof() isHeaderOrReference_Oneof

func (*HeaderOrReference) GetReference

func (m *HeaderOrReference) GetReference() *Reference

func (*HeaderOrReference) ProtoMessage

func (*HeaderOrReference) ProtoMessage()

func (*HeaderOrReference) Reset

func (m *HeaderOrReference) Reset()

func (*HeaderOrReference) ResolveReferences

func (m *HeaderOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside HeaderOrReference objects.

func (*HeaderOrReference) String

func (m *HeaderOrReference) String() string

func (*HeaderOrReference) ToRawInfo

func (m *HeaderOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of HeaderOrReference suitable for JSON or YAML export.

func (*HeaderOrReference) XXX_OneofFuncs

func (*HeaderOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type HeaderOrReference_Header

type HeaderOrReference_Header struct {
	Header *Header `protobuf:"bytes,1,opt,name=header,oneof"`
}

type HeaderOrReference_Reference

type HeaderOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type HeadersOrReferences

type HeadersOrReferences struct {
	AdditionalProperties []*NamedHeaderOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewHeadersOrReferences

func NewHeadersOrReferences(in interface{}, context *compiler.Context) (*HeadersOrReferences, error)

NewHeadersOrReferences creates an object of type HeadersOrReferences if possible, returning an error if not.

func (*HeadersOrReferences) Descriptor

func (*HeadersOrReferences) Descriptor() ([]byte, []int)

func (*HeadersOrReferences) GetAdditionalProperties

func (m *HeadersOrReferences) GetAdditionalProperties() []*NamedHeaderOrReference

func (*HeadersOrReferences) ProtoMessage

func (*HeadersOrReferences) ProtoMessage()

func (*HeadersOrReferences) Reset

func (m *HeadersOrReferences) Reset()

func (*HeadersOrReferences) ResolveReferences

func (m *HeadersOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside HeadersOrReferences objects.

func (*HeadersOrReferences) String

func (m *HeadersOrReferences) String() string

func (*HeadersOrReferences) ToRawInfo

func (m *HeadersOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of HeadersOrReferences suitable for JSON or YAML export.

type Info

type Info struct {
	Title                  string      `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
	Description            string      `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	TermsOfService         string      `protobuf:"bytes,3,opt,name=terms_of_service,json=termsOfService" json:"terms_of_service,omitempty"`
	Contact                *Contact    `protobuf:"bytes,4,opt,name=contact" json:"contact,omitempty"`
	License                *License    `protobuf:"bytes,5,opt,name=license" json:"license,omitempty"`
	Version                string      `protobuf:"bytes,6,opt,name=version" json:"version,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,7,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

The object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.

func NewInfo

func NewInfo(in interface{}, context *compiler.Context) (*Info, error)

NewInfo creates an object of type Info if possible, returning an error if not.

func (*Info) Descriptor

func (*Info) Descriptor() ([]byte, []int)

func (*Info) GetContact

func (m *Info) GetContact() *Contact

func (*Info) GetDescription

func (m *Info) GetDescription() string

func (*Info) GetLicense

func (m *Info) GetLicense() *License

func (*Info) GetSpecificationExtension

func (m *Info) GetSpecificationExtension() []*NamedAny

func (*Info) GetTermsOfService

func (m *Info) GetTermsOfService() string

func (*Info) GetTitle

func (m *Info) GetTitle() string

func (*Info) GetVersion

func (m *Info) GetVersion() string

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (m *Info) Reset()

func (*Info) ResolveReferences

func (m *Info) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Info objects.

func (*Info) String

func (m *Info) String() string

func (*Info) ToRawInfo

func (m *Info) ToRawInfo() interface{}

ToRawInfo returns a description of Info suitable for JSON or YAML export.

type ItemsItem

type ItemsItem struct {
	SchemaOrReference []*SchemaOrReference `protobuf:"bytes,1,rep,name=schema_or_reference,json=schemaOrReference" json:"schema_or_reference,omitempty"`
}

func NewItemsItem

func NewItemsItem(in interface{}, context *compiler.Context) (*ItemsItem, error)

NewItemsItem creates an object of type ItemsItem if possible, returning an error if not.

func (*ItemsItem) Descriptor

func (*ItemsItem) Descriptor() ([]byte, []int)

func (*ItemsItem) GetSchemaOrReference

func (m *ItemsItem) GetSchemaOrReference() []*SchemaOrReference

func (*ItemsItem) ProtoMessage

func (*ItemsItem) ProtoMessage()

func (*ItemsItem) Reset

func (m *ItemsItem) Reset()

func (*ItemsItem) ResolveReferences

func (m *ItemsItem) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ItemsItem objects.

func (*ItemsItem) String

func (m *ItemsItem) String() string

func (*ItemsItem) ToRawInfo

func (m *ItemsItem) ToRawInfo() interface{}

ToRawInfo returns a description of ItemsItem suitable for JSON or YAML export.

type License

type License struct {
	Name                   string      `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Url                    string      `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,3,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

License information for the exposed API.

func NewLicense

func NewLicense(in interface{}, context *compiler.Context) (*License, error)

NewLicense creates an object of type License if possible, returning an error if not.

func (*License) Descriptor

func (*License) Descriptor() ([]byte, []int)

func (*License) GetName

func (m *License) GetName() string

func (*License) GetSpecificationExtension

func (m *License) GetSpecificationExtension() []*NamedAny

func (*License) GetUrl

func (m *License) GetUrl() string

func (*License) ProtoMessage

func (*License) ProtoMessage()

func (*License) Reset

func (m *License) Reset()

func (*License) ResolveReferences

func (m *License) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside License objects.

func (*License) String

func (m *License) String() string

func (*License) ToRawInfo

func (m *License) ToRawInfo() interface{}

ToRawInfo returns a description of License suitable for JSON or YAML export.

type Link struct {
	OperationRef           string             `protobuf:"bytes,1,opt,name=operation_ref,json=operationRef" json:"operation_ref,omitempty"`
	OperationId            string             `protobuf:"bytes,2,opt,name=operation_id,json=operationId" json:"operation_id,omitempty"`
	Parameters             *AnysOrExpressions `protobuf:"bytes,3,opt,name=parameters" json:"parameters,omitempty"`
	RequestBody            *AnyOrExpression   `protobuf:"bytes,4,opt,name=request_body,json=requestBody" json:"request_body,omitempty"`
	Description            string             `protobuf:"bytes,5,opt,name=description" json:"description,omitempty"`
	Server                 *Server            `protobuf:"bytes,6,opt,name=server" json:"server,omitempty"`
	SpecificationExtension []*NamedAny        `protobuf:"bytes,7,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

The `Link object` represents a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations. Unlike _dynamic_ links (i.e. links provided **in** the response payload), the OAS linking mechanism does not require link information in the runtime response. For computing links, and providing instructions to execute them, a runtime expression is used for accessing values in an operation and using them as parameters while invoking the linked operation.

func NewLink(in interface{}, context *compiler.Context) (*Link, error)

NewLink creates an object of type Link if possible, returning an error if not.

func (*Link) Descriptor

func (*Link) Descriptor() ([]byte, []int)

func (*Link) GetDescription

func (m *Link) GetDescription() string

func (*Link) GetOperationId

func (m *Link) GetOperationId() string

func (*Link) GetOperationRef

func (m *Link) GetOperationRef() string

func (*Link) GetParameters

func (m *Link) GetParameters() *AnysOrExpressions

func (*Link) GetRequestBody

func (m *Link) GetRequestBody() *AnyOrExpression

func (*Link) GetServer

func (m *Link) GetServer() *Server

func (*Link) GetSpecificationExtension

func (m *Link) GetSpecificationExtension() []*NamedAny

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) Reset

func (m *Link) Reset()

func (*Link) ResolveReferences

func (m *Link) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Link objects.

func (*Link) String

func (m *Link) String() string

func (*Link) ToRawInfo

func (m *Link) ToRawInfo() interface{}

ToRawInfo returns a description of Link suitable for JSON or YAML export.

type LinkOrReference

type LinkOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*LinkOrReference_Link
	//	*LinkOrReference_Reference
	Oneof isLinkOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewLinkOrReference

func NewLinkOrReference(in interface{}, context *compiler.Context) (*LinkOrReference, error)

NewLinkOrReference creates an object of type LinkOrReference if possible, returning an error if not.

func (*LinkOrReference) Descriptor

func (*LinkOrReference) Descriptor() ([]byte, []int)
func (m *LinkOrReference) GetLink() *Link

func (*LinkOrReference) GetOneof

func (m *LinkOrReference) GetOneof() isLinkOrReference_Oneof

func (*LinkOrReference) GetReference

func (m *LinkOrReference) GetReference() *Reference

func (*LinkOrReference) ProtoMessage

func (*LinkOrReference) ProtoMessage()

func (*LinkOrReference) Reset

func (m *LinkOrReference) Reset()

func (*LinkOrReference) ResolveReferences

func (m *LinkOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside LinkOrReference objects.

func (*LinkOrReference) String

func (m *LinkOrReference) String() string

func (*LinkOrReference) ToRawInfo

func (m *LinkOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of LinkOrReference suitable for JSON or YAML export.

func (*LinkOrReference) XXX_OneofFuncs

func (*LinkOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type LinkOrReference_Link struct {
	Link *Link `protobuf:"bytes,1,opt,name=link,oneof"`
}

type LinkOrReference_Reference

type LinkOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type LinksOrReferences

type LinksOrReferences struct {
	AdditionalProperties []*NamedLinkOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewLinksOrReferences

func NewLinksOrReferences(in interface{}, context *compiler.Context) (*LinksOrReferences, error)

NewLinksOrReferences creates an object of type LinksOrReferences if possible, returning an error if not.

func (*LinksOrReferences) Descriptor

func (*LinksOrReferences) Descriptor() ([]byte, []int)

func (*LinksOrReferences) GetAdditionalProperties

func (m *LinksOrReferences) GetAdditionalProperties() []*NamedLinkOrReference

func (*LinksOrReferences) ProtoMessage

func (*LinksOrReferences) ProtoMessage()

func (*LinksOrReferences) Reset

func (m *LinksOrReferences) Reset()

func (*LinksOrReferences) ResolveReferences

func (m *LinksOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside LinksOrReferences objects.

func (*LinksOrReferences) String

func (m *LinksOrReferences) String() string

func (*LinksOrReferences) ToRawInfo

func (m *LinksOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of LinksOrReferences suitable for JSON or YAML export.

type MediaType

type MediaType struct {
	Schema                 *SchemaOrReference    `protobuf:"bytes,1,opt,name=schema" json:"schema,omitempty"`
	Example                *Any                  `protobuf:"bytes,2,opt,name=example" json:"example,omitempty"`
	Examples               *ExamplesOrReferences `protobuf:"bytes,3,opt,name=examples" json:"examples,omitempty"`
	Encoding               *Encodings            `protobuf:"bytes,4,opt,name=encoding" json:"encoding,omitempty"`
	SpecificationExtension []*NamedAny           `protobuf:"bytes,5,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Each Media Type Object provides schema and examples for the media type identified by its key.

func NewMediaType

func NewMediaType(in interface{}, context *compiler.Context) (*MediaType, error)

NewMediaType creates an object of type MediaType if possible, returning an error if not.

func (*MediaType) Descriptor

func (*MediaType) Descriptor() ([]byte, []int)

func (*MediaType) GetEncoding

func (m *MediaType) GetEncoding() *Encodings

func (*MediaType) GetExample

func (m *MediaType) GetExample() *Any

func (*MediaType) GetExamples

func (m *MediaType) GetExamples() *ExamplesOrReferences

func (*MediaType) GetSchema

func (m *MediaType) GetSchema() *SchemaOrReference

func (*MediaType) GetSpecificationExtension

func (m *MediaType) GetSpecificationExtension() []*NamedAny

func (*MediaType) ProtoMessage

func (*MediaType) ProtoMessage()

func (*MediaType) Reset

func (m *MediaType) Reset()

func (*MediaType) ResolveReferences

func (m *MediaType) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside MediaType objects.

func (*MediaType) String

func (m *MediaType) String() string

func (*MediaType) ToRawInfo

func (m *MediaType) ToRawInfo() interface{}

ToRawInfo returns a description of MediaType suitable for JSON or YAML export.

type MediaTypes

type MediaTypes struct {
	AdditionalProperties []*NamedMediaType `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewMediaTypes

func NewMediaTypes(in interface{}, context *compiler.Context) (*MediaTypes, error)

NewMediaTypes creates an object of type MediaTypes if possible, returning an error if not.

func (*MediaTypes) Descriptor

func (*MediaTypes) Descriptor() ([]byte, []int)

func (*MediaTypes) GetAdditionalProperties

func (m *MediaTypes) GetAdditionalProperties() []*NamedMediaType

func (*MediaTypes) ProtoMessage

func (*MediaTypes) ProtoMessage()

func (*MediaTypes) Reset

func (m *MediaTypes) Reset()

func (*MediaTypes) ResolveReferences

func (m *MediaTypes) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside MediaTypes objects.

func (*MediaTypes) String

func (m *MediaTypes) String() string

func (*MediaTypes) ToRawInfo

func (m *MediaTypes) ToRawInfo() interface{}

ToRawInfo returns a description of MediaTypes suitable for JSON or YAML export.

type NamedAny

type NamedAny struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *Any `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of Any as ordered (name,value) pairs.

func NewNamedAny

func NewNamedAny(in interface{}, context *compiler.Context) (*NamedAny, error)

NewNamedAny creates an object of type NamedAny if possible, returning an error if not.

func (*NamedAny) Descriptor

func (*NamedAny) Descriptor() ([]byte, []int)

func (*NamedAny) GetName

func (m *NamedAny) GetName() string

func (*NamedAny) GetValue

func (m *NamedAny) GetValue() *Any

func (*NamedAny) ProtoMessage

func (*NamedAny) ProtoMessage()

func (*NamedAny) Reset

func (m *NamedAny) Reset()

func (*NamedAny) ResolveReferences

func (m *NamedAny) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedAny objects.

func (*NamedAny) String

func (m *NamedAny) String() string

func (*NamedAny) ToRawInfo

func (m *NamedAny) ToRawInfo() interface{}

ToRawInfo returns a description of NamedAny suitable for JSON or YAML export.

type NamedAnyOrExpression

type NamedAnyOrExpression struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *AnyOrExpression `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of AnyOrExpression as ordered (name,value) pairs.

func NewNamedAnyOrExpression

func NewNamedAnyOrExpression(in interface{}, context *compiler.Context) (*NamedAnyOrExpression, error)

NewNamedAnyOrExpression creates an object of type NamedAnyOrExpression if possible, returning an error if not.

func (*NamedAnyOrExpression) Descriptor

func (*NamedAnyOrExpression) Descriptor() ([]byte, []int)

func (*NamedAnyOrExpression) GetName

func (m *NamedAnyOrExpression) GetName() string

func (*NamedAnyOrExpression) GetValue

func (m *NamedAnyOrExpression) GetValue() *AnyOrExpression

func (*NamedAnyOrExpression) ProtoMessage

func (*NamedAnyOrExpression) ProtoMessage()

func (*NamedAnyOrExpression) Reset

func (m *NamedAnyOrExpression) Reset()

func (*NamedAnyOrExpression) ResolveReferences

func (m *NamedAnyOrExpression) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedAnyOrExpression objects.

func (*NamedAnyOrExpression) String

func (m *NamedAnyOrExpression) String() string

func (*NamedAnyOrExpression) ToRawInfo

func (m *NamedAnyOrExpression) ToRawInfo() interface{}

ToRawInfo returns a description of NamedAnyOrExpression suitable for JSON or YAML export.

type NamedCallbackOrReference

type NamedCallbackOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *CallbackOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of CallbackOrReference as ordered (name,value) pairs.

func NewNamedCallbackOrReference

func NewNamedCallbackOrReference(in interface{}, context *compiler.Context) (*NamedCallbackOrReference, error)

NewNamedCallbackOrReference creates an object of type NamedCallbackOrReference if possible, returning an error if not.

func (*NamedCallbackOrReference) Descriptor

func (*NamedCallbackOrReference) Descriptor() ([]byte, []int)

func (*NamedCallbackOrReference) GetName

func (m *NamedCallbackOrReference) GetName() string

func (*NamedCallbackOrReference) GetValue

func (*NamedCallbackOrReference) ProtoMessage

func (*NamedCallbackOrReference) ProtoMessage()

func (*NamedCallbackOrReference) Reset

func (m *NamedCallbackOrReference) Reset()

func (*NamedCallbackOrReference) ResolveReferences

func (m *NamedCallbackOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedCallbackOrReference objects.

func (*NamedCallbackOrReference) String

func (m *NamedCallbackOrReference) String() string

func (*NamedCallbackOrReference) ToRawInfo

func (m *NamedCallbackOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedCallbackOrReference suitable for JSON or YAML export.

type NamedEncoding

type NamedEncoding struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *Encoding `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of Encoding as ordered (name,value) pairs.

func NewNamedEncoding

func NewNamedEncoding(in interface{}, context *compiler.Context) (*NamedEncoding, error)

NewNamedEncoding creates an object of type NamedEncoding if possible, returning an error if not.

func (*NamedEncoding) Descriptor

func (*NamedEncoding) Descriptor() ([]byte, []int)

func (*NamedEncoding) GetName

func (m *NamedEncoding) GetName() string

func (*NamedEncoding) GetValue

func (m *NamedEncoding) GetValue() *Encoding

func (*NamedEncoding) ProtoMessage

func (*NamedEncoding) ProtoMessage()

func (*NamedEncoding) Reset

func (m *NamedEncoding) Reset()

func (*NamedEncoding) ResolveReferences

func (m *NamedEncoding) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedEncoding objects.

func (*NamedEncoding) String

func (m *NamedEncoding) String() string

func (*NamedEncoding) ToRawInfo

func (m *NamedEncoding) ToRawInfo() interface{}

ToRawInfo returns a description of NamedEncoding suitable for JSON or YAML export.

type NamedExampleOrReference

type NamedExampleOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *ExampleOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of ExampleOrReference as ordered (name,value) pairs.

func NewNamedExampleOrReference

func NewNamedExampleOrReference(in interface{}, context *compiler.Context) (*NamedExampleOrReference, error)

NewNamedExampleOrReference creates an object of type NamedExampleOrReference if possible, returning an error if not.

func (*NamedExampleOrReference) Descriptor

func (*NamedExampleOrReference) Descriptor() ([]byte, []int)

func (*NamedExampleOrReference) GetName

func (m *NamedExampleOrReference) GetName() string

func (*NamedExampleOrReference) GetValue

func (*NamedExampleOrReference) ProtoMessage

func (*NamedExampleOrReference) ProtoMessage()

func (*NamedExampleOrReference) Reset

func (m *NamedExampleOrReference) Reset()

func (*NamedExampleOrReference) ResolveReferences

func (m *NamedExampleOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedExampleOrReference objects.

func (*NamedExampleOrReference) String

func (m *NamedExampleOrReference) String() string

func (*NamedExampleOrReference) ToRawInfo

func (m *NamedExampleOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedExampleOrReference suitable for JSON or YAML export.

type NamedHeaderOrReference

type NamedHeaderOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *HeaderOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of HeaderOrReference as ordered (name,value) pairs.

func NewNamedHeaderOrReference

func NewNamedHeaderOrReference(in interface{}, context *compiler.Context) (*NamedHeaderOrReference, error)

NewNamedHeaderOrReference creates an object of type NamedHeaderOrReference if possible, returning an error if not.

func (*NamedHeaderOrReference) Descriptor

func (*NamedHeaderOrReference) Descriptor() ([]byte, []int)

func (*NamedHeaderOrReference) GetName

func (m *NamedHeaderOrReference) GetName() string

func (*NamedHeaderOrReference) GetValue

func (*NamedHeaderOrReference) ProtoMessage

func (*NamedHeaderOrReference) ProtoMessage()

func (*NamedHeaderOrReference) Reset

func (m *NamedHeaderOrReference) Reset()

func (*NamedHeaderOrReference) ResolveReferences

func (m *NamedHeaderOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedHeaderOrReference objects.

func (*NamedHeaderOrReference) String

func (m *NamedHeaderOrReference) String() string

func (*NamedHeaderOrReference) ToRawInfo

func (m *NamedHeaderOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedHeaderOrReference suitable for JSON or YAML export.

type NamedLinkOrReference

type NamedLinkOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *LinkOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of LinkOrReference as ordered (name,value) pairs.

func NewNamedLinkOrReference

func NewNamedLinkOrReference(in interface{}, context *compiler.Context) (*NamedLinkOrReference, error)

NewNamedLinkOrReference creates an object of type NamedLinkOrReference if possible, returning an error if not.

func (*NamedLinkOrReference) Descriptor

func (*NamedLinkOrReference) Descriptor() ([]byte, []int)

func (*NamedLinkOrReference) GetName

func (m *NamedLinkOrReference) GetName() string

func (*NamedLinkOrReference) GetValue

func (m *NamedLinkOrReference) GetValue() *LinkOrReference

func (*NamedLinkOrReference) ProtoMessage

func (*NamedLinkOrReference) ProtoMessage()

func (*NamedLinkOrReference) Reset

func (m *NamedLinkOrReference) Reset()

func (*NamedLinkOrReference) ResolveReferences

func (m *NamedLinkOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedLinkOrReference objects.

func (*NamedLinkOrReference) String

func (m *NamedLinkOrReference) String() string

func (*NamedLinkOrReference) ToRawInfo

func (m *NamedLinkOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedLinkOrReference suitable for JSON or YAML export.

type NamedMediaType

type NamedMediaType struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *MediaType `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of MediaType as ordered (name,value) pairs.

func NewNamedMediaType

func NewNamedMediaType(in interface{}, context *compiler.Context) (*NamedMediaType, error)

NewNamedMediaType creates an object of type NamedMediaType if possible, returning an error if not.

func (*NamedMediaType) Descriptor

func (*NamedMediaType) Descriptor() ([]byte, []int)

func (*NamedMediaType) GetName

func (m *NamedMediaType) GetName() string

func (*NamedMediaType) GetValue

func (m *NamedMediaType) GetValue() *MediaType

func (*NamedMediaType) ProtoMessage

func (*NamedMediaType) ProtoMessage()

func (*NamedMediaType) Reset

func (m *NamedMediaType) Reset()

func (*NamedMediaType) ResolveReferences

func (m *NamedMediaType) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedMediaType objects.

func (*NamedMediaType) String

func (m *NamedMediaType) String() string

func (*NamedMediaType) ToRawInfo

func (m *NamedMediaType) ToRawInfo() interface{}

ToRawInfo returns a description of NamedMediaType suitable for JSON or YAML export.

type NamedParameterOrReference

type NamedParameterOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *ParameterOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of ParameterOrReference as ordered (name,value) pairs.

func NewNamedParameterOrReference

func NewNamedParameterOrReference(in interface{}, context *compiler.Context) (*NamedParameterOrReference, error)

NewNamedParameterOrReference creates an object of type NamedParameterOrReference if possible, returning an error if not.

func (*NamedParameterOrReference) Descriptor

func (*NamedParameterOrReference) Descriptor() ([]byte, []int)

func (*NamedParameterOrReference) GetName

func (m *NamedParameterOrReference) GetName() string

func (*NamedParameterOrReference) GetValue

func (*NamedParameterOrReference) ProtoMessage

func (*NamedParameterOrReference) ProtoMessage()

func (*NamedParameterOrReference) Reset

func (m *NamedParameterOrReference) Reset()

func (*NamedParameterOrReference) ResolveReferences

func (m *NamedParameterOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedParameterOrReference objects.

func (*NamedParameterOrReference) String

func (m *NamedParameterOrReference) String() string

func (*NamedParameterOrReference) ToRawInfo

func (m *NamedParameterOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedParameterOrReference suitable for JSON or YAML export.

type NamedPathItem

type NamedPathItem struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *PathItem `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of PathItem as ordered (name,value) pairs.

func NewNamedPathItem

func NewNamedPathItem(in interface{}, context *compiler.Context) (*NamedPathItem, error)

NewNamedPathItem creates an object of type NamedPathItem if possible, returning an error if not.

func (*NamedPathItem) Descriptor

func (*NamedPathItem) Descriptor() ([]byte, []int)

func (*NamedPathItem) GetName

func (m *NamedPathItem) GetName() string

func (*NamedPathItem) GetValue

func (m *NamedPathItem) GetValue() *PathItem

func (*NamedPathItem) ProtoMessage

func (*NamedPathItem) ProtoMessage()

func (*NamedPathItem) Reset

func (m *NamedPathItem) Reset()

func (*NamedPathItem) ResolveReferences

func (m *NamedPathItem) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedPathItem objects.

func (*NamedPathItem) String

func (m *NamedPathItem) String() string

func (*NamedPathItem) ToRawInfo

func (m *NamedPathItem) ToRawInfo() interface{}

ToRawInfo returns a description of NamedPathItem suitable for JSON or YAML export.

type NamedRequestBodyOrReference

type NamedRequestBodyOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *RequestBodyOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of RequestBodyOrReference as ordered (name,value) pairs.

func NewNamedRequestBodyOrReference

func NewNamedRequestBodyOrReference(in interface{}, context *compiler.Context) (*NamedRequestBodyOrReference, error)

NewNamedRequestBodyOrReference creates an object of type NamedRequestBodyOrReference if possible, returning an error if not.

func (*NamedRequestBodyOrReference) Descriptor

func (*NamedRequestBodyOrReference) Descriptor() ([]byte, []int)

func (*NamedRequestBodyOrReference) GetName

func (m *NamedRequestBodyOrReference) GetName() string

func (*NamedRequestBodyOrReference) GetValue

func (*NamedRequestBodyOrReference) ProtoMessage

func (*NamedRequestBodyOrReference) ProtoMessage()

func (*NamedRequestBodyOrReference) Reset

func (m *NamedRequestBodyOrReference) Reset()

func (*NamedRequestBodyOrReference) ResolveReferences

func (m *NamedRequestBodyOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedRequestBodyOrReference objects.

func (*NamedRequestBodyOrReference) String

func (m *NamedRequestBodyOrReference) String() string

func (*NamedRequestBodyOrReference) ToRawInfo

func (m *NamedRequestBodyOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedRequestBodyOrReference suitable for JSON or YAML export.

type NamedResponseOrReference

type NamedResponseOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *ResponseOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of ResponseOrReference as ordered (name,value) pairs.

func NewNamedResponseOrReference

func NewNamedResponseOrReference(in interface{}, context *compiler.Context) (*NamedResponseOrReference, error)

NewNamedResponseOrReference creates an object of type NamedResponseOrReference if possible, returning an error if not.

func (*NamedResponseOrReference) Descriptor

func (*NamedResponseOrReference) Descriptor() ([]byte, []int)

func (*NamedResponseOrReference) GetName

func (m *NamedResponseOrReference) GetName() string

func (*NamedResponseOrReference) GetValue

func (*NamedResponseOrReference) ProtoMessage

func (*NamedResponseOrReference) ProtoMessage()

func (*NamedResponseOrReference) Reset

func (m *NamedResponseOrReference) Reset()

func (*NamedResponseOrReference) ResolveReferences

func (m *NamedResponseOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedResponseOrReference objects.

func (*NamedResponseOrReference) String

func (m *NamedResponseOrReference) String() string

func (*NamedResponseOrReference) ToRawInfo

func (m *NamedResponseOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedResponseOrReference suitable for JSON or YAML export.

type NamedSchemaOrReference

type NamedSchemaOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *SchemaOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of SchemaOrReference as ordered (name,value) pairs.

func NewNamedSchemaOrReference

func NewNamedSchemaOrReference(in interface{}, context *compiler.Context) (*NamedSchemaOrReference, error)

NewNamedSchemaOrReference creates an object of type NamedSchemaOrReference if possible, returning an error if not.

func (*NamedSchemaOrReference) Descriptor

func (*NamedSchemaOrReference) Descriptor() ([]byte, []int)

func (*NamedSchemaOrReference) GetName

func (m *NamedSchemaOrReference) GetName() string

func (*NamedSchemaOrReference) GetValue

func (*NamedSchemaOrReference) ProtoMessage

func (*NamedSchemaOrReference) ProtoMessage()

func (*NamedSchemaOrReference) Reset

func (m *NamedSchemaOrReference) Reset()

func (*NamedSchemaOrReference) ResolveReferences

func (m *NamedSchemaOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedSchemaOrReference objects.

func (*NamedSchemaOrReference) String

func (m *NamedSchemaOrReference) String() string

func (*NamedSchemaOrReference) ToRawInfo

func (m *NamedSchemaOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedSchemaOrReference suitable for JSON or YAML export.

type NamedSecuritySchemeOrReference

type NamedSecuritySchemeOrReference struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *SecuritySchemeOrReference `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of SecuritySchemeOrReference as ordered (name,value) pairs.

func NewNamedSecuritySchemeOrReference

func NewNamedSecuritySchemeOrReference(in interface{}, context *compiler.Context) (*NamedSecuritySchemeOrReference, error)

NewNamedSecuritySchemeOrReference creates an object of type NamedSecuritySchemeOrReference if possible, returning an error if not.

func (*NamedSecuritySchemeOrReference) Descriptor

func (*NamedSecuritySchemeOrReference) Descriptor() ([]byte, []int)

func (*NamedSecuritySchemeOrReference) GetName

func (*NamedSecuritySchemeOrReference) GetValue

func (*NamedSecuritySchemeOrReference) ProtoMessage

func (*NamedSecuritySchemeOrReference) ProtoMessage()

func (*NamedSecuritySchemeOrReference) Reset

func (m *NamedSecuritySchemeOrReference) Reset()

func (*NamedSecuritySchemeOrReference) ResolveReferences

func (m *NamedSecuritySchemeOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedSecuritySchemeOrReference objects.

func (*NamedSecuritySchemeOrReference) String

func (*NamedSecuritySchemeOrReference) ToRawInfo

func (m *NamedSecuritySchemeOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of NamedSecuritySchemeOrReference suitable for JSON or YAML export.

type NamedServerVariable

type NamedServerVariable struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value *ServerVariable `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of ServerVariable as ordered (name,value) pairs.

func NewNamedServerVariable

func NewNamedServerVariable(in interface{}, context *compiler.Context) (*NamedServerVariable, error)

NewNamedServerVariable creates an object of type NamedServerVariable if possible, returning an error if not.

func (*NamedServerVariable) Descriptor

func (*NamedServerVariable) Descriptor() ([]byte, []int)

func (*NamedServerVariable) GetName

func (m *NamedServerVariable) GetName() string

func (*NamedServerVariable) GetValue

func (m *NamedServerVariable) GetValue() *ServerVariable

func (*NamedServerVariable) ProtoMessage

func (*NamedServerVariable) ProtoMessage()

func (*NamedServerVariable) Reset

func (m *NamedServerVariable) Reset()

func (*NamedServerVariable) ResolveReferences

func (m *NamedServerVariable) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedServerVariable objects.

func (*NamedServerVariable) String

func (m *NamedServerVariable) String() string

func (*NamedServerVariable) ToRawInfo

func (m *NamedServerVariable) ToRawInfo() interface{}

ToRawInfo returns a description of NamedServerVariable suitable for JSON or YAML export.

type NamedString

type NamedString struct {
	// Map key
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Mapped value
	Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}

Automatically-generated message used to represent maps of string as ordered (name,value) pairs.

func NewNamedString

func NewNamedString(in interface{}, context *compiler.Context) (*NamedString, error)

NewNamedString creates an object of type NamedString if possible, returning an error if not.

func (*NamedString) Descriptor

func (*NamedString) Descriptor() ([]byte, []int)

func (*NamedString) GetName

func (m *NamedString) GetName() string

func (*NamedString) GetValue

func (m *NamedString) GetValue() string

func (*NamedString) ProtoMessage

func (*NamedString) ProtoMessage()

func (*NamedString) Reset

func (m *NamedString) Reset()

func (*NamedString) ResolveReferences

func (m *NamedString) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside NamedString objects.

func (*NamedString) String

func (m *NamedString) String() string

func (*NamedString) ToRawInfo

func (m *NamedString) ToRawInfo() interface{}

ToRawInfo returns a description of NamedString suitable for JSON or YAML export.

type OauthFlow

type OauthFlow struct {
	AuthorizationUrl       string      `protobuf:"bytes,1,opt,name=authorization_url,json=authorizationUrl" json:"authorization_url,omitempty"`
	TokenUrl               string      `protobuf:"bytes,2,opt,name=token_url,json=tokenUrl" json:"token_url,omitempty"`
	RefreshUrl             string      `protobuf:"bytes,3,opt,name=refresh_url,json=refreshUrl" json:"refresh_url,omitempty"`
	Scopes                 *Strings    `protobuf:"bytes,4,opt,name=scopes" json:"scopes,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,5,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Configuration details for a supported OAuth Flow

func NewOauthFlow

func NewOauthFlow(in interface{}, context *compiler.Context) (*OauthFlow, error)

NewOauthFlow creates an object of type OauthFlow if possible, returning an error if not.

func (*OauthFlow) Descriptor

func (*OauthFlow) Descriptor() ([]byte, []int)

func (*OauthFlow) GetAuthorizationUrl

func (m *OauthFlow) GetAuthorizationUrl() string

func (*OauthFlow) GetRefreshUrl

func (m *OauthFlow) GetRefreshUrl() string

func (*OauthFlow) GetScopes

func (m *OauthFlow) GetScopes() *Strings

func (*OauthFlow) GetSpecificationExtension

func (m *OauthFlow) GetSpecificationExtension() []*NamedAny

func (*OauthFlow) GetTokenUrl

func (m *OauthFlow) GetTokenUrl() string

func (*OauthFlow) ProtoMessage

func (*OauthFlow) ProtoMessage()

func (*OauthFlow) Reset

func (m *OauthFlow) Reset()

func (*OauthFlow) ResolveReferences

func (m *OauthFlow) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside OauthFlow objects.

func (*OauthFlow) String

func (m *OauthFlow) String() string

func (*OauthFlow) ToRawInfo

func (m *OauthFlow) ToRawInfo() interface{}

ToRawInfo returns a description of OauthFlow suitable for JSON or YAML export.

type OauthFlows

type OauthFlows struct {
	Implicit               *OauthFlow  `protobuf:"bytes,1,opt,name=implicit" json:"implicit,omitempty"`
	Password               *OauthFlow  `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"`
	ClientCredentials      *OauthFlow  `protobuf:"bytes,3,opt,name=client_credentials,json=clientCredentials" json:"client_credentials,omitempty"`
	AuthorizationCode      *OauthFlow  `protobuf:"bytes,4,opt,name=authorization_code,json=authorizationCode" json:"authorization_code,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,5,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Allows configuration of the supported OAuth Flows.

func NewOauthFlows

func NewOauthFlows(in interface{}, context *compiler.Context) (*OauthFlows, error)

NewOauthFlows creates an object of type OauthFlows if possible, returning an error if not.

func (*OauthFlows) Descriptor

func (*OauthFlows) Descriptor() ([]byte, []int)

func (*OauthFlows) GetAuthorizationCode

func (m *OauthFlows) GetAuthorizationCode() *OauthFlow

func (*OauthFlows) GetClientCredentials

func (m *OauthFlows) GetClientCredentials() *OauthFlow

func (*OauthFlows) GetImplicit

func (m *OauthFlows) GetImplicit() *OauthFlow

func (*OauthFlows) GetPassword

func (m *OauthFlows) GetPassword() *OauthFlow

func (*OauthFlows) GetSpecificationExtension

func (m *OauthFlows) GetSpecificationExtension() []*NamedAny

func (*OauthFlows) ProtoMessage

func (*OauthFlows) ProtoMessage()

func (*OauthFlows) Reset

func (m *OauthFlows) Reset()

func (*OauthFlows) ResolveReferences

func (m *OauthFlows) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside OauthFlows objects.

func (*OauthFlows) String

func (m *OauthFlows) String() string

func (*OauthFlows) ToRawInfo

func (m *OauthFlows) ToRawInfo() interface{}

ToRawInfo returns a description of OauthFlows suitable for JSON or YAML export.

type Object

type Object struct {
	AdditionalProperties []*NamedAny `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewObject

func NewObject(in interface{}, context *compiler.Context) (*Object, error)

NewObject creates an object of type Object if possible, returning an error if not.

func (*Object) Descriptor

func (*Object) Descriptor() ([]byte, []int)

func (*Object) GetAdditionalProperties

func (m *Object) GetAdditionalProperties() []*NamedAny

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) Reset

func (m *Object) Reset()

func (*Object) ResolveReferences

func (m *Object) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Object objects.

func (*Object) String

func (m *Object) String() string

func (*Object) ToRawInfo

func (m *Object) ToRawInfo() interface{}

ToRawInfo returns a description of Object suitable for JSON or YAML export.

type Operation

type Operation struct {
	Tags                   []string                `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
	Summary                string                  `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"`
	Description            string                  `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	ExternalDocs           *ExternalDocs           `protobuf:"bytes,4,opt,name=external_docs,json=externalDocs" json:"external_docs,omitempty"`
	OperationId            string                  `protobuf:"bytes,5,opt,name=operation_id,json=operationId" json:"operation_id,omitempty"`
	Parameters             []*ParameterOrReference `protobuf:"bytes,6,rep,name=parameters" json:"parameters,omitempty"`
	RequestBody            *RequestBodyOrReference `protobuf:"bytes,7,opt,name=request_body,json=requestBody" json:"request_body,omitempty"`
	Responses              *Responses              `protobuf:"bytes,8,opt,name=responses" json:"responses,omitempty"`
	Callbacks              *CallbacksOrReferences  `protobuf:"bytes,9,opt,name=callbacks" json:"callbacks,omitempty"`
	Deprecated             bool                    `protobuf:"varint,10,opt,name=deprecated" json:"deprecated,omitempty"`
	Security               []*SecurityRequirement  `protobuf:"bytes,11,rep,name=security" json:"security,omitempty"`
	Servers                []*Server               `protobuf:"bytes,12,rep,name=servers" json:"servers,omitempty"`
	SpecificationExtension []*NamedAny             `protobuf:"bytes,13,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Describes a single API operation on a path.

func NewOperation

func NewOperation(in interface{}, context *compiler.Context) (*Operation, error)

NewOperation creates an object of type Operation if possible, returning an error if not.

func (*Operation) Descriptor

func (*Operation) Descriptor() ([]byte, []int)

func (*Operation) GetCallbacks

func (m *Operation) GetCallbacks() *CallbacksOrReferences

func (*Operation) GetDeprecated

func (m *Operation) GetDeprecated() bool

func (*Operation) GetDescription

func (m *Operation) GetDescription() string

func (*Operation) GetExternalDocs

func (m *Operation) GetExternalDocs() *ExternalDocs

func (*Operation) GetOperationId

func (m *Operation) GetOperationId() string

func (*Operation) GetParameters

func (m *Operation) GetParameters() []*ParameterOrReference

func (*Operation) GetRequestBody

func (m *Operation) GetRequestBody() *RequestBodyOrReference

func (*Operation) GetResponses

func (m *Operation) GetResponses() *Responses

func (*Operation) GetSecurity

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

func (*Operation) GetServers

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

func (*Operation) GetSpecificationExtension

func (m *Operation) GetSpecificationExtension() []*NamedAny

func (*Operation) GetSummary

func (m *Operation) GetSummary() string

func (*Operation) GetTags

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

func (*Operation) ProtoMessage

func (*Operation) ProtoMessage()

func (*Operation) Reset

func (m *Operation) Reset()

func (*Operation) ResolveReferences

func (m *Operation) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Operation objects.

func (*Operation) String

func (m *Operation) String() string

func (*Operation) ToRawInfo

func (m *Operation) ToRawInfo() interface{}

ToRawInfo returns a description of Operation suitable for JSON or YAML export.

type Parameter

type Parameter struct {
	Name                   string                `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	In                     string                `protobuf:"bytes,2,opt,name=in" json:"in,omitempty"`
	Description            string                `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	Required               bool                  `protobuf:"varint,4,opt,name=required" json:"required,omitempty"`
	Deprecated             bool                  `protobuf:"varint,5,opt,name=deprecated" json:"deprecated,omitempty"`
	AllowEmptyValue        bool                  `protobuf:"varint,6,opt,name=allow_empty_value,json=allowEmptyValue" json:"allow_empty_value,omitempty"`
	Style                  string                `protobuf:"bytes,7,opt,name=style" json:"style,omitempty"`
	Explode                bool                  `protobuf:"varint,8,opt,name=explode" json:"explode,omitempty"`
	AllowReserved          bool                  `protobuf:"varint,9,opt,name=allow_reserved,json=allowReserved" json:"allow_reserved,omitempty"`
	Schema                 *SchemaOrReference    `protobuf:"bytes,10,opt,name=schema" json:"schema,omitempty"`
	Example                *Any                  `protobuf:"bytes,11,opt,name=example" json:"example,omitempty"`
	Examples               *ExamplesOrReferences `protobuf:"bytes,12,opt,name=examples" json:"examples,omitempty"`
	Content                *MediaTypes           `protobuf:"bytes,13,opt,name=content" json:"content,omitempty"`
	SpecificationExtension []*NamedAny           `protobuf:"bytes,14,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Describes a single operation parameter. A unique parameter is defined by a combination of a name and location.

func NewParameter

func NewParameter(in interface{}, context *compiler.Context) (*Parameter, error)

NewParameter creates an object of type Parameter if possible, returning an error if not.

func (*Parameter) Descriptor

func (*Parameter) Descriptor() ([]byte, []int)

func (*Parameter) GetAllowEmptyValue

func (m *Parameter) GetAllowEmptyValue() bool

func (*Parameter) GetAllowReserved

func (m *Parameter) GetAllowReserved() bool

func (*Parameter) GetContent

func (m *Parameter) GetContent() *MediaTypes

func (*Parameter) GetDeprecated

func (m *Parameter) GetDeprecated() bool

func (*Parameter) GetDescription

func (m *Parameter) GetDescription() string

func (*Parameter) GetExample

func (m *Parameter) GetExample() *Any

func (*Parameter) GetExamples

func (m *Parameter) GetExamples() *ExamplesOrReferences

func (*Parameter) GetExplode

func (m *Parameter) GetExplode() bool

func (*Parameter) GetIn

func (m *Parameter) GetIn() string

func (*Parameter) GetName

func (m *Parameter) GetName() string

func (*Parameter) GetRequired

func (m *Parameter) GetRequired() bool

func (*Parameter) GetSchema

func (m *Parameter) GetSchema() *SchemaOrReference

func (*Parameter) GetSpecificationExtension

func (m *Parameter) GetSpecificationExtension() []*NamedAny

func (*Parameter) GetStyle

func (m *Parameter) GetStyle() string

func (*Parameter) ProtoMessage

func (*Parameter) ProtoMessage()

func (*Parameter) Reset

func (m *Parameter) Reset()

func (*Parameter) ResolveReferences

func (m *Parameter) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Parameter objects.

func (*Parameter) String

func (m *Parameter) String() string

func (*Parameter) ToRawInfo

func (m *Parameter) ToRawInfo() interface{}

ToRawInfo returns a description of Parameter suitable for JSON or YAML export.

type ParameterOrReference

type ParameterOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*ParameterOrReference_Parameter
	//	*ParameterOrReference_Reference
	Oneof isParameterOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewParameterOrReference

func NewParameterOrReference(in interface{}, context *compiler.Context) (*ParameterOrReference, error)

NewParameterOrReference creates an object of type ParameterOrReference if possible, returning an error if not.

func (*ParameterOrReference) Descriptor

func (*ParameterOrReference) Descriptor() ([]byte, []int)

func (*ParameterOrReference) GetOneof

func (m *ParameterOrReference) GetOneof() isParameterOrReference_Oneof

func (*ParameterOrReference) GetParameter

func (m *ParameterOrReference) GetParameter() *Parameter

func (*ParameterOrReference) GetReference

func (m *ParameterOrReference) GetReference() *Reference

func (*ParameterOrReference) ProtoMessage

func (*ParameterOrReference) ProtoMessage()

func (*ParameterOrReference) Reset

func (m *ParameterOrReference) Reset()

func (*ParameterOrReference) ResolveReferences

func (m *ParameterOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ParameterOrReference objects.

func (*ParameterOrReference) String

func (m *ParameterOrReference) String() string

func (*ParameterOrReference) ToRawInfo

func (m *ParameterOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of ParameterOrReference suitable for JSON or YAML export.

func (*ParameterOrReference) XXX_OneofFuncs

func (*ParameterOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ParameterOrReference_Parameter

type ParameterOrReference_Parameter struct {
	Parameter *Parameter `protobuf:"bytes,1,opt,name=parameter,oneof"`
}

type ParameterOrReference_Reference

type ParameterOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type ParametersOrReferences

type ParametersOrReferences struct {
	AdditionalProperties []*NamedParameterOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewParametersOrReferences

func NewParametersOrReferences(in interface{}, context *compiler.Context) (*ParametersOrReferences, error)

NewParametersOrReferences creates an object of type ParametersOrReferences if possible, returning an error if not.

func (*ParametersOrReferences) Descriptor

func (*ParametersOrReferences) Descriptor() ([]byte, []int)

func (*ParametersOrReferences) GetAdditionalProperties

func (m *ParametersOrReferences) GetAdditionalProperties() []*NamedParameterOrReference

func (*ParametersOrReferences) ProtoMessage

func (*ParametersOrReferences) ProtoMessage()

func (*ParametersOrReferences) Reset

func (m *ParametersOrReferences) Reset()

func (*ParametersOrReferences) ResolveReferences

func (m *ParametersOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ParametersOrReferences objects.

func (*ParametersOrReferences) String

func (m *ParametersOrReferences) String() string

func (*ParametersOrReferences) ToRawInfo

func (m *ParametersOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of ParametersOrReferences suitable for JSON or YAML export.

type PathItem

type PathItem struct {
	XRef                   string                  `protobuf:"bytes,1,opt,name=_ref,json=Ref" json:"_ref,omitempty"`
	Summary                string                  `protobuf:"bytes,2,opt,name=summary" json:"summary,omitempty"`
	Description            string                  `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	Get                    *Operation              `protobuf:"bytes,4,opt,name=get" json:"get,omitempty"`
	Put                    *Operation              `protobuf:"bytes,5,opt,name=put" json:"put,omitempty"`
	Post                   *Operation              `protobuf:"bytes,6,opt,name=post" json:"post,omitempty"`
	Delete                 *Operation              `protobuf:"bytes,7,opt,name=delete" json:"delete,omitempty"`
	Options                *Operation              `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"`
	Head                   *Operation              `protobuf:"bytes,9,opt,name=head" json:"head,omitempty"`
	Patch                  *Operation              `protobuf:"bytes,10,opt,name=patch" json:"patch,omitempty"`
	Trace                  *Operation              `protobuf:"bytes,11,opt,name=trace" json:"trace,omitempty"`
	Servers                []*Server               `protobuf:"bytes,12,rep,name=servers" json:"servers,omitempty"`
	Parameters             []*ParameterOrReference `protobuf:"bytes,13,rep,name=parameters" json:"parameters,omitempty"`
	SpecificationExtension []*NamedAny             `protobuf:"bytes,14,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.

func NewPathItem

func NewPathItem(in interface{}, context *compiler.Context) (*PathItem, error)

NewPathItem creates an object of type PathItem if possible, returning an error if not.

func (*PathItem) Descriptor

func (*PathItem) Descriptor() ([]byte, []int)

func (*PathItem) GetDelete

func (m *PathItem) GetDelete() *Operation

func (*PathItem) GetDescription

func (m *PathItem) GetDescription() string

func (*PathItem) GetGet

func (m *PathItem) GetGet() *Operation

func (*PathItem) GetHead

func (m *PathItem) GetHead() *Operation

func (*PathItem) GetOptions

func (m *PathItem) GetOptions() *Operation

func (*PathItem) GetParameters

func (m *PathItem) GetParameters() []*ParameterOrReference

func (*PathItem) GetPatch

func (m *PathItem) GetPatch() *Operation

func (*PathItem) GetPost

func (m *PathItem) GetPost() *Operation

func (*PathItem) GetPut

func (m *PathItem) GetPut() *Operation

func (*PathItem) GetServers

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

func (*PathItem) GetSpecificationExtension

func (m *PathItem) GetSpecificationExtension() []*NamedAny

func (*PathItem) GetSummary

func (m *PathItem) GetSummary() string

func (*PathItem) GetTrace

func (m *PathItem) GetTrace() *Operation

func (*PathItem) GetXRef

func (m *PathItem) GetXRef() string

func (*PathItem) ProtoMessage

func (*PathItem) ProtoMessage()

func (*PathItem) Reset

func (m *PathItem) Reset()

func (*PathItem) ResolveReferences

func (m *PathItem) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside PathItem objects.

func (*PathItem) String

func (m *PathItem) String() string

func (*PathItem) ToRawInfo

func (m *PathItem) ToRawInfo() interface{}

ToRawInfo returns a description of PathItem suitable for JSON or YAML export.

type Paths

type Paths struct {
	Path                   []*NamedPathItem `protobuf:"bytes,1,rep,name=path" json:"path,omitempty"`
	SpecificationExtension []*NamedAny      `protobuf:"bytes,2,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the `Server Object` in order to construct the full URL. The Paths MAY be empty, due to ACL constraints.

func NewPaths

func NewPaths(in interface{}, context *compiler.Context) (*Paths, error)

NewPaths creates an object of type Paths if possible, returning an error if not.

func (*Paths) Descriptor

func (*Paths) Descriptor() ([]byte, []int)

func (*Paths) GetPath

func (m *Paths) GetPath() []*NamedPathItem

func (*Paths) GetSpecificationExtension

func (m *Paths) GetSpecificationExtension() []*NamedAny

func (*Paths) ProtoMessage

func (*Paths) ProtoMessage()

func (*Paths) Reset

func (m *Paths) Reset()

func (*Paths) ResolveReferences

func (m *Paths) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Paths objects.

func (*Paths) String

func (m *Paths) String() string

func (*Paths) ToRawInfo

func (m *Paths) ToRawInfo() interface{}

ToRawInfo returns a description of Paths suitable for JSON or YAML export.

type Properties

type Properties struct {
	AdditionalProperties []*NamedSchemaOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewProperties

func NewProperties(in interface{}, context *compiler.Context) (*Properties, error)

NewProperties creates an object of type Properties if possible, returning an error if not.

func (*Properties) Descriptor

func (*Properties) Descriptor() ([]byte, []int)

func (*Properties) GetAdditionalProperties

func (m *Properties) GetAdditionalProperties() []*NamedSchemaOrReference

func (*Properties) ProtoMessage

func (*Properties) ProtoMessage()

func (*Properties) Reset

func (m *Properties) Reset()

func (*Properties) ResolveReferences

func (m *Properties) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Properties objects.

func (*Properties) String

func (m *Properties) String() string

func (*Properties) ToRawInfo

func (m *Properties) ToRawInfo() interface{}

ToRawInfo returns a description of Properties suitable for JSON or YAML export.

type Reference

type Reference struct {
	XRef string `protobuf:"bytes,1,opt,name=_ref,json=Ref" json:"_ref,omitempty"`
}

A simple object to allow referencing other components in the specification, internally and externally. The Reference Object is defined by JSON Reference and follows the same structure, behavior and rules. For this specification, reference resolution is accomplished as defined by the JSON Reference specification and not by the JSON Schema specification.

func NewReference

func NewReference(in interface{}, context *compiler.Context) (*Reference, error)

NewReference creates an object of type Reference if possible, returning an error if not.

func (*Reference) Descriptor

func (*Reference) Descriptor() ([]byte, []int)

func (*Reference) GetXRef

func (m *Reference) GetXRef() string

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) Reset

func (m *Reference) Reset()

func (*Reference) ResolveReferences

func (m *Reference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Reference objects.

func (*Reference) String

func (m *Reference) String() string

func (*Reference) ToRawInfo

func (m *Reference) ToRawInfo() interface{}

ToRawInfo returns a description of Reference suitable for JSON or YAML export.

type RequestBodiesOrReferences

type RequestBodiesOrReferences struct {
	AdditionalProperties []*NamedRequestBodyOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewRequestBodiesOrReferences

func NewRequestBodiesOrReferences(in interface{}, context *compiler.Context) (*RequestBodiesOrReferences, error)

NewRequestBodiesOrReferences creates an object of type RequestBodiesOrReferences if possible, returning an error if not.

func (*RequestBodiesOrReferences) Descriptor

func (*RequestBodiesOrReferences) Descriptor() ([]byte, []int)

func (*RequestBodiesOrReferences) GetAdditionalProperties

func (m *RequestBodiesOrReferences) GetAdditionalProperties() []*NamedRequestBodyOrReference

func (*RequestBodiesOrReferences) ProtoMessage

func (*RequestBodiesOrReferences) ProtoMessage()

func (*RequestBodiesOrReferences) Reset

func (m *RequestBodiesOrReferences) Reset()

func (*RequestBodiesOrReferences) ResolveReferences

func (m *RequestBodiesOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside RequestBodiesOrReferences objects.

func (*RequestBodiesOrReferences) String

func (m *RequestBodiesOrReferences) String() string

func (*RequestBodiesOrReferences) ToRawInfo

func (m *RequestBodiesOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of RequestBodiesOrReferences suitable for JSON or YAML export.

type RequestBody

type RequestBody struct {
	Description            string      `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
	Content                *MediaTypes `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"`
	Required               bool        `protobuf:"varint,3,opt,name=required" json:"required,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,4,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Describes a single request body.

func NewRequestBody

func NewRequestBody(in interface{}, context *compiler.Context) (*RequestBody, error)

NewRequestBody creates an object of type RequestBody if possible, returning an error if not.

func (*RequestBody) Descriptor

func (*RequestBody) Descriptor() ([]byte, []int)

func (*RequestBody) GetContent

func (m *RequestBody) GetContent() *MediaTypes

func (*RequestBody) GetDescription

func (m *RequestBody) GetDescription() string

func (*RequestBody) GetRequired

func (m *RequestBody) GetRequired() bool

func (*RequestBody) GetSpecificationExtension

func (m *RequestBody) GetSpecificationExtension() []*NamedAny

func (*RequestBody) ProtoMessage

func (*RequestBody) ProtoMessage()

func (*RequestBody) Reset

func (m *RequestBody) Reset()

func (*RequestBody) ResolveReferences

func (m *RequestBody) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside RequestBody objects.

func (*RequestBody) String

func (m *RequestBody) String() string

func (*RequestBody) ToRawInfo

func (m *RequestBody) ToRawInfo() interface{}

ToRawInfo returns a description of RequestBody suitable for JSON or YAML export.

type RequestBodyOrReference

type RequestBodyOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*RequestBodyOrReference_RequestBody
	//	*RequestBodyOrReference_Reference
	Oneof isRequestBodyOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewRequestBodyOrReference

func NewRequestBodyOrReference(in interface{}, context *compiler.Context) (*RequestBodyOrReference, error)

NewRequestBodyOrReference creates an object of type RequestBodyOrReference if possible, returning an error if not.

func (*RequestBodyOrReference) Descriptor

func (*RequestBodyOrReference) Descriptor() ([]byte, []int)

func (*RequestBodyOrReference) GetOneof

func (m *RequestBodyOrReference) GetOneof() isRequestBodyOrReference_Oneof

func (*RequestBodyOrReference) GetReference

func (m *RequestBodyOrReference) GetReference() *Reference

func (*RequestBodyOrReference) GetRequestBody

func (m *RequestBodyOrReference) GetRequestBody() *RequestBody

func (*RequestBodyOrReference) ProtoMessage

func (*RequestBodyOrReference) ProtoMessage()

func (*RequestBodyOrReference) Reset

func (m *RequestBodyOrReference) Reset()

func (*RequestBodyOrReference) ResolveReferences

func (m *RequestBodyOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside RequestBodyOrReference objects.

func (*RequestBodyOrReference) String

func (m *RequestBodyOrReference) String() string

func (*RequestBodyOrReference) ToRawInfo

func (m *RequestBodyOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of RequestBodyOrReference suitable for JSON or YAML export.

func (*RequestBodyOrReference) XXX_OneofFuncs

func (*RequestBodyOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type RequestBodyOrReference_Reference

type RequestBodyOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type RequestBodyOrReference_RequestBody

type RequestBodyOrReference_RequestBody struct {
	RequestBody *RequestBody `protobuf:"bytes,1,opt,name=request_body,json=requestBody,oneof"`
}

type Response

type Response struct {
	Description            string               `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
	Headers                *HeadersOrReferences `protobuf:"bytes,2,opt,name=headers" json:"headers,omitempty"`
	Content                *MediaTypes          `protobuf:"bytes,3,opt,name=content" json:"content,omitempty"`
	Links                  *LinksOrReferences   `protobuf:"bytes,4,opt,name=links" json:"links,omitempty"`
	SpecificationExtension []*NamedAny          `protobuf:"bytes,5,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Describes a single response from an API Operation, including design-time, static `links` to operations based on the response.

func NewResponse

func NewResponse(in interface{}, context *compiler.Context) (*Response, error)

NewResponse creates an object of type Response if possible, returning an error if not.

func (*Response) Descriptor

func (*Response) Descriptor() ([]byte, []int)

func (*Response) GetContent

func (m *Response) GetContent() *MediaTypes

func (*Response) GetDescription

func (m *Response) GetDescription() string

func (*Response) GetHeaders

func (m *Response) GetHeaders() *HeadersOrReferences
func (m *Response) GetLinks() *LinksOrReferences

func (*Response) GetSpecificationExtension

func (m *Response) GetSpecificationExtension() []*NamedAny

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) ResolveReferences

func (m *Response) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Response objects.

func (*Response) String

func (m *Response) String() string

func (*Response) ToRawInfo

func (m *Response) ToRawInfo() interface{}

ToRawInfo returns a description of Response suitable for JSON or YAML export.

type ResponseOrReference

type ResponseOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*ResponseOrReference_Response
	//	*ResponseOrReference_Reference
	Oneof isResponseOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewResponseOrReference

func NewResponseOrReference(in interface{}, context *compiler.Context) (*ResponseOrReference, error)

NewResponseOrReference creates an object of type ResponseOrReference if possible, returning an error if not.

func (*ResponseOrReference) Descriptor

func (*ResponseOrReference) Descriptor() ([]byte, []int)

func (*ResponseOrReference) GetOneof

func (m *ResponseOrReference) GetOneof() isResponseOrReference_Oneof

func (*ResponseOrReference) GetReference

func (m *ResponseOrReference) GetReference() *Reference

func (*ResponseOrReference) GetResponse

func (m *ResponseOrReference) GetResponse() *Response

func (*ResponseOrReference) ProtoMessage

func (*ResponseOrReference) ProtoMessage()

func (*ResponseOrReference) Reset

func (m *ResponseOrReference) Reset()

func (*ResponseOrReference) ResolveReferences

func (m *ResponseOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ResponseOrReference objects.

func (*ResponseOrReference) String

func (m *ResponseOrReference) String() string

func (*ResponseOrReference) ToRawInfo

func (m *ResponseOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of ResponseOrReference suitable for JSON or YAML export.

func (*ResponseOrReference) XXX_OneofFuncs

func (*ResponseOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type ResponseOrReference_Reference

type ResponseOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type ResponseOrReference_Response

type ResponseOrReference_Response struct {
	Response *Response `protobuf:"bytes,1,opt,name=response,oneof"`
}

type Responses

type Responses struct {
	Default                *ResponseOrReference        `protobuf:"bytes,1,opt,name=default" json:"default,omitempty"`
	ResponseOrReference    []*NamedResponseOrReference `protobuf:"bytes,2,rep,name=response_or_reference,json=responseOrReference" json:"response_or_reference,omitempty"`
	SpecificationExtension []*NamedAny                 `protobuf:"bytes,3,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

A container for the expected responses of an operation. The container maps a HTTP response code to the expected response. The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known in advance. However, documentation is expected to cover a successful operation response and any known errors. The `default` MAY be used as a default response object for all HTTP codes that are not covered individually by the specification. The `Responses Object` MUST contain at least one response code, and it SHOULD be the response for a successful operation call.

func NewResponses

func NewResponses(in interface{}, context *compiler.Context) (*Responses, error)

NewResponses creates an object of type Responses if possible, returning an error if not.

func (*Responses) Descriptor

func (*Responses) Descriptor() ([]byte, []int)

func (*Responses) GetDefault

func (m *Responses) GetDefault() *ResponseOrReference

func (*Responses) GetResponseOrReference

func (m *Responses) GetResponseOrReference() []*NamedResponseOrReference

func (*Responses) GetSpecificationExtension

func (m *Responses) GetSpecificationExtension() []*NamedAny

func (*Responses) ProtoMessage

func (*Responses) ProtoMessage()

func (*Responses) Reset

func (m *Responses) Reset()

func (*Responses) ResolveReferences

func (m *Responses) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Responses objects.

func (*Responses) String

func (m *Responses) String() string

func (*Responses) ToRawInfo

func (m *Responses) ToRawInfo() interface{}

ToRawInfo returns a description of Responses suitable for JSON or YAML export.

type ResponsesOrReferences

type ResponsesOrReferences struct {
	AdditionalProperties []*NamedResponseOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewResponsesOrReferences

func NewResponsesOrReferences(in interface{}, context *compiler.Context) (*ResponsesOrReferences, error)

NewResponsesOrReferences creates an object of type ResponsesOrReferences if possible, returning an error if not.

func (*ResponsesOrReferences) Descriptor

func (*ResponsesOrReferences) Descriptor() ([]byte, []int)

func (*ResponsesOrReferences) GetAdditionalProperties

func (m *ResponsesOrReferences) GetAdditionalProperties() []*NamedResponseOrReference

func (*ResponsesOrReferences) ProtoMessage

func (*ResponsesOrReferences) ProtoMessage()

func (*ResponsesOrReferences) Reset

func (m *ResponsesOrReferences) Reset()

func (*ResponsesOrReferences) ResolveReferences

func (m *ResponsesOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ResponsesOrReferences objects.

func (*ResponsesOrReferences) String

func (m *ResponsesOrReferences) String() string

func (*ResponsesOrReferences) ToRawInfo

func (m *ResponsesOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of ResponsesOrReferences suitable for JSON or YAML export.

type Schema

type Schema struct {
	Nullable               bool                      `protobuf:"varint,1,opt,name=nullable" json:"nullable,omitempty"`
	Discriminator          *Discriminator            `protobuf:"bytes,2,opt,name=discriminator" json:"discriminator,omitempty"`
	ReadOnly               bool                      `protobuf:"varint,3,opt,name=read_only,json=readOnly" json:"read_only,omitempty"`
	WriteOnly              bool                      `protobuf:"varint,4,opt,name=write_only,json=writeOnly" json:"write_only,omitempty"`
	Xml                    *Xml                      `protobuf:"bytes,5,opt,name=xml" json:"xml,omitempty"`
	ExternalDocs           *ExternalDocs             `protobuf:"bytes,6,opt,name=external_docs,json=externalDocs" json:"external_docs,omitempty"`
	Example                *Any                      `protobuf:"bytes,7,opt,name=example" json:"example,omitempty"`
	Deprecated             bool                      `protobuf:"varint,8,opt,name=deprecated" json:"deprecated,omitempty"`
	Title                  string                    `protobuf:"bytes,9,opt,name=title" json:"title,omitempty"`
	MultipleOf             float64                   `protobuf:"fixed64,10,opt,name=multiple_of,json=multipleOf" json:"multiple_of,omitempty"`
	Maximum                float64                   `protobuf:"fixed64,11,opt,name=maximum" json:"maximum,omitempty"`
	ExclusiveMaximum       bool                      `protobuf:"varint,12,opt,name=exclusive_maximum,json=exclusiveMaximum" json:"exclusive_maximum,omitempty"`
	Minimum                float64                   `protobuf:"fixed64,13,opt,name=minimum" json:"minimum,omitempty"`
	ExclusiveMinimum       bool                      `protobuf:"varint,14,opt,name=exclusive_minimum,json=exclusiveMinimum" json:"exclusive_minimum,omitempty"`
	MaxLength              int64                     `protobuf:"varint,15,opt,name=max_length,json=maxLength" json:"max_length,omitempty"`
	MinLength              int64                     `protobuf:"varint,16,opt,name=min_length,json=minLength" json:"min_length,omitempty"`
	Pattern                string                    `protobuf:"bytes,17,opt,name=pattern" json:"pattern,omitempty"`
	MaxItems               int64                     `protobuf:"varint,18,opt,name=max_items,json=maxItems" json:"max_items,omitempty"`
	MinItems               int64                     `protobuf:"varint,19,opt,name=min_items,json=minItems" json:"min_items,omitempty"`
	UniqueItems            bool                      `protobuf:"varint,20,opt,name=unique_items,json=uniqueItems" json:"unique_items,omitempty"`
	MaxProperties          int64                     `protobuf:"varint,21,opt,name=max_properties,json=maxProperties" json:"max_properties,omitempty"`
	MinProperties          int64                     `protobuf:"varint,22,opt,name=min_properties,json=minProperties" json:"min_properties,omitempty"`
	Required               []string                  `protobuf:"bytes,23,rep,name=required" json:"required,omitempty"`
	Enum                   []*Any                    `protobuf:"bytes,24,rep,name=enum" json:"enum,omitempty"`
	Type                   string                    `protobuf:"bytes,25,opt,name=type" json:"type,omitempty"`
	AllOf                  []*SchemaOrReference      `protobuf:"bytes,26,rep,name=all_of,json=allOf" json:"all_of,omitempty"`
	OneOf                  []*SchemaOrReference      `protobuf:"bytes,27,rep,name=one_of,json=oneOf" json:"one_of,omitempty"`
	AnyOf                  []*SchemaOrReference      `protobuf:"bytes,28,rep,name=any_of,json=anyOf" json:"any_of,omitempty"`
	Not                    *Schema                   `protobuf:"bytes,29,opt,name=not" json:"not,omitempty"`
	Items                  *ItemsItem                `protobuf:"bytes,30,opt,name=items" json:"items,omitempty"`
	Properties             *Properties               `protobuf:"bytes,31,opt,name=properties" json:"properties,omitempty"`
	AdditionalProperties   *AdditionalPropertiesItem `protobuf:"bytes,32,opt,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
	Default                *DefaultType              `protobuf:"bytes,33,opt,name=default" json:"default,omitempty"`
	Description            string                    `protobuf:"bytes,34,opt,name=description" json:"description,omitempty"`
	Format                 string                    `protobuf:"bytes,35,opt,name=format" json:"format,omitempty"`
	SpecificationExtension []*NamedAny               `protobuf:"bytes,36,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

The Schema Object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. This object is an extended subset of the JSON Schema Specification Wright Draft 00. For more information about the properties, see JSON Schema Core and JSON Schema Validation. Unless stated otherwise, the property definitions follow the JSON Schema.

func NewSchema

func NewSchema(in interface{}, context *compiler.Context) (*Schema, error)

NewSchema creates an object of type Schema if possible, returning an error if not.

func (*Schema) Descriptor

func (*Schema) Descriptor() ([]byte, []int)

func (*Schema) GetAdditionalProperties

func (m *Schema) GetAdditionalProperties() *AdditionalPropertiesItem

func (*Schema) GetAllOf

func (m *Schema) GetAllOf() []*SchemaOrReference

func (*Schema) GetAnyOf

func (m *Schema) GetAnyOf() []*SchemaOrReference

func (*Schema) GetDefault

func (m *Schema) GetDefault() *DefaultType

func (*Schema) GetDeprecated

func (m *Schema) GetDeprecated() bool

func (*Schema) GetDescription

func (m *Schema) GetDescription() string

func (*Schema) GetDiscriminator

func (m *Schema) GetDiscriminator() *Discriminator

func (*Schema) GetEnum

func (m *Schema) GetEnum() []*Any

func (*Schema) GetExample

func (m *Schema) GetExample() *Any

func (*Schema) GetExclusiveMaximum

func (m *Schema) GetExclusiveMaximum() bool

func (*Schema) GetExclusiveMinimum

func (m *Schema) GetExclusiveMinimum() bool

func (*Schema) GetExternalDocs

func (m *Schema) GetExternalDocs() *ExternalDocs

func (*Schema) GetFormat

func (m *Schema) GetFormat() string

func (*Schema) GetItems

func (m *Schema) GetItems() *ItemsItem

func (*Schema) GetMaxItems

func (m *Schema) GetMaxItems() int64

func (*Schema) GetMaxLength

func (m *Schema) GetMaxLength() int64

func (*Schema) GetMaxProperties

func (m *Schema) GetMaxProperties() int64

func (*Schema) GetMaximum

func (m *Schema) GetMaximum() float64

func (*Schema) GetMinItems

func (m *Schema) GetMinItems() int64

func (*Schema) GetMinLength

func (m *Schema) GetMinLength() int64

func (*Schema) GetMinProperties

func (m *Schema) GetMinProperties() int64

func (*Schema) GetMinimum

func (m *Schema) GetMinimum() float64

func (*Schema) GetMultipleOf

func (m *Schema) GetMultipleOf() float64

func (*Schema) GetNot

func (m *Schema) GetNot() *Schema

func (*Schema) GetNullable

func (m *Schema) GetNullable() bool

func (*Schema) GetOneOf

func (m *Schema) GetOneOf() []*SchemaOrReference

func (*Schema) GetPattern

func (m *Schema) GetPattern() string

func (*Schema) GetProperties

func (m *Schema) GetProperties() *Properties

func (*Schema) GetReadOnly

func (m *Schema) GetReadOnly() bool

func (*Schema) GetRequired

func (m *Schema) GetRequired() []string

func (*Schema) GetSpecificationExtension

func (m *Schema) GetSpecificationExtension() []*NamedAny

func (*Schema) GetTitle

func (m *Schema) GetTitle() string

func (*Schema) GetType

func (m *Schema) GetType() string

func (*Schema) GetUniqueItems

func (m *Schema) GetUniqueItems() bool

func (*Schema) GetWriteOnly

func (m *Schema) GetWriteOnly() bool

func (*Schema) GetXml

func (m *Schema) GetXml() *Xml

func (*Schema) ProtoMessage

func (*Schema) ProtoMessage()

func (*Schema) Reset

func (m *Schema) Reset()

func (*Schema) ResolveReferences

func (m *Schema) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Schema objects.

func (*Schema) String

func (m *Schema) String() string

func (*Schema) ToRawInfo

func (m *Schema) ToRawInfo() interface{}

ToRawInfo returns a description of Schema suitable for JSON or YAML export.

type SchemaOrReference

type SchemaOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*SchemaOrReference_Schema
	//	*SchemaOrReference_Reference
	Oneof isSchemaOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewSchemaOrReference

func NewSchemaOrReference(in interface{}, context *compiler.Context) (*SchemaOrReference, error)

NewSchemaOrReference creates an object of type SchemaOrReference if possible, returning an error if not.

func (*SchemaOrReference) Descriptor

func (*SchemaOrReference) Descriptor() ([]byte, []int)

func (*SchemaOrReference) GetOneof

func (m *SchemaOrReference) GetOneof() isSchemaOrReference_Oneof

func (*SchemaOrReference) GetReference

func (m *SchemaOrReference) GetReference() *Reference

func (*SchemaOrReference) GetSchema

func (m *SchemaOrReference) GetSchema() *Schema

func (*SchemaOrReference) ProtoMessage

func (*SchemaOrReference) ProtoMessage()

func (*SchemaOrReference) Reset

func (m *SchemaOrReference) Reset()

func (*SchemaOrReference) ResolveReferences

func (m *SchemaOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SchemaOrReference objects.

func (*SchemaOrReference) String

func (m *SchemaOrReference) String() string

func (*SchemaOrReference) ToRawInfo

func (m *SchemaOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of SchemaOrReference suitable for JSON or YAML export.

func (*SchemaOrReference) XXX_OneofFuncs

func (*SchemaOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SchemaOrReference_Reference

type SchemaOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type SchemaOrReference_Schema

type SchemaOrReference_Schema struct {
	Schema *Schema `protobuf:"bytes,1,opt,name=schema,oneof"`
}

type SchemasOrReferences

type SchemasOrReferences struct {
	AdditionalProperties []*NamedSchemaOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewSchemasOrReferences

func NewSchemasOrReferences(in interface{}, context *compiler.Context) (*SchemasOrReferences, error)

NewSchemasOrReferences creates an object of type SchemasOrReferences if possible, returning an error if not.

func (*SchemasOrReferences) Descriptor

func (*SchemasOrReferences) Descriptor() ([]byte, []int)

func (*SchemasOrReferences) GetAdditionalProperties

func (m *SchemasOrReferences) GetAdditionalProperties() []*NamedSchemaOrReference

func (*SchemasOrReferences) ProtoMessage

func (*SchemasOrReferences) ProtoMessage()

func (*SchemasOrReferences) Reset

func (m *SchemasOrReferences) Reset()

func (*SchemasOrReferences) ResolveReferences

func (m *SchemasOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SchemasOrReferences objects.

func (*SchemasOrReferences) String

func (m *SchemasOrReferences) String() string

func (*SchemasOrReferences) ToRawInfo

func (m *SchemasOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of SchemasOrReferences suitable for JSON or YAML export.

type SecurityRequirement

type SecurityRequirement struct {
}

Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object. Security Requirement Objects that contain multiple schemes require that all schemes MUST be satisfied for a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are required to convey security information. When a list of Security Requirement Objects is defined on the Open API object or Operation Object, only one of Security Requirement Objects in the list needs to be satisfied to authorize the request.

func NewSecurityRequirement

func NewSecurityRequirement(in interface{}, context *compiler.Context) (*SecurityRequirement, error)

NewSecurityRequirement creates an object of type SecurityRequirement if possible, returning an error if not.

func (*SecurityRequirement) Descriptor

func (*SecurityRequirement) Descriptor() ([]byte, []int)

func (*SecurityRequirement) ProtoMessage

func (*SecurityRequirement) ProtoMessage()

func (*SecurityRequirement) Reset

func (m *SecurityRequirement) Reset()

func (*SecurityRequirement) ResolveReferences

func (m *SecurityRequirement) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SecurityRequirement objects.

func (*SecurityRequirement) String

func (m *SecurityRequirement) String() string

func (*SecurityRequirement) ToRawInfo

func (m *SecurityRequirement) ToRawInfo() interface{}

ToRawInfo returns a description of SecurityRequirement suitable for JSON or YAML export.

type SecurityScheme

type SecurityScheme struct {
	Type                   string      `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
	Description            string      `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	Name                   string      `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"`
	In                     string      `protobuf:"bytes,4,opt,name=in" json:"in,omitempty"`
	Scheme                 string      `protobuf:"bytes,5,opt,name=scheme" json:"scheme,omitempty"`
	BearerFormat           string      `protobuf:"bytes,6,opt,name=bearer_format,json=bearerFormat" json:"bearer_format,omitempty"`
	Flows                  *OauthFlows `protobuf:"bytes,7,opt,name=flows" json:"flows,omitempty"`
	OpenIdConnectUrl       string      `protobuf:"bytes,8,opt,name=open_id_connect_url,json=openIdConnectUrl" json:"open_id_connect_url,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,9,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header or as a query parameter), OAuth2's common flows (implicit, password, application and access code) as defined in RFC6749, and OpenID Connect Discovery.

func NewSecurityScheme

func NewSecurityScheme(in interface{}, context *compiler.Context) (*SecurityScheme, error)

NewSecurityScheme creates an object of type SecurityScheme if possible, returning an error if not.

func (*SecurityScheme) Descriptor

func (*SecurityScheme) Descriptor() ([]byte, []int)

func (*SecurityScheme) GetBearerFormat

func (m *SecurityScheme) GetBearerFormat() string

func (*SecurityScheme) GetDescription

func (m *SecurityScheme) GetDescription() string

func (*SecurityScheme) GetFlows

func (m *SecurityScheme) GetFlows() *OauthFlows

func (*SecurityScheme) GetIn

func (m *SecurityScheme) GetIn() string

func (*SecurityScheme) GetName

func (m *SecurityScheme) GetName() string

func (*SecurityScheme) GetOpenIdConnectUrl

func (m *SecurityScheme) GetOpenIdConnectUrl() string

func (*SecurityScheme) GetScheme

func (m *SecurityScheme) GetScheme() string

func (*SecurityScheme) GetSpecificationExtension

func (m *SecurityScheme) GetSpecificationExtension() []*NamedAny

func (*SecurityScheme) GetType

func (m *SecurityScheme) GetType() string

func (*SecurityScheme) ProtoMessage

func (*SecurityScheme) ProtoMessage()

func (*SecurityScheme) Reset

func (m *SecurityScheme) Reset()

func (*SecurityScheme) ResolveReferences

func (m *SecurityScheme) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SecurityScheme objects.

func (*SecurityScheme) String

func (m *SecurityScheme) String() string

func (*SecurityScheme) ToRawInfo

func (m *SecurityScheme) ToRawInfo() interface{}

ToRawInfo returns a description of SecurityScheme suitable for JSON or YAML export.

type SecuritySchemeOrReference

type SecuritySchemeOrReference struct {
	// Types that are valid to be assigned to Oneof:
	//	*SecuritySchemeOrReference_SecurityScheme
	//	*SecuritySchemeOrReference_Reference
	Oneof isSecuritySchemeOrReference_Oneof `protobuf_oneof:"oneof"`
}

func NewSecuritySchemeOrReference

func NewSecuritySchemeOrReference(in interface{}, context *compiler.Context) (*SecuritySchemeOrReference, error)

NewSecuritySchemeOrReference creates an object of type SecuritySchemeOrReference if possible, returning an error if not.

func (*SecuritySchemeOrReference) Descriptor

func (*SecuritySchemeOrReference) Descriptor() ([]byte, []int)

func (*SecuritySchemeOrReference) GetOneof

func (m *SecuritySchemeOrReference) GetOneof() isSecuritySchemeOrReference_Oneof

func (*SecuritySchemeOrReference) GetReference

func (m *SecuritySchemeOrReference) GetReference() *Reference

func (*SecuritySchemeOrReference) GetSecurityScheme

func (m *SecuritySchemeOrReference) GetSecurityScheme() *SecurityScheme

func (*SecuritySchemeOrReference) ProtoMessage

func (*SecuritySchemeOrReference) ProtoMessage()

func (*SecuritySchemeOrReference) Reset

func (m *SecuritySchemeOrReference) Reset()

func (*SecuritySchemeOrReference) ResolveReferences

func (m *SecuritySchemeOrReference) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SecuritySchemeOrReference objects.

func (*SecuritySchemeOrReference) String

func (m *SecuritySchemeOrReference) String() string

func (*SecuritySchemeOrReference) ToRawInfo

func (m *SecuritySchemeOrReference) ToRawInfo() interface{}

ToRawInfo returns a description of SecuritySchemeOrReference suitable for JSON or YAML export.

func (*SecuritySchemeOrReference) XXX_OneofFuncs

func (*SecuritySchemeOrReference) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SecuritySchemeOrReference_Reference

type SecuritySchemeOrReference_Reference struct {
	Reference *Reference `protobuf:"bytes,2,opt,name=reference,oneof"`
}

type SecuritySchemeOrReference_SecurityScheme

type SecuritySchemeOrReference_SecurityScheme struct {
	SecurityScheme *SecurityScheme `protobuf:"bytes,1,opt,name=security_scheme,json=securityScheme,oneof"`
}

type SecuritySchemesOrReferences

type SecuritySchemesOrReferences struct {
	AdditionalProperties []*NamedSecuritySchemeOrReference `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewSecuritySchemesOrReferences

func NewSecuritySchemesOrReferences(in interface{}, context *compiler.Context) (*SecuritySchemesOrReferences, error)

NewSecuritySchemesOrReferences creates an object of type SecuritySchemesOrReferences if possible, returning an error if not.

func (*SecuritySchemesOrReferences) Descriptor

func (*SecuritySchemesOrReferences) Descriptor() ([]byte, []int)

func (*SecuritySchemesOrReferences) GetAdditionalProperties

func (m *SecuritySchemesOrReferences) GetAdditionalProperties() []*NamedSecuritySchemeOrReference

func (*SecuritySchemesOrReferences) ProtoMessage

func (*SecuritySchemesOrReferences) ProtoMessage()

func (*SecuritySchemesOrReferences) Reset

func (m *SecuritySchemesOrReferences) Reset()

func (*SecuritySchemesOrReferences) ResolveReferences

func (m *SecuritySchemesOrReferences) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SecuritySchemesOrReferences objects.

func (*SecuritySchemesOrReferences) String

func (m *SecuritySchemesOrReferences) String() string

func (*SecuritySchemesOrReferences) ToRawInfo

func (m *SecuritySchemesOrReferences) ToRawInfo() interface{}

ToRawInfo returns a description of SecuritySchemesOrReferences suitable for JSON or YAML export.

type Server

type Server struct {
	Url                    string           `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	Description            string           `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	Variables              *ServerVariables `protobuf:"bytes,3,opt,name=variables" json:"variables,omitempty"`
	SpecificationExtension []*NamedAny      `protobuf:"bytes,4,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

An object representing a Server.

func NewServer

func NewServer(in interface{}, context *compiler.Context) (*Server, error)

NewServer creates an object of type Server if possible, returning an error if not.

func (*Server) Descriptor

func (*Server) Descriptor() ([]byte, []int)

func (*Server) GetDescription

func (m *Server) GetDescription() string

func (*Server) GetSpecificationExtension

func (m *Server) GetSpecificationExtension() []*NamedAny

func (*Server) GetUrl

func (m *Server) GetUrl() string

func (*Server) GetVariables

func (m *Server) GetVariables() *ServerVariables

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) ResolveReferences

func (m *Server) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Server objects.

func (*Server) String

func (m *Server) String() string

func (*Server) ToRawInfo

func (m *Server) ToRawInfo() interface{}

ToRawInfo returns a description of Server suitable for JSON or YAML export.

type ServerVariable

type ServerVariable struct {
	Enum                   []string    `protobuf:"bytes,1,rep,name=enum" json:"enum,omitempty"`
	Default                string      `protobuf:"bytes,2,opt,name=default" json:"default,omitempty"`
	Description            string      `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,4,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

An object representing a Server Variable for server URL template substitution.

func NewServerVariable

func NewServerVariable(in interface{}, context *compiler.Context) (*ServerVariable, error)

NewServerVariable creates an object of type ServerVariable if possible, returning an error if not.

func (*ServerVariable) Descriptor

func (*ServerVariable) Descriptor() ([]byte, []int)

func (*ServerVariable) GetDefault

func (m *ServerVariable) GetDefault() string

func (*ServerVariable) GetDescription

func (m *ServerVariable) GetDescription() string

func (*ServerVariable) GetEnum

func (m *ServerVariable) GetEnum() []string

func (*ServerVariable) GetSpecificationExtension

func (m *ServerVariable) GetSpecificationExtension() []*NamedAny

func (*ServerVariable) ProtoMessage

func (*ServerVariable) ProtoMessage()

func (*ServerVariable) Reset

func (m *ServerVariable) Reset()

func (*ServerVariable) ResolveReferences

func (m *ServerVariable) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ServerVariable objects.

func (*ServerVariable) String

func (m *ServerVariable) String() string

func (*ServerVariable) ToRawInfo

func (m *ServerVariable) ToRawInfo() interface{}

ToRawInfo returns a description of ServerVariable suitable for JSON or YAML export.

type ServerVariables

type ServerVariables struct {
	AdditionalProperties []*NamedServerVariable `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewServerVariables

func NewServerVariables(in interface{}, context *compiler.Context) (*ServerVariables, error)

NewServerVariables creates an object of type ServerVariables if possible, returning an error if not.

func (*ServerVariables) Descriptor

func (*ServerVariables) Descriptor() ([]byte, []int)

func (*ServerVariables) GetAdditionalProperties

func (m *ServerVariables) GetAdditionalProperties() []*NamedServerVariable

func (*ServerVariables) ProtoMessage

func (*ServerVariables) ProtoMessage()

func (*ServerVariables) Reset

func (m *ServerVariables) Reset()

func (*ServerVariables) ResolveReferences

func (m *ServerVariables) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside ServerVariables objects.

func (*ServerVariables) String

func (m *ServerVariables) String() string

func (*ServerVariables) ToRawInfo

func (m *ServerVariables) ToRawInfo() interface{}

ToRawInfo returns a description of ServerVariables suitable for JSON or YAML export.

type SpecificationExtension

type SpecificationExtension struct {
	// Types that are valid to be assigned to Oneof:
	//	*SpecificationExtension_Number
	//	*SpecificationExtension_Boolean
	//	*SpecificationExtension_String_
	Oneof isSpecificationExtension_Oneof `protobuf_oneof:"oneof"`
}

Any property starting with x- is valid.

func NewSpecificationExtension

func NewSpecificationExtension(in interface{}, context *compiler.Context) (*SpecificationExtension, error)

NewSpecificationExtension creates an object of type SpecificationExtension if possible, returning an error if not.

func (*SpecificationExtension) Descriptor

func (*SpecificationExtension) Descriptor() ([]byte, []int)

func (*SpecificationExtension) GetBoolean

func (m *SpecificationExtension) GetBoolean() bool

func (*SpecificationExtension) GetNumber

func (m *SpecificationExtension) GetNumber() float64

func (*SpecificationExtension) GetOneof

func (m *SpecificationExtension) GetOneof() isSpecificationExtension_Oneof

func (*SpecificationExtension) GetString_

func (m *SpecificationExtension) GetString_() string

func (*SpecificationExtension) ProtoMessage

func (*SpecificationExtension) ProtoMessage()

func (*SpecificationExtension) Reset

func (m *SpecificationExtension) Reset()

func (*SpecificationExtension) ResolveReferences

func (m *SpecificationExtension) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside SpecificationExtension objects.

func (*SpecificationExtension) String

func (m *SpecificationExtension) String() string

func (*SpecificationExtension) ToRawInfo

func (m *SpecificationExtension) ToRawInfo() interface{}

ToRawInfo returns a description of SpecificationExtension suitable for JSON or YAML export.

func (*SpecificationExtension) XXX_OneofFuncs

func (*SpecificationExtension) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type SpecificationExtension_Boolean

type SpecificationExtension_Boolean struct {
	Boolean bool `protobuf:"varint,2,opt,name=boolean,oneof"`
}

type SpecificationExtension_Number

type SpecificationExtension_Number struct {
	Number float64 `protobuf:"fixed64,1,opt,name=number,oneof"`
}

type SpecificationExtension_String_

type SpecificationExtension_String_ struct {
	String_ string `protobuf:"bytes,3,opt,name=string,oneof"`
}

type StringArray

type StringArray struct {
	Value []string `protobuf:"bytes,1,rep,name=value" json:"value,omitempty"`
}

func NewStringArray

func NewStringArray(in interface{}, context *compiler.Context) (*StringArray, error)

NewStringArray creates an object of type StringArray if possible, returning an error if not.

func (*StringArray) Descriptor

func (*StringArray) Descriptor() ([]byte, []int)

func (*StringArray) GetValue

func (m *StringArray) GetValue() []string

func (*StringArray) ProtoMessage

func (*StringArray) ProtoMessage()

func (*StringArray) Reset

func (m *StringArray) Reset()

func (*StringArray) ResolveReferences

func (m *StringArray) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside StringArray objects.

func (*StringArray) String

func (m *StringArray) String() string

func (*StringArray) ToRawInfo

func (m *StringArray) ToRawInfo() interface{}

ToRawInfo returns a description of StringArray suitable for JSON or YAML export.

type Strings

type Strings struct {
	AdditionalProperties []*NamedString `protobuf:"bytes,1,rep,name=additional_properties,json=additionalProperties" json:"additional_properties,omitempty"`
}

func NewStrings

func NewStrings(in interface{}, context *compiler.Context) (*Strings, error)

NewStrings creates an object of type Strings if possible, returning an error if not.

func (*Strings) Descriptor

func (*Strings) Descriptor() ([]byte, []int)

func (*Strings) GetAdditionalProperties

func (m *Strings) GetAdditionalProperties() []*NamedString

func (*Strings) ProtoMessage

func (*Strings) ProtoMessage()

func (*Strings) Reset

func (m *Strings) Reset()

func (*Strings) ResolveReferences

func (m *Strings) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Strings objects.

func (*Strings) String

func (m *Strings) String() string

func (*Strings) ToRawInfo

func (m *Strings) ToRawInfo() interface{}

ToRawInfo returns a description of Strings suitable for JSON or YAML export.

type Tag

type Tag struct {
	Name                   string        `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Description            string        `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
	ExternalDocs           *ExternalDocs `protobuf:"bytes,3,opt,name=external_docs,json=externalDocs" json:"external_docs,omitempty"`
	SpecificationExtension []*NamedAny   `protobuf:"bytes,4,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances.

func NewTag

func NewTag(in interface{}, context *compiler.Context) (*Tag, error)

NewTag creates an object of type Tag if possible, returning an error if not.

func (*Tag) Descriptor

func (*Tag) Descriptor() ([]byte, []int)

func (*Tag) GetDescription

func (m *Tag) GetDescription() string

func (*Tag) GetExternalDocs

func (m *Tag) GetExternalDocs() *ExternalDocs

func (*Tag) GetName

func (m *Tag) GetName() string

func (*Tag) GetSpecificationExtension

func (m *Tag) GetSpecificationExtension() []*NamedAny

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) Reset

func (m *Tag) Reset()

func (*Tag) ResolveReferences

func (m *Tag) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Tag objects.

func (*Tag) String

func (m *Tag) String() string

func (*Tag) ToRawInfo

func (m *Tag) ToRawInfo() interface{}

ToRawInfo returns a description of Tag suitable for JSON or YAML export.

type Xml

type Xml struct {
	Name                   string      `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Namespace              string      `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty"`
	Prefix                 string      `protobuf:"bytes,3,opt,name=prefix" json:"prefix,omitempty"`
	Attribute              bool        `protobuf:"varint,4,opt,name=attribute" json:"attribute,omitempty"`
	Wrapped                bool        `protobuf:"varint,5,opt,name=wrapped" json:"wrapped,omitempty"`
	SpecificationExtension []*NamedAny `protobuf:"bytes,6,rep,name=specification_extension,json=specificationExtension" json:"specification_extension,omitempty"`
}

A metadata object that allows for more fine-tuned XML model definitions. When using arrays, XML element names are *not* inferred (for singular/plural forms) and the `name` property SHOULD be used to add that information. See examples for expected behavior.

func NewXml

func NewXml(in interface{}, context *compiler.Context) (*Xml, error)

NewXml creates an object of type Xml if possible, returning an error if not.

func (*Xml) Descriptor

func (*Xml) Descriptor() ([]byte, []int)

func (*Xml) GetAttribute

func (m *Xml) GetAttribute() bool

func (*Xml) GetName

func (m *Xml) GetName() string

func (*Xml) GetNamespace

func (m *Xml) GetNamespace() string

func (*Xml) GetPrefix

func (m *Xml) GetPrefix() string

func (*Xml) GetSpecificationExtension

func (m *Xml) GetSpecificationExtension() []*NamedAny

func (*Xml) GetWrapped

func (m *Xml) GetWrapped() bool

func (*Xml) ProtoMessage

func (*Xml) ProtoMessage()

func (*Xml) Reset

func (m *Xml) Reset()

func (*Xml) ResolveReferences

func (m *Xml) ResolveReferences(root string) (interface{}, error)

ResolveReferences resolves references found inside Xml objects.

func (*Xml) String

func (m *Xml) String() string

func (*Xml) ToRawInfo

func (m *Xml) ToRawInfo() interface{}

ToRawInfo returns a description of Xml suitable for JSON or YAML export.

Directories

Path Synopsis
schema-generator is a support tool that generates the OpenAPI v3 JSON schema.
schema-generator is a support tool that generates the OpenAPI v3 JSON schema.

Jump to

Keyboard shortcuts

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