Documentation
¶
Index ¶
- Variables
- type Contact
- func (m *Contact) CloneMessageVT() proto.Message
- func (m *Contact) CloneVT() *Contact
- func (*Contact) Descriptor() ([]byte, []int)deprecated
- func (this *Contact) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Contact) EqualVT(that *Contact) bool
- func (x *Contact) GetEmail() string
- func (x *Contact) GetName() string
- func (x *Contact) GetUrl() string
- func (m *Contact) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Contact) MarshalToVT(dAtA []byte) (int, error)
- func (m *Contact) MarshalVT() (dAtA []byte, err error)
- func (*Contact) ProtoMessage()
- func (x *Contact) ProtoReflect() protoreflect.Message
- func (x *Contact) Reset()
- func (m *Contact) SizeVT() (n int)
- func (x *Contact) String() string
- func (m *Contact) UnmarshalVT(dAtA []byte) error
- func (m *Contact) Validate() error
- func (m *Contact) ValidateAll() error
- type ContactMultiError
- type ContactValidationError
- type ExternalDocumentation
- func (m *ExternalDocumentation) CloneMessageVT() proto.Message
- func (m *ExternalDocumentation) CloneVT() *ExternalDocumentation
- func (*ExternalDocumentation) Descriptor() ([]byte, []int)deprecated
- func (this *ExternalDocumentation) EqualMessageVT(thatMsg proto.Message) bool
- func (this *ExternalDocumentation) EqualVT(that *ExternalDocumentation) bool
- func (x *ExternalDocumentation) GetDescription() string
- func (x *ExternalDocumentation) GetUrl() string
- func (m *ExternalDocumentation) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ExternalDocumentation) MarshalToVT(dAtA []byte) (int, error)
- func (m *ExternalDocumentation) MarshalVT() (dAtA []byte, err error)
- func (*ExternalDocumentation) ProtoMessage()
- func (x *ExternalDocumentation) ProtoReflect() protoreflect.Message
- func (x *ExternalDocumentation) Reset()
- func (m *ExternalDocumentation) SizeVT() (n int)
- func (x *ExternalDocumentation) String() string
- func (m *ExternalDocumentation) UnmarshalVT(dAtA []byte) error
- func (m *ExternalDocumentation) Validate() error
- func (m *ExternalDocumentation) ValidateAll() error
- type ExternalDocumentationMultiError
- type ExternalDocumentationValidationError
- func (e ExternalDocumentationValidationError) Cause() error
- func (e ExternalDocumentationValidationError) Error() string
- func (e ExternalDocumentationValidationError) ErrorName() string
- func (e ExternalDocumentationValidationError) Field() string
- func (e ExternalDocumentationValidationError) Key() bool
- func (e ExternalDocumentationValidationError) Reason() string
- type Header
- func (m *Header) CloneMessageVT() proto.Message
- func (m *Header) CloneVT() *Header
- func (*Header) Descriptor() ([]byte, []int)deprecated
- func (this *Header) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Header) EqualVT(that *Header) bool
- func (x *Header) GetDefault() string
- func (x *Header) GetDescription() string
- func (x *Header) GetFormat() string
- func (x *Header) GetPattern() string
- func (x *Header) GetType() string
- func (m *Header) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Header) MarshalToVT(dAtA []byte) (int, error)
- func (m *Header) MarshalVT() (dAtA []byte, err error)
- func (*Header) ProtoMessage()
- func (x *Header) ProtoReflect() protoreflect.Message
- func (x *Header) Reset()
- func (m *Header) SizeVT() (n int)
- func (x *Header) String() string
- func (m *Header) UnmarshalVT(dAtA []byte) error
- func (m *Header) Validate() error
- func (m *Header) ValidateAll() error
- type HeaderMultiError
- type HeaderParameter
- func (m *HeaderParameter) CloneMessageVT() proto.Message
- func (m *HeaderParameter) CloneVT() *HeaderParameter
- func (*HeaderParameter) Descriptor() ([]byte, []int)deprecated
- func (this *HeaderParameter) EqualMessageVT(thatMsg proto.Message) bool
- func (this *HeaderParameter) EqualVT(that *HeaderParameter) bool
- func (x *HeaderParameter) GetDescription() string
- func (x *HeaderParameter) GetFormat() string
- func (x *HeaderParameter) GetName() string
- func (x *HeaderParameter) GetRequired() bool
- func (x *HeaderParameter) GetType() HeaderParameter_Type
- func (m *HeaderParameter) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *HeaderParameter) MarshalToVT(dAtA []byte) (int, error)
- func (m *HeaderParameter) MarshalVT() (dAtA []byte, err error)
- func (*HeaderParameter) ProtoMessage()
- func (x *HeaderParameter) ProtoReflect() protoreflect.Message
- func (x *HeaderParameter) Reset()
- func (m *HeaderParameter) SizeVT() (n int)
- func (x *HeaderParameter) String() string
- func (m *HeaderParameter) UnmarshalVT(dAtA []byte) error
- func (m *HeaderParameter) Validate() error
- func (m *HeaderParameter) ValidateAll() error
- type HeaderParameterMultiError
- type HeaderParameterValidationError
- func (e HeaderParameterValidationError) Cause() error
- func (e HeaderParameterValidationError) Error() string
- func (e HeaderParameterValidationError) ErrorName() string
- func (e HeaderParameterValidationError) Field() string
- func (e HeaderParameterValidationError) Key() bool
- func (e HeaderParameterValidationError) Reason() string
- type HeaderParameter_Type
- func (HeaderParameter_Type) Descriptor() protoreflect.EnumDescriptor
- func (x HeaderParameter_Type) Enum() *HeaderParameter_Type
- func (HeaderParameter_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x HeaderParameter_Type) Number() protoreflect.EnumNumber
- func (x HeaderParameter_Type) String() string
- func (HeaderParameter_Type) Type() protoreflect.EnumType
- type HeaderValidationError
- type Info
- func (m *Info) CloneMessageVT() proto.Message
- func (m *Info) CloneVT() *Info
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (this *Info) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Info) EqualVT(that *Info) bool
- func (x *Info) GetContact() *Contact
- func (x *Info) GetDescription() string
- func (x *Info) GetExtensions() map[string]*structpb.Value
- func (x *Info) GetLicense() *License
- func (x *Info) GetTermsOfService() string
- func (x *Info) GetTitle() string
- func (x *Info) GetVersion() string
- func (m *Info) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Info) MarshalToVT(dAtA []byte) (int, error)
- func (m *Info) MarshalVT() (dAtA []byte, err error)
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (m *Info) SizeVT() (n int)
- func (x *Info) String() string
- func (m *Info) UnmarshalVT(dAtA []byte) error
- func (m *Info) Validate() error
- func (m *Info) ValidateAll() error
- type InfoMultiError
- type InfoValidationError
- type JSONSchema
- func (m *JSONSchema) CloneMessageVT() proto.Message
- func (m *JSONSchema) CloneVT() *JSONSchema
- func (*JSONSchema) Descriptor() ([]byte, []int)deprecated
- func (this *JSONSchema) EqualMessageVT(thatMsg proto.Message) bool
- func (this *JSONSchema) EqualVT(that *JSONSchema) bool
- func (x *JSONSchema) GetArray() []string
- func (x *JSONSchema) GetDefault() string
- func (x *JSONSchema) GetDescription() string
- func (x *JSONSchema) GetEnum() []string
- func (x *JSONSchema) GetExample() string
- func (x *JSONSchema) GetExclusiveMaximum() bool
- func (x *JSONSchema) GetExclusiveMinimum() bool
- func (x *JSONSchema) GetExtensions() map[string]*structpb.Value
- func (x *JSONSchema) GetFieldConfiguration() *JSONSchema_FieldConfiguration
- func (x *JSONSchema) GetFormat() string
- func (x *JSONSchema) GetMaxItems() uint64
- func (x *JSONSchema) GetMaxLength() uint64
- func (x *JSONSchema) GetMaxProperties() uint64
- func (x *JSONSchema) GetMaximum() float64
- func (x *JSONSchema) GetMinItems() uint64
- func (x *JSONSchema) GetMinLength() uint64
- func (x *JSONSchema) GetMinProperties() uint64
- func (x *JSONSchema) GetMinimum() float64
- func (x *JSONSchema) GetMultipleOf() float64
- func (x *JSONSchema) GetPattern() string
- func (x *JSONSchema) GetReadOnly() bool
- func (x *JSONSchema) GetRef() string
- func (x *JSONSchema) GetRequired() []string
- func (x *JSONSchema) GetTitle() string
- func (x *JSONSchema) GetType() []JSONSchema_JSONSchemaSimpleTypes
- func (x *JSONSchema) GetUniqueItems() bool
- func (m *JSONSchema) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *JSONSchema) MarshalToVT(dAtA []byte) (int, error)
- func (m *JSONSchema) MarshalVT() (dAtA []byte, err error)
- func (*JSONSchema) ProtoMessage()
- func (x *JSONSchema) ProtoReflect() protoreflect.Message
- func (x *JSONSchema) Reset()
- func (m *JSONSchema) SizeVT() (n int)
- func (x *JSONSchema) String() string
- func (m *JSONSchema) UnmarshalVT(dAtA []byte) error
- func (m *JSONSchema) Validate() error
- func (m *JSONSchema) ValidateAll() error
- type JSONSchemaMultiError
- type JSONSchemaValidationError
- type JSONSchema_FieldConfiguration
- func (m *JSONSchema_FieldConfiguration) CloneMessageVT() proto.Message
- func (m *JSONSchema_FieldConfiguration) CloneVT() *JSONSchema_FieldConfiguration
- func (*JSONSchema_FieldConfiguration) Descriptor() ([]byte, []int)deprecated
- func (this *JSONSchema_FieldConfiguration) EqualMessageVT(thatMsg proto.Message) bool
- func (this *JSONSchema_FieldConfiguration) EqualVT(that *JSONSchema_FieldConfiguration) bool
- func (x *JSONSchema_FieldConfiguration) GetPathParamName() string
- func (m *JSONSchema_FieldConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *JSONSchema_FieldConfiguration) MarshalToVT(dAtA []byte) (int, error)
- func (m *JSONSchema_FieldConfiguration) MarshalVT() (dAtA []byte, err error)
- func (*JSONSchema_FieldConfiguration) ProtoMessage()
- func (x *JSONSchema_FieldConfiguration) ProtoReflect() protoreflect.Message
- func (x *JSONSchema_FieldConfiguration) Reset()
- func (m *JSONSchema_FieldConfiguration) SizeVT() (n int)
- func (x *JSONSchema_FieldConfiguration) String() string
- func (m *JSONSchema_FieldConfiguration) UnmarshalVT(dAtA []byte) error
- func (m *JSONSchema_FieldConfiguration) Validate() error
- func (m *JSONSchema_FieldConfiguration) ValidateAll() error
- type JSONSchema_FieldConfigurationMultiError
- type JSONSchema_FieldConfigurationValidationError
- func (e JSONSchema_FieldConfigurationValidationError) Cause() error
- func (e JSONSchema_FieldConfigurationValidationError) Error() string
- func (e JSONSchema_FieldConfigurationValidationError) ErrorName() string
- func (e JSONSchema_FieldConfigurationValidationError) Field() string
- func (e JSONSchema_FieldConfigurationValidationError) Key() bool
- func (e JSONSchema_FieldConfigurationValidationError) Reason() string
- type JSONSchema_JSONSchemaSimpleTypes
- func (JSONSchema_JSONSchemaSimpleTypes) Descriptor() protoreflect.EnumDescriptor
- func (x JSONSchema_JSONSchemaSimpleTypes) Enum() *JSONSchema_JSONSchemaSimpleTypes
- func (JSONSchema_JSONSchemaSimpleTypes) EnumDescriptor() ([]byte, []int)deprecated
- func (x JSONSchema_JSONSchemaSimpleTypes) Number() protoreflect.EnumNumber
- func (x JSONSchema_JSONSchemaSimpleTypes) String() string
- func (JSONSchema_JSONSchemaSimpleTypes) Type() protoreflect.EnumType
- type License
- func (m *License) CloneMessageVT() proto.Message
- func (m *License) CloneVT() *License
- func (*License) Descriptor() ([]byte, []int)deprecated
- func (this *License) EqualMessageVT(thatMsg proto.Message) bool
- func (this *License) EqualVT(that *License) bool
- func (x *License) GetName() string
- func (x *License) GetUrl() string
- func (m *License) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *License) MarshalToVT(dAtA []byte) (int, error)
- func (m *License) MarshalVT() (dAtA []byte, err error)
- func (*License) ProtoMessage()
- func (x *License) ProtoReflect() protoreflect.Message
- func (x *License) Reset()
- func (m *License) SizeVT() (n int)
- func (x *License) String() string
- func (m *License) UnmarshalVT(dAtA []byte) error
- func (m *License) Validate() error
- func (m *License) ValidateAll() error
- type LicenseMultiError
- type LicenseValidationError
- type Operation
- func (m *Operation) CloneMessageVT() proto.Message
- func (m *Operation) CloneVT() *Operation
- func (*Operation) Descriptor() ([]byte, []int)deprecated
- func (this *Operation) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Operation) EqualVT(that *Operation) bool
- func (x *Operation) GetConsumes() []string
- func (x *Operation) GetDeprecated() bool
- func (x *Operation) GetDescription() string
- func (x *Operation) GetExtensions() map[string]*structpb.Value
- func (x *Operation) GetExternalDocs() *ExternalDocumentation
- func (x *Operation) GetOperationId() string
- func (x *Operation) GetParameters() *Parameters
- func (x *Operation) GetProduces() []string
- func (x *Operation) GetResponses() map[string]*Response
- func (x *Operation) GetSchemes() []Scheme
- func (x *Operation) GetSecurity() []*SecurityRequirement
- func (x *Operation) GetSummary() string
- func (x *Operation) GetTags() []string
- func (m *Operation) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Operation) MarshalToVT(dAtA []byte) (int, error)
- func (m *Operation) MarshalVT() (dAtA []byte, err error)
- func (*Operation) ProtoMessage()
- func (x *Operation) ProtoReflect() protoreflect.Message
- func (x *Operation) Reset()
- func (m *Operation) SizeVT() (n int)
- func (x *Operation) String() string
- func (m *Operation) UnmarshalVT(dAtA []byte) error
- func (m *Operation) Validate() error
- func (m *Operation) ValidateAll() error
- type OperationMultiError
- type OperationValidationError
- type Parameters
- func (m *Parameters) CloneMessageVT() proto.Message
- func (m *Parameters) CloneVT() *Parameters
- func (*Parameters) Descriptor() ([]byte, []int)deprecated
- func (this *Parameters) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Parameters) EqualVT(that *Parameters) bool
- func (x *Parameters) GetHeaders() []*HeaderParameter
- func (m *Parameters) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Parameters) MarshalToVT(dAtA []byte) (int, error)
- func (m *Parameters) MarshalVT() (dAtA []byte, err error)
- func (*Parameters) ProtoMessage()
- func (x *Parameters) ProtoReflect() protoreflect.Message
- func (x *Parameters) Reset()
- func (m *Parameters) SizeVT() (n int)
- func (x *Parameters) String() string
- func (m *Parameters) UnmarshalVT(dAtA []byte) error
- func (m *Parameters) Validate() error
- func (m *Parameters) ValidateAll() error
- type ParametersMultiError
- type ParametersValidationError
- type Response
- func (m *Response) CloneMessageVT() proto.Message
- func (m *Response) CloneVT() *Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (this *Response) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Response) EqualVT(that *Response) bool
- func (x *Response) GetDescription() string
- func (x *Response) GetExamples() map[string]string
- func (x *Response) GetExtensions() map[string]*structpb.Value
- func (x *Response) GetHeaders() map[string]*Header
- func (x *Response) GetSchema() *Schema
- func (m *Response) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Response) MarshalToVT(dAtA []byte) (int, error)
- func (m *Response) MarshalVT() (dAtA []byte, err error)
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (m *Response) SizeVT() (n int)
- func (x *Response) String() string
- func (m *Response) UnmarshalVT(dAtA []byte) error
- func (m *Response) Validate() error
- func (m *Response) ValidateAll() error
- type ResponseMultiError
- type ResponseValidationError
- type Schema
- func (m *Schema) CloneMessageVT() proto.Message
- func (m *Schema) CloneVT() *Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (this *Schema) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Schema) EqualVT(that *Schema) bool
- func (x *Schema) GetDiscriminator() string
- func (x *Schema) GetExample() string
- func (x *Schema) GetExternalDocs() *ExternalDocumentation
- func (x *Schema) GetJsonSchema() *JSONSchema
- func (x *Schema) GetReadOnly() bool
- func (m *Schema) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Schema) MarshalToVT(dAtA []byte) (int, error)
- func (m *Schema) MarshalVT() (dAtA []byte, err error)
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (m *Schema) SizeVT() (n int)
- func (x *Schema) String() string
- func (m *Schema) UnmarshalVT(dAtA []byte) error
- func (m *Schema) Validate() error
- func (m *Schema) ValidateAll() error
- type SchemaMultiError
- type SchemaValidationError
- type Scheme
- type Scopes
- func (m *Scopes) CloneMessageVT() proto.Message
- func (m *Scopes) CloneVT() *Scopes
- func (*Scopes) Descriptor() ([]byte, []int)deprecated
- func (this *Scopes) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Scopes) EqualVT(that *Scopes) bool
- func (x *Scopes) GetScope() map[string]string
- func (m *Scopes) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Scopes) MarshalToVT(dAtA []byte) (int, error)
- func (m *Scopes) MarshalVT() (dAtA []byte, err error)
- func (*Scopes) ProtoMessage()
- func (x *Scopes) ProtoReflect() protoreflect.Message
- func (x *Scopes) Reset()
- func (m *Scopes) SizeVT() (n int)
- func (x *Scopes) String() string
- func (m *Scopes) UnmarshalVT(dAtA []byte) error
- func (m *Scopes) Validate() error
- func (m *Scopes) ValidateAll() error
- type ScopesMultiError
- type ScopesValidationError
- type SecurityDefinitions
- func (m *SecurityDefinitions) CloneMessageVT() proto.Message
- func (m *SecurityDefinitions) CloneVT() *SecurityDefinitions
- func (*SecurityDefinitions) Descriptor() ([]byte, []int)deprecated
- func (this *SecurityDefinitions) EqualMessageVT(thatMsg proto.Message) bool
- func (this *SecurityDefinitions) EqualVT(that *SecurityDefinitions) bool
- func (x *SecurityDefinitions) GetSecurity() map[string]*SecurityScheme
- func (m *SecurityDefinitions) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SecurityDefinitions) MarshalToVT(dAtA []byte) (int, error)
- func (m *SecurityDefinitions) MarshalVT() (dAtA []byte, err error)
- func (*SecurityDefinitions) ProtoMessage()
- func (x *SecurityDefinitions) ProtoReflect() protoreflect.Message
- func (x *SecurityDefinitions) Reset()
- func (m *SecurityDefinitions) SizeVT() (n int)
- func (x *SecurityDefinitions) String() string
- func (m *SecurityDefinitions) UnmarshalVT(dAtA []byte) error
- func (m *SecurityDefinitions) Validate() error
- func (m *SecurityDefinitions) ValidateAll() error
- type SecurityDefinitionsMultiError
- type SecurityDefinitionsValidationError
- func (e SecurityDefinitionsValidationError) Cause() error
- func (e SecurityDefinitionsValidationError) Error() string
- func (e SecurityDefinitionsValidationError) ErrorName() string
- func (e SecurityDefinitionsValidationError) Field() string
- func (e SecurityDefinitionsValidationError) Key() bool
- func (e SecurityDefinitionsValidationError) Reason() string
- type SecurityRequirement
- func (m *SecurityRequirement) CloneMessageVT() proto.Message
- func (m *SecurityRequirement) CloneVT() *SecurityRequirement
- func (*SecurityRequirement) Descriptor() ([]byte, []int)deprecated
- func (this *SecurityRequirement) EqualMessageVT(thatMsg proto.Message) bool
- func (this *SecurityRequirement) EqualVT(that *SecurityRequirement) bool
- func (x *SecurityRequirement) GetSecurityRequirement() map[string]*SecurityRequirement_SecurityRequirementValue
- func (m *SecurityRequirement) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SecurityRequirement) MarshalToVT(dAtA []byte) (int, error)
- func (m *SecurityRequirement) MarshalVT() (dAtA []byte, err error)
- func (*SecurityRequirement) ProtoMessage()
- func (x *SecurityRequirement) ProtoReflect() protoreflect.Message
- func (x *SecurityRequirement) Reset()
- func (m *SecurityRequirement) SizeVT() (n int)
- func (x *SecurityRequirement) String() string
- func (m *SecurityRequirement) UnmarshalVT(dAtA []byte) error
- func (m *SecurityRequirement) Validate() error
- func (m *SecurityRequirement) ValidateAll() error
- type SecurityRequirementMultiError
- type SecurityRequirementValidationError
- func (e SecurityRequirementValidationError) Cause() error
- func (e SecurityRequirementValidationError) Error() string
- func (e SecurityRequirementValidationError) ErrorName() string
- func (e SecurityRequirementValidationError) Field() string
- func (e SecurityRequirementValidationError) Key() bool
- func (e SecurityRequirementValidationError) Reason() string
- type SecurityRequirement_SecurityRequirementValue
- func (m *SecurityRequirement_SecurityRequirementValue) CloneMessageVT() proto.Message
- func (m *SecurityRequirement_SecurityRequirementValue) CloneVT() *SecurityRequirement_SecurityRequirementValue
- func (*SecurityRequirement_SecurityRequirementValue) Descriptor() ([]byte, []int)deprecated
- func (this *SecurityRequirement_SecurityRequirementValue) EqualMessageVT(thatMsg proto.Message) bool
- func (this *SecurityRequirement_SecurityRequirementValue) EqualVT(that *SecurityRequirement_SecurityRequirementValue) bool
- func (x *SecurityRequirement_SecurityRequirementValue) GetScope() []string
- func (m *SecurityRequirement_SecurityRequirementValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SecurityRequirement_SecurityRequirementValue) MarshalToVT(dAtA []byte) (int, error)
- func (m *SecurityRequirement_SecurityRequirementValue) MarshalVT() (dAtA []byte, err error)
- func (*SecurityRequirement_SecurityRequirementValue) ProtoMessage()
- func (x *SecurityRequirement_SecurityRequirementValue) ProtoReflect() protoreflect.Message
- func (x *SecurityRequirement_SecurityRequirementValue) Reset()
- func (m *SecurityRequirement_SecurityRequirementValue) SizeVT() (n int)
- func (x *SecurityRequirement_SecurityRequirementValue) String() string
- func (m *SecurityRequirement_SecurityRequirementValue) UnmarshalVT(dAtA []byte) error
- func (m *SecurityRequirement_SecurityRequirementValue) Validate() error
- func (m *SecurityRequirement_SecurityRequirementValue) ValidateAll() error
- type SecurityRequirement_SecurityRequirementValueMultiError
- type SecurityRequirement_SecurityRequirementValueValidationError
- func (e SecurityRequirement_SecurityRequirementValueValidationError) Cause() error
- func (e SecurityRequirement_SecurityRequirementValueValidationError) Error() string
- func (e SecurityRequirement_SecurityRequirementValueValidationError) ErrorName() string
- func (e SecurityRequirement_SecurityRequirementValueValidationError) Field() string
- func (e SecurityRequirement_SecurityRequirementValueValidationError) Key() bool
- func (e SecurityRequirement_SecurityRequirementValueValidationError) Reason() string
- type SecurityScheme
- func (m *SecurityScheme) CloneMessageVT() proto.Message
- func (m *SecurityScheme) CloneVT() *SecurityScheme
- func (*SecurityScheme) Descriptor() ([]byte, []int)deprecated
- func (this *SecurityScheme) EqualMessageVT(thatMsg proto.Message) bool
- func (this *SecurityScheme) EqualVT(that *SecurityScheme) bool
- func (x *SecurityScheme) GetAuthorizationUrl() string
- func (x *SecurityScheme) GetDescription() string
- func (x *SecurityScheme) GetExtensions() map[string]*structpb.Value
- func (x *SecurityScheme) GetFlow() SecurityScheme_Flow
- func (x *SecurityScheme) GetIn() SecurityScheme_In
- func (x *SecurityScheme) GetName() string
- func (x *SecurityScheme) GetScopes() *Scopes
- func (x *SecurityScheme) GetTokenUrl() string
- func (x *SecurityScheme) GetType() SecurityScheme_Type
- func (m *SecurityScheme) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *SecurityScheme) MarshalToVT(dAtA []byte) (int, error)
- func (m *SecurityScheme) MarshalVT() (dAtA []byte, err error)
- func (*SecurityScheme) ProtoMessage()
- func (x *SecurityScheme) ProtoReflect() protoreflect.Message
- func (x *SecurityScheme) Reset()
- func (m *SecurityScheme) SizeVT() (n int)
- func (x *SecurityScheme) String() string
- func (m *SecurityScheme) UnmarshalVT(dAtA []byte) error
- func (m *SecurityScheme) Validate() error
- func (m *SecurityScheme) ValidateAll() error
- type SecuritySchemeMultiError
- type SecuritySchemeValidationError
- func (e SecuritySchemeValidationError) Cause() error
- func (e SecuritySchemeValidationError) Error() string
- func (e SecuritySchemeValidationError) ErrorName() string
- func (e SecuritySchemeValidationError) Field() string
- func (e SecuritySchemeValidationError) Key() bool
- func (e SecuritySchemeValidationError) Reason() string
- type SecurityScheme_Flow
- func (SecurityScheme_Flow) Descriptor() protoreflect.EnumDescriptor
- func (x SecurityScheme_Flow) Enum() *SecurityScheme_Flow
- func (SecurityScheme_Flow) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecurityScheme_Flow) Number() protoreflect.EnumNumber
- func (x SecurityScheme_Flow) String() string
- func (SecurityScheme_Flow) Type() protoreflect.EnumType
- type SecurityScheme_In
- func (SecurityScheme_In) Descriptor() protoreflect.EnumDescriptor
- func (x SecurityScheme_In) Enum() *SecurityScheme_In
- func (SecurityScheme_In) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecurityScheme_In) Number() protoreflect.EnumNumber
- func (x SecurityScheme_In) String() string
- func (SecurityScheme_In) Type() protoreflect.EnumType
- type SecurityScheme_Type
- func (SecurityScheme_Type) Descriptor() protoreflect.EnumDescriptor
- func (x SecurityScheme_Type) Enum() *SecurityScheme_Type
- func (SecurityScheme_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x SecurityScheme_Type) Number() protoreflect.EnumNumber
- func (x SecurityScheme_Type) String() string
- func (SecurityScheme_Type) Type() protoreflect.EnumType
- type Swagger
- func (m *Swagger) CloneMessageVT() proto.Message
- func (m *Swagger) CloneVT() *Swagger
- func (*Swagger) Descriptor() ([]byte, []int)deprecated
- func (this *Swagger) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Swagger) EqualVT(that *Swagger) bool
- func (x *Swagger) GetBasePath() string
- func (x *Swagger) GetConsumes() []string
- func (x *Swagger) GetExtensions() map[string]*structpb.Value
- func (x *Swagger) GetExternalDocs() *ExternalDocumentation
- func (x *Swagger) GetHost() string
- func (x *Swagger) GetInfo() *Info
- func (x *Swagger) GetProduces() []string
- func (x *Swagger) GetResponses() map[string]*Response
- func (x *Swagger) GetSchemes() []Scheme
- func (x *Swagger) GetSecurity() []*SecurityRequirement
- func (x *Swagger) GetSecurityDefinitions() *SecurityDefinitions
- func (x *Swagger) GetSwagger() string
- func (x *Swagger) GetTags() []*Tag
- func (m *Swagger) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Swagger) MarshalToVT(dAtA []byte) (int, error)
- func (m *Swagger) MarshalVT() (dAtA []byte, err error)
- func (*Swagger) ProtoMessage()
- func (x *Swagger) ProtoReflect() protoreflect.Message
- func (x *Swagger) Reset()
- func (m *Swagger) SizeVT() (n int)
- func (x *Swagger) String() string
- func (m *Swagger) UnmarshalVT(dAtA []byte) error
- func (m *Swagger) Validate() error
- func (m *Swagger) ValidateAll() error
- type SwaggerMultiError
- type SwaggerValidationError
- type Tag
- func (m *Tag) CloneMessageVT() proto.Message
- func (m *Tag) CloneVT() *Tag
- func (*Tag) Descriptor() ([]byte, []int)deprecated
- func (this *Tag) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Tag) EqualVT(that *Tag) bool
- func (x *Tag) GetDescription() string
- func (x *Tag) GetExtensions() map[string]*structpb.Value
- func (x *Tag) GetExternalDocs() *ExternalDocumentation
- func (x *Tag) GetName() string
- func (m *Tag) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Tag) MarshalToVT(dAtA []byte) (int, error)
- func (m *Tag) MarshalVT() (dAtA []byte, err error)
- func (*Tag) ProtoMessage()
- func (x *Tag) ProtoReflect() protoreflect.Message
- func (x *Tag) Reset()
- func (m *Tag) SizeVT() (n int)
- func (x *Tag) String() string
- func (m *Tag) UnmarshalVT(dAtA []byte) error
- func (m *Tag) Validate() error
- func (m *Tag) ValidateAll() error
- type TagMultiError
- type TagValidationError
Constants ¶
This section is empty.
Variables ¶
var ( Scheme_name = map[int32]string{ 0: "UNKNOWN", 1: "HTTP", 2: "HTTPS", 3: "WS", 4: "WSS", } Scheme_value = map[string]int32{ "UNKNOWN": 0, "HTTP": 1, "HTTPS": 2, "WS": 3, "WSS": 4, } )
Enum value maps for Scheme.
var ( HeaderParameter_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "STRING", 2: "NUMBER", 3: "INTEGER", 4: "BOOLEAN", } HeaderParameter_Type_value = map[string]int32{ "UNKNOWN": 0, "STRING": 1, "NUMBER": 2, "INTEGER": 3, "BOOLEAN": 4, } )
Enum value maps for HeaderParameter_Type.
var ( JSONSchema_JSONSchemaSimpleTypes_name = map[int32]string{ 0: "UNKNOWN", 1: "ARRAY", 2: "BOOLEAN", 3: "INTEGER", 4: "NULL", 5: "NUMBER", 6: "OBJECT", 7: "STRING", } JSONSchema_JSONSchemaSimpleTypes_value = map[string]int32{ "UNKNOWN": 0, "ARRAY": 1, "BOOLEAN": 2, "INTEGER": 3, "NULL": 4, "NUMBER": 5, "OBJECT": 6, "STRING": 7, } )
Enum value maps for JSONSchema_JSONSchemaSimpleTypes.
var ( SecurityScheme_Type_name = map[int32]string{ 0: "TYPE_INVALID", 1: "TYPE_BASIC", 2: "TYPE_API_KEY", 3: "TYPE_OAUTH2", } SecurityScheme_Type_value = map[string]int32{ "TYPE_INVALID": 0, "TYPE_BASIC": 1, "TYPE_API_KEY": 2, "TYPE_OAUTH2": 3, } )
Enum value maps for SecurityScheme_Type.
var ( SecurityScheme_In_name = map[int32]string{ 0: "IN_INVALID", 1: "IN_QUERY", 2: "IN_HEADER", } SecurityScheme_In_value = map[string]int32{ "IN_INVALID": 0, "IN_QUERY": 1, "IN_HEADER": 2, } )
Enum value maps for SecurityScheme_In.
var ( SecurityScheme_Flow_name = map[int32]string{ 0: "FLOW_INVALID", 1: "FLOW_IMPLICIT", 2: "FLOW_PASSWORD", 3: "FLOW_APPLICATION", 4: "FLOW_ACCESS_CODE", } SecurityScheme_Flow_value = map[string]int32{ "FLOW_INVALID": 0, "FLOW_IMPLICIT": 1, "FLOW_PASSWORD": 2, "FLOW_APPLICATION": 3, "FLOW_ACCESS_CODE": 4, } )
Enum value maps for SecurityScheme_Flow.
var ( // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. // // All IDs are the same, as assigned. It is okay that they are the same, as they extend // different descriptor messages. // // optional grpc.gateway.protoc_gen_openapiv2.options.JSONSchema openapiv2_field = 1042; E_Openapiv2Field = &file_protoc_gen_openapiv2_options_annotations_proto_extTypes[4] )
Extension fields to descriptorpb.FieldOptions.
var ( // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. // // All IDs are the same, as assigned. It is okay that they are the same, as they extend // different descriptor messages. // // optional grpc.gateway.protoc_gen_openapiv2.options.Operation openapiv2_operation = 1042; E_Openapiv2Operation = &file_protoc_gen_openapiv2_options_annotations_proto_extTypes[1] )
Extension fields to descriptorpb.MethodOptions.
var ( // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. // // All IDs are the same, as assigned. It is okay that they are the same, as they extend // different descriptor messages. // // optional grpc.gateway.protoc_gen_openapiv2.options.Schema openapiv2_schema = 1042; E_Openapiv2Schema = &file_protoc_gen_openapiv2_options_annotations_proto_extTypes[2] )
Extension fields to descriptorpb.MessageOptions.
var ( // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. // // All IDs are the same, as assigned. It is okay that they are the same, as they extend // different descriptor messages. // // optional grpc.gateway.protoc_gen_openapiv2.options.Swagger openapiv2_swagger = 1042; E_Openapiv2Swagger = &file_protoc_gen_openapiv2_options_annotations_proto_extTypes[0] )
Extension fields to descriptorpb.FileOptions.
var ( // ID assigned by protobuf-global-extension-registry@google.com for gRPC-Gateway project. // // All IDs are the same, as assigned. It is okay that they are the same, as they extend // different descriptor messages. // // optional grpc.gateway.protoc_gen_openapiv2.options.Tag openapiv2_tag = 1042; E_Openapiv2Tag = &file_protoc_gen_openapiv2_options_annotations_proto_extTypes[3] )
Extension fields to descriptorpb.ServiceOptions.
var File_protoc_gen_openapiv2_options_annotations_proto protoreflect.FileDescriptor
var File_protoc_gen_openapiv2_options_openapiv2_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct { // The identifying name of the contact person/organization. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The URL pointing to the contact information. MUST be in the format of a // URL. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // The email address of the contact person/organization. MUST be in the format // of an email address. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
`Contact` is a representation of OpenAPI v2 specification's Contact object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#contactObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { ... contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "none@example.com"; }; ... }; ... };
func (*Contact) CloneMessageVT ¶
func (*Contact) Descriptor
deprecated
func (*Contact) MarshalToSizedBufferVT ¶
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
func (*Contact) ProtoReflect ¶
func (x *Contact) ProtoReflect() protoreflect.Message
func (*Contact) UnmarshalVT ¶
func (*Contact) Validate ¶
Validate checks the field values on Contact with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Contact) ValidateAll ¶
ValidateAll checks the field values on Contact with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ContactMultiError, or nil if none found.
type ContactMultiError ¶
type ContactMultiError []error
ContactMultiError is an error wrapping multiple validation errors returned by Contact.ValidateAll() if the designated constraints aren't met.
func (ContactMultiError) AllErrors ¶
func (m ContactMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ContactMultiError) Error ¶
func (m ContactMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ContactValidationError ¶
type ContactValidationError struct {
// contains filtered or unexported fields
}
ContactValidationError is the validation error returned by Contact.Validate if the designated constraints aren't met.
func (ContactValidationError) Cause ¶
func (e ContactValidationError) Cause() error
Cause function returns cause value.
func (ContactValidationError) Error ¶
func (e ContactValidationError) Error() string
Error satisfies the builtin error interface
func (ContactValidationError) ErrorName ¶
func (e ContactValidationError) ErrorName() string
ErrorName returns error name.
func (ContactValidationError) Field ¶
func (e ContactValidationError) Field() string
Field function returns field value.
func (ContactValidationError) Key ¶
func (e ContactValidationError) Key() bool
Key function returns key value.
func (ContactValidationError) Reason ¶
func (e ContactValidationError) Reason() string
Reason function returns reason value.
type ExternalDocumentation ¶
type ExternalDocumentation struct { // A short description of the target documentation. GFM syntax can be used for // rich text representation. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // The URL for the target documentation. Value MUST be in the format // of a URL. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
`ExternalDocumentation` is a representation of OpenAPI v2 specification's ExternalDocumentation object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#externalDocumentationObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { ... external_docs: { description: "More about gRPC-Gateway"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; } ... };
func (*ExternalDocumentation) CloneMessageVT ¶
func (m *ExternalDocumentation) CloneMessageVT() proto.Message
func (*ExternalDocumentation) CloneVT ¶
func (m *ExternalDocumentation) CloneVT() *ExternalDocumentation
func (*ExternalDocumentation) Descriptor
deprecated
func (*ExternalDocumentation) Descriptor() ([]byte, []int)
Deprecated: Use ExternalDocumentation.ProtoReflect.Descriptor instead.
func (*ExternalDocumentation) EqualMessageVT ¶
func (this *ExternalDocumentation) EqualMessageVT(thatMsg proto.Message) bool
func (*ExternalDocumentation) EqualVT ¶
func (this *ExternalDocumentation) EqualVT(that *ExternalDocumentation) bool
func (*ExternalDocumentation) GetDescription ¶
func (x *ExternalDocumentation) GetDescription() string
func (*ExternalDocumentation) GetUrl ¶
func (x *ExternalDocumentation) GetUrl() string
func (*ExternalDocumentation) MarshalToSizedBufferVT ¶
func (m *ExternalDocumentation) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ExternalDocumentation) MarshalToVT ¶
func (m *ExternalDocumentation) MarshalToVT(dAtA []byte) (int, error)
func (*ExternalDocumentation) MarshalVT ¶
func (m *ExternalDocumentation) MarshalVT() (dAtA []byte, err error)
func (*ExternalDocumentation) ProtoMessage ¶
func (*ExternalDocumentation) ProtoMessage()
func (*ExternalDocumentation) ProtoReflect ¶
func (x *ExternalDocumentation) ProtoReflect() protoreflect.Message
func (*ExternalDocumentation) Reset ¶
func (x *ExternalDocumentation) Reset()
func (*ExternalDocumentation) SizeVT ¶
func (m *ExternalDocumentation) SizeVT() (n int)
func (*ExternalDocumentation) String ¶
func (x *ExternalDocumentation) String() string
func (*ExternalDocumentation) UnmarshalVT ¶
func (m *ExternalDocumentation) UnmarshalVT(dAtA []byte) error
func (*ExternalDocumentation) Validate ¶
func (m *ExternalDocumentation) Validate() error
Validate checks the field values on ExternalDocumentation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ExternalDocumentation) ValidateAll ¶
func (m *ExternalDocumentation) ValidateAll() error
ValidateAll checks the field values on ExternalDocumentation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExternalDocumentationMultiError, or nil if none found.
type ExternalDocumentationMultiError ¶
type ExternalDocumentationMultiError []error
ExternalDocumentationMultiError is an error wrapping multiple validation errors returned by ExternalDocumentation.ValidateAll() if the designated constraints aren't met.
func (ExternalDocumentationMultiError) AllErrors ¶
func (m ExternalDocumentationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExternalDocumentationMultiError) Error ¶
func (m ExternalDocumentationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExternalDocumentationValidationError ¶
type ExternalDocumentationValidationError struct {
// contains filtered or unexported fields
}
ExternalDocumentationValidationError is the validation error returned by ExternalDocumentation.Validate if the designated constraints aren't met.
func (ExternalDocumentationValidationError) Cause ¶
func (e ExternalDocumentationValidationError) Cause() error
Cause function returns cause value.
func (ExternalDocumentationValidationError) Error ¶
func (e ExternalDocumentationValidationError) Error() string
Error satisfies the builtin error interface
func (ExternalDocumentationValidationError) ErrorName ¶
func (e ExternalDocumentationValidationError) ErrorName() string
ErrorName returns error name.
func (ExternalDocumentationValidationError) Field ¶
func (e ExternalDocumentationValidationError) Field() string
Field function returns field value.
func (ExternalDocumentationValidationError) Key ¶
func (e ExternalDocumentationValidationError) Key() bool
Key function returns key value.
func (ExternalDocumentationValidationError) Reason ¶
func (e ExternalDocumentationValidationError) Reason() string
Reason function returns reason value.
type Header ¶
type Header struct { // `Description` is a short description of the header. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // The type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // `Format` The extending format for the previously mentioned type. Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` // `Default` Declares the value of the header that the server will use if none is provided. // See: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2. // Unlike JSON Schema this value MUST conform to the defined type for the header. Default string `protobuf:"bytes,6,opt,name=default,proto3" json:"default,omitempty"` // 'Pattern' See https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.2.3. Pattern string `protobuf:"bytes,13,opt,name=pattern,proto3" json:"pattern,omitempty"` // contains filtered or unexported fields }
`Header` is a representation of OpenAPI v2 specification's Header object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#headerObject
func (*Header) CloneMessageVT ¶
func (*Header) Descriptor
deprecated
func (*Header) GetDefault ¶
func (*Header) GetDescription ¶
func (*Header) GetPattern ¶
func (*Header) MarshalToSizedBufferVT ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
func (*Header) UnmarshalVT ¶
func (*Header) Validate ¶
Validate checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Header) ValidateAll ¶
ValidateAll checks the field values on Header with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeaderMultiError, or nil if none found.
type HeaderMultiError ¶
type HeaderMultiError []error
HeaderMultiError is an error wrapping multiple validation errors returned by Header.ValidateAll() if the designated constraints aren't met.
func (HeaderMultiError) AllErrors ¶
func (m HeaderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HeaderMultiError) Error ¶
func (m HeaderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HeaderParameter ¶
type HeaderParameter struct { // `Name` is the header name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // `Description` is a short description of the header. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // `Type` is the type of the object. The value MUST be one of "string", "number", "integer", or "boolean". The "array" type is not supported. // See: https://swagger.io/specification/v2/#parameterType. Type HeaderParameter_Type `` /* 130-byte string literal not displayed */ // `Format` The extending format for the previously mentioned type. Format string `protobuf:"bytes,4,opt,name=format,proto3" json:"format,omitempty"` // `Required` indicates if the header is optional Required bool `protobuf:"varint,5,opt,name=required,proto3" json:"required,omitempty"` // contains filtered or unexported fields }
`HeaderParameter` a HTTP header parameter. See: https://swagger.io/specification/v2/#parameter-object
func (*HeaderParameter) CloneMessageVT ¶
func (m *HeaderParameter) CloneMessageVT() proto.Message
func (*HeaderParameter) CloneVT ¶
func (m *HeaderParameter) CloneVT() *HeaderParameter
func (*HeaderParameter) Descriptor
deprecated
func (*HeaderParameter) Descriptor() ([]byte, []int)
Deprecated: Use HeaderParameter.ProtoReflect.Descriptor instead.
func (*HeaderParameter) EqualMessageVT ¶
func (this *HeaderParameter) EqualMessageVT(thatMsg proto.Message) bool
func (*HeaderParameter) EqualVT ¶
func (this *HeaderParameter) EqualVT(that *HeaderParameter) bool
func (*HeaderParameter) GetDescription ¶
func (x *HeaderParameter) GetDescription() string
func (*HeaderParameter) GetFormat ¶
func (x *HeaderParameter) GetFormat() string
func (*HeaderParameter) GetName ¶
func (x *HeaderParameter) GetName() string
func (*HeaderParameter) GetRequired ¶
func (x *HeaderParameter) GetRequired() bool
func (*HeaderParameter) GetType ¶
func (x *HeaderParameter) GetType() HeaderParameter_Type
func (*HeaderParameter) MarshalToSizedBufferVT ¶
func (m *HeaderParameter) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*HeaderParameter) MarshalToVT ¶
func (m *HeaderParameter) MarshalToVT(dAtA []byte) (int, error)
func (*HeaderParameter) MarshalVT ¶
func (m *HeaderParameter) MarshalVT() (dAtA []byte, err error)
func (*HeaderParameter) ProtoMessage ¶
func (*HeaderParameter) ProtoMessage()
func (*HeaderParameter) ProtoReflect ¶
func (x *HeaderParameter) ProtoReflect() protoreflect.Message
func (*HeaderParameter) Reset ¶
func (x *HeaderParameter) Reset()
func (*HeaderParameter) SizeVT ¶
func (m *HeaderParameter) SizeVT() (n int)
func (*HeaderParameter) String ¶
func (x *HeaderParameter) String() string
func (*HeaderParameter) UnmarshalVT ¶
func (m *HeaderParameter) UnmarshalVT(dAtA []byte) error
func (*HeaderParameter) Validate ¶
func (m *HeaderParameter) Validate() error
Validate checks the field values on HeaderParameter with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*HeaderParameter) ValidateAll ¶
func (m *HeaderParameter) ValidateAll() error
ValidateAll checks the field values on HeaderParameter with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HeaderParameterMultiError, or nil if none found.
type HeaderParameterMultiError ¶
type HeaderParameterMultiError []error
HeaderParameterMultiError is an error wrapping multiple validation errors returned by HeaderParameter.ValidateAll() if the designated constraints aren't met.
func (HeaderParameterMultiError) AllErrors ¶
func (m HeaderParameterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HeaderParameterMultiError) Error ¶
func (m HeaderParameterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HeaderParameterValidationError ¶
type HeaderParameterValidationError struct {
// contains filtered or unexported fields
}
HeaderParameterValidationError is the validation error returned by HeaderParameter.Validate if the designated constraints aren't met.
func (HeaderParameterValidationError) Cause ¶
func (e HeaderParameterValidationError) Cause() error
Cause function returns cause value.
func (HeaderParameterValidationError) Error ¶
func (e HeaderParameterValidationError) Error() string
Error satisfies the builtin error interface
func (HeaderParameterValidationError) ErrorName ¶
func (e HeaderParameterValidationError) ErrorName() string
ErrorName returns error name.
func (HeaderParameterValidationError) Field ¶
func (e HeaderParameterValidationError) Field() string
Field function returns field value.
func (HeaderParameterValidationError) Key ¶
func (e HeaderParameterValidationError) Key() bool
Key function returns key value.
func (HeaderParameterValidationError) Reason ¶
func (e HeaderParameterValidationError) Reason() string
Reason function returns reason value.
type HeaderParameter_Type ¶
type HeaderParameter_Type int32
`Type` is a a supported HTTP header type. See https://swagger.io/specification/v2/#parameterType.
const ( HeaderParameter_UNKNOWN HeaderParameter_Type = 0 HeaderParameter_STRING HeaderParameter_Type = 1 HeaderParameter_NUMBER HeaderParameter_Type = 2 HeaderParameter_INTEGER HeaderParameter_Type = 3 HeaderParameter_BOOLEAN HeaderParameter_Type = 4 )
func (HeaderParameter_Type) Descriptor ¶
func (HeaderParameter_Type) Descriptor() protoreflect.EnumDescriptor
func (HeaderParameter_Type) Enum ¶
func (x HeaderParameter_Type) Enum() *HeaderParameter_Type
func (HeaderParameter_Type) EnumDescriptor
deprecated
func (HeaderParameter_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use HeaderParameter_Type.Descriptor instead.
func (HeaderParameter_Type) Number ¶
func (x HeaderParameter_Type) Number() protoreflect.EnumNumber
func (HeaderParameter_Type) String ¶
func (x HeaderParameter_Type) String() string
func (HeaderParameter_Type) Type ¶
func (HeaderParameter_Type) Type() protoreflect.EnumType
type HeaderValidationError ¶
type HeaderValidationError struct {
// contains filtered or unexported fields
}
HeaderValidationError is the validation error returned by Header.Validate if the designated constraints aren't met.
func (HeaderValidationError) Cause ¶
func (e HeaderValidationError) Cause() error
Cause function returns cause value.
func (HeaderValidationError) Error ¶
func (e HeaderValidationError) Error() string
Error satisfies the builtin error interface
func (HeaderValidationError) ErrorName ¶
func (e HeaderValidationError) ErrorName() string
ErrorName returns error name.
func (HeaderValidationError) Field ¶
func (e HeaderValidationError) Field() string
Field function returns field value.
func (HeaderValidationError) Key ¶
func (e HeaderValidationError) Key() bool
Key function returns key value.
func (HeaderValidationError) Reason ¶
func (e HeaderValidationError) Reason() string
Reason function returns reason value.
type Info ¶
type Info struct { // The title of the application. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // A short description of the application. GFM syntax can be used for rich // text representation. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The Terms of Service for the API. TermsOfService string `protobuf:"bytes,3,opt,name=terms_of_service,json=termsOfService,proto3" json:"terms_of_service,omitempty"` // The contact information for the exposed API. Contact *Contact `protobuf:"bytes,4,opt,name=contact,proto3" json:"contact,omitempty"` // The license information for the exposed API. License *License `protobuf:"bytes,5,opt,name=license,proto3" json:"license,omitempty"` // Provides the version of the application API (not to be confused // with the specification version). Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"` // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
`Info` is a representation of OpenAPI v2 specification's Info object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#infoObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: ""; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "none@example.com"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE"; }; }; ... };
func (*Info) CloneMessageVT ¶
func (*Info) Descriptor
deprecated
func (*Info) GetContact ¶
func (*Info) GetDescription ¶
func (*Info) GetLicense ¶
func (*Info) GetTermsOfService ¶
func (*Info) GetVersion ¶
func (*Info) MarshalToSizedBufferVT ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
func (*Info) UnmarshalVT ¶
func (*Info) Validate ¶
Validate checks the field values on Info with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Info) ValidateAll ¶
ValidateAll checks the field values on Info with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InfoMultiError, or nil if none found.
type InfoMultiError ¶
type InfoMultiError []error
InfoMultiError is an error wrapping multiple validation errors returned by Info.ValidateAll() if the designated constraints aren't met.
func (InfoMultiError) AllErrors ¶
func (m InfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InfoMultiError) Error ¶
func (m InfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InfoValidationError ¶
type InfoValidationError struct {
// contains filtered or unexported fields
}
InfoValidationError is the validation error returned by Info.Validate if the designated constraints aren't met.
func (InfoValidationError) Cause ¶
func (e InfoValidationError) Cause() error
Cause function returns cause value.
func (InfoValidationError) Error ¶
func (e InfoValidationError) Error() string
Error satisfies the builtin error interface
func (InfoValidationError) ErrorName ¶
func (e InfoValidationError) ErrorName() string
ErrorName returns error name.
func (InfoValidationError) Field ¶
func (e InfoValidationError) Field() string
Field function returns field value.
func (InfoValidationError) Key ¶
func (e InfoValidationError) Key() bool
Key function returns key value.
func (InfoValidationError) Reason ¶
func (e InfoValidationError) Reason() string
Reason function returns reason value.
type JSONSchema ¶
type JSONSchema struct { // Ref is used to define an external reference to include in the message. // This could be a fully qualified proto message reference, and that type must // be imported into the protofile. If no message is identified, the Ref will // be used verbatim in the output. // For example: // // `ref: ".google.protobuf.Timestamp"`. Ref string `protobuf:"bytes,3,opt,name=ref,proto3" json:"ref,omitempty"` // The title of the schema. Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` // A short description of the schema. Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` Default string `protobuf:"bytes,7,opt,name=default,proto3" json:"default,omitempty"` ReadOnly bool `protobuf:"varint,8,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` // A free-form property to include a JSON example of this field. This is copied // verbatim to the output swagger.json. Quotes must be escaped. // This property is the same for 2.0 and 3.0.0 https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/3.0.0.md#schemaObject https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject Example string `protobuf:"bytes,9,opt,name=example,proto3" json:"example,omitempty"` MultipleOf float64 `protobuf:"fixed64,10,opt,name=multiple_of,json=multipleOf,proto3" json:"multiple_of,omitempty"` // Maximum represents an inclusive upper limit for a numeric instance. The // value of MUST be a number, Maximum float64 `protobuf:"fixed64,11,opt,name=maximum,proto3" json:"maximum,omitempty"` ExclusiveMaximum bool `protobuf:"varint,12,opt,name=exclusive_maximum,json=exclusiveMaximum,proto3" json:"exclusive_maximum,omitempty"` // minimum represents an inclusive lower limit for a numeric instance. The // value of MUST be a number, Minimum float64 `protobuf:"fixed64,13,opt,name=minimum,proto3" json:"minimum,omitempty"` ExclusiveMinimum bool `protobuf:"varint,14,opt,name=exclusive_minimum,json=exclusiveMinimum,proto3" json:"exclusive_minimum,omitempty"` MaxLength uint64 `protobuf:"varint,15,opt,name=max_length,json=maxLength,proto3" json:"max_length,omitempty"` MinLength uint64 `protobuf:"varint,16,opt,name=min_length,json=minLength,proto3" json:"min_length,omitempty"` Pattern string `protobuf:"bytes,17,opt,name=pattern,proto3" json:"pattern,omitempty"` MaxItems uint64 `protobuf:"varint,20,opt,name=max_items,json=maxItems,proto3" json:"max_items,omitempty"` MinItems uint64 `protobuf:"varint,21,opt,name=min_items,json=minItems,proto3" json:"min_items,omitempty"` UniqueItems bool `protobuf:"varint,22,opt,name=unique_items,json=uniqueItems,proto3" json:"unique_items,omitempty"` MaxProperties uint64 `protobuf:"varint,24,opt,name=max_properties,json=maxProperties,proto3" json:"max_properties,omitempty"` MinProperties uint64 `protobuf:"varint,25,opt,name=min_properties,json=minProperties,proto3" json:"min_properties,omitempty"` Required []string `protobuf:"bytes,26,rep,name=required,proto3" json:"required,omitempty"` // Items in 'array' must be unique. Array []string `protobuf:"bytes,34,rep,name=array,proto3" json:"array,omitempty"` Type []JSONSchema_JSONSchemaSimpleTypes `` /* 150-byte string literal not displayed */ // `Format` Format string `protobuf:"bytes,36,opt,name=format,proto3" json:"format,omitempty"` // Items in `enum` must be unique https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.5.1 Enum []string `protobuf:"bytes,46,rep,name=enum,proto3" json:"enum,omitempty"` // Additional field level properties used when generating the OpenAPI v2 file. FieldConfiguration *JSONSchema_FieldConfiguration `protobuf:"bytes,1001,opt,name=field_configuration,json=fieldConfiguration,proto3" json:"field_configuration,omitempty"` // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
`JSONSchema` represents properties from JSON Schema taken, and as used, in the OpenAPI v2 spec.
This includes changes made by OpenAPI v2.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
See also: https://cswr.github.io/JsonSchema/spec/basic_types/, https://github.com/json-schema-org/json-schema-spec/blob/master/schema.json
Example:
message SimpleMessage { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = { json_schema: { title: "SimpleMessage" description: "A simple message." required: ["id"] } }; // Id represents the message identifier. string id = 1; [ (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { description: "The unique identifier of the simple message." }]; }
func (*JSONSchema) CloneMessageVT ¶
func (m *JSONSchema) CloneMessageVT() proto.Message
func (*JSONSchema) CloneVT ¶
func (m *JSONSchema) CloneVT() *JSONSchema
func (*JSONSchema) Descriptor
deprecated
func (*JSONSchema) Descriptor() ([]byte, []int)
Deprecated: Use JSONSchema.ProtoReflect.Descriptor instead.
func (*JSONSchema) EqualMessageVT ¶
func (this *JSONSchema) EqualMessageVT(thatMsg proto.Message) bool
func (*JSONSchema) EqualVT ¶
func (this *JSONSchema) EqualVT(that *JSONSchema) bool
func (*JSONSchema) GetArray ¶
func (x *JSONSchema) GetArray() []string
func (*JSONSchema) GetDefault ¶
func (x *JSONSchema) GetDefault() string
func (*JSONSchema) GetDescription ¶
func (x *JSONSchema) GetDescription() string
func (*JSONSchema) GetEnum ¶
func (x *JSONSchema) GetEnum() []string
func (*JSONSchema) GetExample ¶
func (x *JSONSchema) GetExample() string
func (*JSONSchema) GetExclusiveMaximum ¶
func (x *JSONSchema) GetExclusiveMaximum() bool
func (*JSONSchema) GetExclusiveMinimum ¶
func (x *JSONSchema) GetExclusiveMinimum() bool
func (*JSONSchema) GetExtensions ¶
func (x *JSONSchema) GetExtensions() map[string]*structpb.Value
func (*JSONSchema) GetFieldConfiguration ¶
func (x *JSONSchema) GetFieldConfiguration() *JSONSchema_FieldConfiguration
func (*JSONSchema) GetFormat ¶
func (x *JSONSchema) GetFormat() string
func (*JSONSchema) GetMaxItems ¶
func (x *JSONSchema) GetMaxItems() uint64
func (*JSONSchema) GetMaxLength ¶
func (x *JSONSchema) GetMaxLength() uint64
func (*JSONSchema) GetMaxProperties ¶
func (x *JSONSchema) GetMaxProperties() uint64
func (*JSONSchema) GetMaximum ¶
func (x *JSONSchema) GetMaximum() float64
func (*JSONSchema) GetMinItems ¶
func (x *JSONSchema) GetMinItems() uint64
func (*JSONSchema) GetMinLength ¶
func (x *JSONSchema) GetMinLength() uint64
func (*JSONSchema) GetMinProperties ¶
func (x *JSONSchema) GetMinProperties() uint64
func (*JSONSchema) GetMinimum ¶
func (x *JSONSchema) GetMinimum() float64
func (*JSONSchema) GetMultipleOf ¶
func (x *JSONSchema) GetMultipleOf() float64
func (*JSONSchema) GetPattern ¶
func (x *JSONSchema) GetPattern() string
func (*JSONSchema) GetReadOnly ¶
func (x *JSONSchema) GetReadOnly() bool
func (*JSONSchema) GetRef ¶
func (x *JSONSchema) GetRef() string
func (*JSONSchema) GetRequired ¶
func (x *JSONSchema) GetRequired() []string
func (*JSONSchema) GetTitle ¶
func (x *JSONSchema) GetTitle() string
func (*JSONSchema) GetType ¶
func (x *JSONSchema) GetType() []JSONSchema_JSONSchemaSimpleTypes
func (*JSONSchema) GetUniqueItems ¶
func (x *JSONSchema) GetUniqueItems() bool
func (*JSONSchema) MarshalToSizedBufferVT ¶
func (m *JSONSchema) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*JSONSchema) MarshalToVT ¶
func (m *JSONSchema) MarshalToVT(dAtA []byte) (int, error)
func (*JSONSchema) MarshalVT ¶
func (m *JSONSchema) MarshalVT() (dAtA []byte, err error)
func (*JSONSchema) ProtoMessage ¶
func (*JSONSchema) ProtoMessage()
func (*JSONSchema) ProtoReflect ¶
func (x *JSONSchema) ProtoReflect() protoreflect.Message
func (*JSONSchema) Reset ¶
func (x *JSONSchema) Reset()
func (*JSONSchema) SizeVT ¶
func (m *JSONSchema) SizeVT() (n int)
func (*JSONSchema) String ¶
func (x *JSONSchema) String() string
func (*JSONSchema) UnmarshalVT ¶
func (m *JSONSchema) UnmarshalVT(dAtA []byte) error
func (*JSONSchema) Validate ¶
func (m *JSONSchema) Validate() error
Validate checks the field values on JSONSchema with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*JSONSchema) ValidateAll ¶
func (m *JSONSchema) ValidateAll() error
ValidateAll checks the field values on JSONSchema with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JSONSchemaMultiError, or nil if none found.
type JSONSchemaMultiError ¶
type JSONSchemaMultiError []error
JSONSchemaMultiError is an error wrapping multiple validation errors returned by JSONSchema.ValidateAll() if the designated constraints aren't met.
func (JSONSchemaMultiError) AllErrors ¶
func (m JSONSchemaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JSONSchemaMultiError) Error ¶
func (m JSONSchemaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JSONSchemaValidationError ¶
type JSONSchemaValidationError struct {
// contains filtered or unexported fields
}
JSONSchemaValidationError is the validation error returned by JSONSchema.Validate if the designated constraints aren't met.
func (JSONSchemaValidationError) Cause ¶
func (e JSONSchemaValidationError) Cause() error
Cause function returns cause value.
func (JSONSchemaValidationError) Error ¶
func (e JSONSchemaValidationError) Error() string
Error satisfies the builtin error interface
func (JSONSchemaValidationError) ErrorName ¶
func (e JSONSchemaValidationError) ErrorName() string
ErrorName returns error name.
func (JSONSchemaValidationError) Field ¶
func (e JSONSchemaValidationError) Field() string
Field function returns field value.
func (JSONSchemaValidationError) Key ¶
func (e JSONSchemaValidationError) Key() bool
Key function returns key value.
func (JSONSchemaValidationError) Reason ¶
func (e JSONSchemaValidationError) Reason() string
Reason function returns reason value.
type JSONSchema_FieldConfiguration ¶
type JSONSchema_FieldConfiguration struct { // Alternative parameter name when used as path parameter. If set, this will // be used as the complete parameter name when this field is used as a path // parameter. Use this to avoid having auto generated path parameter names // for overlapping paths. PathParamName string `protobuf:"bytes,47,opt,name=path_param_name,json=pathParamName,proto3" json:"path_param_name,omitempty"` // contains filtered or unexported fields }
'FieldConfiguration' provides additional field level properties used when generating the OpenAPI v2 file. These properties are not defined by OpenAPIv2, but they are used to control the generation.
func (*JSONSchema_FieldConfiguration) CloneMessageVT ¶
func (m *JSONSchema_FieldConfiguration) CloneMessageVT() proto.Message
func (*JSONSchema_FieldConfiguration) CloneVT ¶
func (m *JSONSchema_FieldConfiguration) CloneVT() *JSONSchema_FieldConfiguration
func (*JSONSchema_FieldConfiguration) Descriptor
deprecated
func (*JSONSchema_FieldConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use JSONSchema_FieldConfiguration.ProtoReflect.Descriptor instead.
func (*JSONSchema_FieldConfiguration) EqualMessageVT ¶
func (this *JSONSchema_FieldConfiguration) EqualMessageVT(thatMsg proto.Message) bool
func (*JSONSchema_FieldConfiguration) EqualVT ¶
func (this *JSONSchema_FieldConfiguration) EqualVT(that *JSONSchema_FieldConfiguration) bool
func (*JSONSchema_FieldConfiguration) GetPathParamName ¶
func (x *JSONSchema_FieldConfiguration) GetPathParamName() string
func (*JSONSchema_FieldConfiguration) MarshalToSizedBufferVT ¶
func (m *JSONSchema_FieldConfiguration) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*JSONSchema_FieldConfiguration) MarshalToVT ¶
func (m *JSONSchema_FieldConfiguration) MarshalToVT(dAtA []byte) (int, error)
func (*JSONSchema_FieldConfiguration) MarshalVT ¶
func (m *JSONSchema_FieldConfiguration) MarshalVT() (dAtA []byte, err error)
func (*JSONSchema_FieldConfiguration) ProtoMessage ¶
func (*JSONSchema_FieldConfiguration) ProtoMessage()
func (*JSONSchema_FieldConfiguration) ProtoReflect ¶
func (x *JSONSchema_FieldConfiguration) ProtoReflect() protoreflect.Message
func (*JSONSchema_FieldConfiguration) Reset ¶
func (x *JSONSchema_FieldConfiguration) Reset()
func (*JSONSchema_FieldConfiguration) SizeVT ¶
func (m *JSONSchema_FieldConfiguration) SizeVT() (n int)
func (*JSONSchema_FieldConfiguration) String ¶
func (x *JSONSchema_FieldConfiguration) String() string
func (*JSONSchema_FieldConfiguration) UnmarshalVT ¶
func (m *JSONSchema_FieldConfiguration) UnmarshalVT(dAtA []byte) error
func (*JSONSchema_FieldConfiguration) Validate ¶
func (m *JSONSchema_FieldConfiguration) Validate() error
Validate checks the field values on JSONSchema_FieldConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*JSONSchema_FieldConfiguration) ValidateAll ¶
func (m *JSONSchema_FieldConfiguration) ValidateAll() error
ValidateAll checks the field values on JSONSchema_FieldConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JSONSchema_FieldConfigurationMultiError, or nil if none found.
type JSONSchema_FieldConfigurationMultiError ¶
type JSONSchema_FieldConfigurationMultiError []error
JSONSchema_FieldConfigurationMultiError is an error wrapping multiple validation errors returned by JSONSchema_FieldConfiguration.ValidateAll() if the designated constraints aren't met.
func (JSONSchema_FieldConfigurationMultiError) AllErrors ¶
func (m JSONSchema_FieldConfigurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (JSONSchema_FieldConfigurationMultiError) Error ¶
func (m JSONSchema_FieldConfigurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type JSONSchema_FieldConfigurationValidationError ¶
type JSONSchema_FieldConfigurationValidationError struct {
// contains filtered or unexported fields
}
JSONSchema_FieldConfigurationValidationError is the validation error returned by JSONSchema_FieldConfiguration.Validate if the designated constraints aren't met.
func (JSONSchema_FieldConfigurationValidationError) Cause ¶
func (e JSONSchema_FieldConfigurationValidationError) Cause() error
Cause function returns cause value.
func (JSONSchema_FieldConfigurationValidationError) Error ¶
func (e JSONSchema_FieldConfigurationValidationError) Error() string
Error satisfies the builtin error interface
func (JSONSchema_FieldConfigurationValidationError) ErrorName ¶
func (e JSONSchema_FieldConfigurationValidationError) ErrorName() string
ErrorName returns error name.
func (JSONSchema_FieldConfigurationValidationError) Field ¶
func (e JSONSchema_FieldConfigurationValidationError) Field() string
Field function returns field value.
func (JSONSchema_FieldConfigurationValidationError) Key ¶
func (e JSONSchema_FieldConfigurationValidationError) Key() bool
Key function returns key value.
func (JSONSchema_FieldConfigurationValidationError) Reason ¶
func (e JSONSchema_FieldConfigurationValidationError) Reason() string
Reason function returns reason value.
type JSONSchema_JSONSchemaSimpleTypes ¶
type JSONSchema_JSONSchemaSimpleTypes int32
const ( JSONSchema_UNKNOWN JSONSchema_JSONSchemaSimpleTypes = 0 JSONSchema_ARRAY JSONSchema_JSONSchemaSimpleTypes = 1 JSONSchema_BOOLEAN JSONSchema_JSONSchemaSimpleTypes = 2 JSONSchema_INTEGER JSONSchema_JSONSchemaSimpleTypes = 3 JSONSchema_NULL JSONSchema_JSONSchemaSimpleTypes = 4 JSONSchema_NUMBER JSONSchema_JSONSchemaSimpleTypes = 5 JSONSchema_OBJECT JSONSchema_JSONSchemaSimpleTypes = 6 JSONSchema_STRING JSONSchema_JSONSchemaSimpleTypes = 7 )
func (JSONSchema_JSONSchemaSimpleTypes) Descriptor ¶
func (JSONSchema_JSONSchemaSimpleTypes) Descriptor() protoreflect.EnumDescriptor
func (JSONSchema_JSONSchemaSimpleTypes) Enum ¶
func (x JSONSchema_JSONSchemaSimpleTypes) Enum() *JSONSchema_JSONSchemaSimpleTypes
func (JSONSchema_JSONSchemaSimpleTypes) EnumDescriptor
deprecated
func (JSONSchema_JSONSchemaSimpleTypes) EnumDescriptor() ([]byte, []int)
Deprecated: Use JSONSchema_JSONSchemaSimpleTypes.Descriptor instead.
func (JSONSchema_JSONSchemaSimpleTypes) Number ¶
func (x JSONSchema_JSONSchemaSimpleTypes) Number() protoreflect.EnumNumber
func (JSONSchema_JSONSchemaSimpleTypes) String ¶
func (x JSONSchema_JSONSchemaSimpleTypes) String() string
func (JSONSchema_JSONSchemaSimpleTypes) Type ¶
func (JSONSchema_JSONSchemaSimpleTypes) Type() protoreflect.EnumType
type License ¶
type License struct { // The license name used for the API. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A URL to the license used for the API. MUST be in the format of a URL. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
`License` is a representation of OpenAPI v2 specification's License object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#licenseObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { ... license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE"; }; ... }; ... };
func (*License) CloneMessageVT ¶
func (*License) Descriptor
deprecated
func (*License) MarshalToSizedBufferVT ¶
func (*License) ProtoMessage ¶
func (*License) ProtoMessage()
func (*License) ProtoReflect ¶
func (x *License) ProtoReflect() protoreflect.Message
func (*License) UnmarshalVT ¶
func (*License) Validate ¶
Validate checks the field values on License with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*License) ValidateAll ¶
ValidateAll checks the field values on License with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LicenseMultiError, or nil if none found.
type LicenseMultiError ¶
type LicenseMultiError []error
LicenseMultiError is an error wrapping multiple validation errors returned by License.ValidateAll() if the designated constraints aren't met.
func (LicenseMultiError) AllErrors ¶
func (m LicenseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LicenseMultiError) Error ¶
func (m LicenseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LicenseValidationError ¶
type LicenseValidationError struct {
// contains filtered or unexported fields
}
LicenseValidationError is the validation error returned by License.Validate if the designated constraints aren't met.
func (LicenseValidationError) Cause ¶
func (e LicenseValidationError) Cause() error
Cause function returns cause value.
func (LicenseValidationError) Error ¶
func (e LicenseValidationError) Error() string
Error satisfies the builtin error interface
func (LicenseValidationError) ErrorName ¶
func (e LicenseValidationError) ErrorName() string
ErrorName returns error name.
func (LicenseValidationError) Field ¶
func (e LicenseValidationError) Field() string
Field function returns field value.
func (LicenseValidationError) Key ¶
func (e LicenseValidationError) Key() bool
Key function returns key value.
func (LicenseValidationError) Reason ¶
func (e LicenseValidationError) Reason() string
Reason function returns reason value.
type Operation ¶
type Operation struct { // A list of tags for API documentation control. Tags can be used for logical // grouping of operations by resources or any other qualifier. Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // A short summary of what the operation does. For maximum readability in the // swagger-ui, this field SHOULD be less than 120 characters. Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` // A verbose explanation of the operation behavior. GFM syntax can be used for // rich text representation. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Additional external documentation for this operation. ExternalDocs *ExternalDocumentation `protobuf:"bytes,4,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"` // Unique string used to identify the operation. The id MUST be unique among // all operations described in the API. Tools and libraries MAY use the // operationId to uniquely identify an operation, therefore, it is recommended // to follow common programming naming conventions. OperationId string `protobuf:"bytes,5,opt,name=operation_id,json=operationId,proto3" json:"operation_id,omitempty"` // A list of MIME types the operation can consume. This overrides the consumes // definition at the OpenAPI Object. An empty value MAY be used to clear the // global definition. Value MUST be as described under Mime Types. Consumes []string `protobuf:"bytes,6,rep,name=consumes,proto3" json:"consumes,omitempty"` // A list of MIME types the operation can produce. This overrides the produces // definition at the OpenAPI Object. An empty value MAY be used to clear the // global definition. Value MUST be as described under Mime Types. Produces []string `protobuf:"bytes,7,rep,name=produces,proto3" json:"produces,omitempty"` // The list of possible responses as they are returned from executing this // operation. Responses map[string]*Response `` /* 159-byte string literal not displayed */ // The transfer protocol for the operation. Values MUST be from the list: // "http", "https", "ws", "wss". The value overrides the OpenAPI Object // schemes definition. Schemes []Scheme `` /* 130-byte string literal not displayed */ // Declares this operation to be deprecated. Usage of the declared operation // should be refrained. Default value is false. Deprecated bool `protobuf:"varint,11,opt,name=deprecated,proto3" json:"deprecated,omitempty"` // A declaration of which security schemes are applied for this operation. The // list of values describes alternative security schemes that can be used // (that is, there is a logical OR between the security requirements). This // definition overrides any declared top-level security. To remove a top-level // security declaration, an empty array can be used. Security []*SecurityRequirement `protobuf:"bytes,12,rep,name=security,proto3" json:"security,omitempty"` // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 162-byte string literal not displayed */ // Custom parameters such as HTTP request headers. // See: https://swagger.io/docs/specification/2-0/describing-parameters/ // and https://swagger.io/specification/v2/#parameter-object. Parameters *Parameters `protobuf:"bytes,14,opt,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
`Operation` is a representation of OpenAPI v2 specification's Operation object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#operationObject
Example:
service EchoService { rpc Echo(SimpleMessage) returns (SimpleMessage) { option (google.api.http) = { get: "/v1/example/echo/{id}" }; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { summary: "Get a message."; operation_id: "getMessage"; tags: "echo"; responses: { key: "200" value: { description: "OK"; } } }; } }
func (*Operation) CloneMessageVT ¶
func (*Operation) Descriptor
deprecated
func (*Operation) EqualMessageVT ¶
func (*Operation) GetConsumes ¶
func (*Operation) GetDeprecated ¶
func (*Operation) GetDescription ¶
func (*Operation) GetExternalDocs ¶
func (x *Operation) GetExternalDocs() *ExternalDocumentation
func (*Operation) GetOperationId ¶
func (*Operation) GetParameters ¶
func (x *Operation) GetParameters() *Parameters
func (*Operation) GetProduces ¶
func (*Operation) GetResponses ¶
func (*Operation) GetSchemes ¶
func (*Operation) GetSecurity ¶
func (x *Operation) GetSecurity() []*SecurityRequirement
func (*Operation) GetSummary ¶
func (*Operation) MarshalToSizedBufferVT ¶
func (*Operation) ProtoMessage ¶
func (*Operation) ProtoMessage()
func (*Operation) ProtoReflect ¶
func (x *Operation) ProtoReflect() protoreflect.Message
func (*Operation) UnmarshalVT ¶
func (*Operation) Validate ¶
Validate checks the field values on Operation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Operation) ValidateAll ¶
ValidateAll checks the field values on Operation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OperationMultiError, or nil if none found.
type OperationMultiError ¶
type OperationMultiError []error
OperationMultiError is an error wrapping multiple validation errors returned by Operation.ValidateAll() if the designated constraints aren't met.
func (OperationMultiError) AllErrors ¶
func (m OperationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperationMultiError) Error ¶
func (m OperationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperationValidationError ¶
type OperationValidationError struct {
// contains filtered or unexported fields
}
OperationValidationError is the validation error returned by Operation.Validate if the designated constraints aren't met.
func (OperationValidationError) Cause ¶
func (e OperationValidationError) Cause() error
Cause function returns cause value.
func (OperationValidationError) Error ¶
func (e OperationValidationError) Error() string
Error satisfies the builtin error interface
func (OperationValidationError) ErrorName ¶
func (e OperationValidationError) ErrorName() string
ErrorName returns error name.
func (OperationValidationError) Field ¶
func (e OperationValidationError) Field() string
Field function returns field value.
func (OperationValidationError) Key ¶
func (e OperationValidationError) Key() bool
Key function returns key value.
func (OperationValidationError) Reason ¶
func (e OperationValidationError) Reason() string
Reason function returns reason value.
type Parameters ¶
type Parameters struct { // `Headers` is one or more HTTP header parameter. // See: https://swagger.io/docs/specification/2-0/describing-parameters/#header-parameters Headers []*HeaderParameter `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"` // contains filtered or unexported fields }
`Parameters` is a representation of OpenAPI v2 specification's parameters object. Note: This technically breaks compatibility with the OpenAPI 2 definition structure as we only allow header parameters to be set here since we do not want users specifying custom non-header parameters beyond those inferred from the Protobuf schema. See: https://swagger.io/specification/v2/#parameter-object
func (*Parameters) CloneMessageVT ¶
func (m *Parameters) CloneMessageVT() proto.Message
func (*Parameters) CloneVT ¶
func (m *Parameters) CloneVT() *Parameters
func (*Parameters) Descriptor
deprecated
func (*Parameters) Descriptor() ([]byte, []int)
Deprecated: Use Parameters.ProtoReflect.Descriptor instead.
func (*Parameters) EqualMessageVT ¶
func (this *Parameters) EqualMessageVT(thatMsg proto.Message) bool
func (*Parameters) EqualVT ¶
func (this *Parameters) EqualVT(that *Parameters) bool
func (*Parameters) GetHeaders ¶
func (x *Parameters) GetHeaders() []*HeaderParameter
func (*Parameters) MarshalToSizedBufferVT ¶
func (m *Parameters) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Parameters) MarshalToVT ¶
func (m *Parameters) MarshalToVT(dAtA []byte) (int, error)
func (*Parameters) MarshalVT ¶
func (m *Parameters) MarshalVT() (dAtA []byte, err error)
func (*Parameters) ProtoMessage ¶
func (*Parameters) ProtoMessage()
func (*Parameters) ProtoReflect ¶
func (x *Parameters) ProtoReflect() protoreflect.Message
func (*Parameters) Reset ¶
func (x *Parameters) Reset()
func (*Parameters) SizeVT ¶
func (m *Parameters) SizeVT() (n int)
func (*Parameters) String ¶
func (x *Parameters) String() string
func (*Parameters) UnmarshalVT ¶
func (m *Parameters) UnmarshalVT(dAtA []byte) error
func (*Parameters) Validate ¶
func (m *Parameters) Validate() error
Validate checks the field values on Parameters with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Parameters) ValidateAll ¶
func (m *Parameters) ValidateAll() error
ValidateAll checks the field values on Parameters with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ParametersMultiError, or nil if none found.
type ParametersMultiError ¶
type ParametersMultiError []error
ParametersMultiError is an error wrapping multiple validation errors returned by Parameters.ValidateAll() if the designated constraints aren't met.
func (ParametersMultiError) AllErrors ¶
func (m ParametersMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ParametersMultiError) Error ¶
func (m ParametersMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ParametersValidationError ¶
type ParametersValidationError struct {
// contains filtered or unexported fields
}
ParametersValidationError is the validation error returned by Parameters.Validate if the designated constraints aren't met.
func (ParametersValidationError) Cause ¶
func (e ParametersValidationError) Cause() error
Cause function returns cause value.
func (ParametersValidationError) Error ¶
func (e ParametersValidationError) Error() string
Error satisfies the builtin error interface
func (ParametersValidationError) ErrorName ¶
func (e ParametersValidationError) ErrorName() string
ErrorName returns error name.
func (ParametersValidationError) Field ¶
func (e ParametersValidationError) Field() string
Field function returns field value.
func (ParametersValidationError) Key ¶
func (e ParametersValidationError) Key() bool
Key function returns key value.
func (ParametersValidationError) Reason ¶
func (e ParametersValidationError) Reason() string
Reason function returns reason value.
type Response ¶
type Response struct { // `Description` is a short description of the response. // GFM syntax can be used for rich text representation. Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` // `Schema` optionally defines the structure of the response. // If `Schema` is not provided, it means there is no content to the response. Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` // `Headers` A list of headers that are sent with the response. // `Header` name is expected to be a string in the canonical format of the MIME header key // See: https://golang.org/pkg/net/textproto/#CanonicalMIMEHeaderKey Headers map[string]*Header `` /* 155-byte string literal not displayed */ // `Examples` gives per-mimetype response examples. // See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#example-object Examples map[string]string `` /* 157-byte string literal not displayed */ // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
`Response` is a representation of OpenAPI v2 specification's Response object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#responseObject
func (*Response) CloneMessageVT ¶
func (*Response) Descriptor
deprecated
func (*Response) GetDescription ¶
func (*Response) GetExamples ¶
func (*Response) GetHeaders ¶
func (*Response) MarshalToSizedBufferVT ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) UnmarshalVT ¶
func (*Response) Validate ¶
Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Response) ValidateAll ¶
ValidateAll checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResponseMultiError, or nil if none found.
type ResponseMultiError ¶
type ResponseMultiError []error
ResponseMultiError is an error wrapping multiple validation errors returned by Response.ValidateAll() if the designated constraints aren't met.
func (ResponseMultiError) AllErrors ¶
func (m ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseMultiError) Error ¶
func (m ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseValidationError ¶
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.
type Schema ¶
type Schema struct { JsonSchema *JSONSchema `protobuf:"bytes,1,opt,name=json_schema,json=jsonSchema,proto3" json:"json_schema,omitempty"` // Adds support for polymorphism. The discriminator is the schema property // name that is used to differentiate between other schema that inherit this // schema. The property name used MUST be defined at this schema and it MUST // be in the required property list. When used, the value MUST be the name of // this schema or any schema that inherits it. Discriminator string `protobuf:"bytes,2,opt,name=discriminator,proto3" json:"discriminator,omitempty"` // Relevant only for Schema "properties" definitions. Declares the property as // "read only". This means that it MAY be sent as part of a response but MUST // NOT be sent as part of the request. Properties marked as readOnly being // true SHOULD NOT be in the required list of the defined schema. Default // value is false. ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"` // Additional external documentation for this schema. ExternalDocs *ExternalDocumentation `protobuf:"bytes,5,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"` // A free-form property to include an example of an instance for this schema in JSON. // This is copied verbatim to the output. Example string `protobuf:"bytes,6,opt,name=example,proto3" json:"example,omitempty"` // contains filtered or unexported fields }
`Schema` is a representation of OpenAPI v2 specification's Schema object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#schemaObject
func (*Schema) CloneMessageVT ¶
func (*Schema) Descriptor
deprecated
func (*Schema) GetDiscriminator ¶
func (*Schema) GetExample ¶
func (*Schema) GetExternalDocs ¶
func (x *Schema) GetExternalDocs() *ExternalDocumentation
func (*Schema) GetJsonSchema ¶
func (x *Schema) GetJsonSchema() *JSONSchema
func (*Schema) GetReadOnly ¶
func (*Schema) MarshalToSizedBufferVT ¶
func (*Schema) ProtoMessage ¶
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶
func (x *Schema) ProtoReflect() protoreflect.Message
func (*Schema) UnmarshalVT ¶
func (*Schema) Validate ¶
Validate checks the field values on Schema with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Schema) ValidateAll ¶
ValidateAll checks the field values on Schema with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SchemaMultiError, or nil if none found.
type SchemaMultiError ¶
type SchemaMultiError []error
SchemaMultiError is an error wrapping multiple validation errors returned by Schema.ValidateAll() if the designated constraints aren't met.
func (SchemaMultiError) AllErrors ¶
func (m SchemaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SchemaMultiError) Error ¶
func (m SchemaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SchemaValidationError ¶
type SchemaValidationError struct {
// contains filtered or unexported fields
}
SchemaValidationError is the validation error returned by Schema.Validate if the designated constraints aren't met.
func (SchemaValidationError) Cause ¶
func (e SchemaValidationError) Cause() error
Cause function returns cause value.
func (SchemaValidationError) Error ¶
func (e SchemaValidationError) Error() string
Error satisfies the builtin error interface
func (SchemaValidationError) ErrorName ¶
func (e SchemaValidationError) ErrorName() string
ErrorName returns error name.
func (SchemaValidationError) Field ¶
func (e SchemaValidationError) Field() string
Field function returns field value.
func (SchemaValidationError) Key ¶
func (e SchemaValidationError) Key() bool
Key function returns key value.
func (SchemaValidationError) Reason ¶
func (e SchemaValidationError) Reason() string
Reason function returns reason value.
type Scheme ¶
type Scheme int32
Scheme describes the schemes supported by the OpenAPI Swagger and Operation objects.
func (Scheme) Descriptor ¶
func (Scheme) Descriptor() protoreflect.EnumDescriptor
func (Scheme) EnumDescriptor
deprecated
func (Scheme) Number ¶
func (x Scheme) Number() protoreflect.EnumNumber
func (Scheme) Type ¶
func (Scheme) Type() protoreflect.EnumType
type Scopes ¶
type Scopes struct { // Maps between a name of a scope to a short description of it (as the value // of the property). Scope map[string]string `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
`Scopes` is a representation of OpenAPI v2 specification's Scopes object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#scopesObject
Lists the available scopes for an OAuth2 security scheme.
func (*Scopes) CloneMessageVT ¶
func (*Scopes) Descriptor
deprecated
func (*Scopes) MarshalToSizedBufferVT ¶
func (*Scopes) ProtoMessage ¶
func (*Scopes) ProtoMessage()
func (*Scopes) ProtoReflect ¶
func (x *Scopes) ProtoReflect() protoreflect.Message
func (*Scopes) UnmarshalVT ¶
func (*Scopes) Validate ¶
Validate checks the field values on Scopes with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Scopes) ValidateAll ¶
ValidateAll checks the field values on Scopes with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ScopesMultiError, or nil if none found.
type ScopesMultiError ¶
type ScopesMultiError []error
ScopesMultiError is an error wrapping multiple validation errors returned by Scopes.ValidateAll() if the designated constraints aren't met.
func (ScopesMultiError) AllErrors ¶
func (m ScopesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ScopesMultiError) Error ¶
func (m ScopesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ScopesValidationError ¶
type ScopesValidationError struct {
// contains filtered or unexported fields
}
ScopesValidationError is the validation error returned by Scopes.Validate if the designated constraints aren't met.
func (ScopesValidationError) Cause ¶
func (e ScopesValidationError) Cause() error
Cause function returns cause value.
func (ScopesValidationError) Error ¶
func (e ScopesValidationError) Error() string
Error satisfies the builtin error interface
func (ScopesValidationError) ErrorName ¶
func (e ScopesValidationError) ErrorName() string
ErrorName returns error name.
func (ScopesValidationError) Field ¶
func (e ScopesValidationError) Field() string
Field function returns field value.
func (ScopesValidationError) Key ¶
func (e ScopesValidationError) Key() bool
Key function returns key value.
func (ScopesValidationError) Reason ¶
func (e ScopesValidationError) Reason() string
Reason function returns reason value.
type SecurityDefinitions ¶
type SecurityDefinitions struct { // A single security scheme definition, mapping a "name" to the scheme it // defines. Security map[string]*SecurityScheme `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
`SecurityDefinitions` is a representation of OpenAPI v2 specification's Security Definitions object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityDefinitionsObject
A declaration of the security schemes available to be used in the specification. This does not enforce the security schemes on the operations and only serves to provide the relevant details for each scheme.
func (*SecurityDefinitions) CloneMessageVT ¶
func (m *SecurityDefinitions) CloneMessageVT() proto.Message
func (*SecurityDefinitions) CloneVT ¶
func (m *SecurityDefinitions) CloneVT() *SecurityDefinitions
func (*SecurityDefinitions) Descriptor
deprecated
func (*SecurityDefinitions) Descriptor() ([]byte, []int)
Deprecated: Use SecurityDefinitions.ProtoReflect.Descriptor instead.
func (*SecurityDefinitions) EqualMessageVT ¶
func (this *SecurityDefinitions) EqualMessageVT(thatMsg proto.Message) bool
func (*SecurityDefinitions) EqualVT ¶
func (this *SecurityDefinitions) EqualVT(that *SecurityDefinitions) bool
func (*SecurityDefinitions) GetSecurity ¶
func (x *SecurityDefinitions) GetSecurity() map[string]*SecurityScheme
func (*SecurityDefinitions) MarshalToSizedBufferVT ¶
func (m *SecurityDefinitions) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SecurityDefinitions) MarshalToVT ¶
func (m *SecurityDefinitions) MarshalToVT(dAtA []byte) (int, error)
func (*SecurityDefinitions) MarshalVT ¶
func (m *SecurityDefinitions) MarshalVT() (dAtA []byte, err error)
func (*SecurityDefinitions) ProtoMessage ¶
func (*SecurityDefinitions) ProtoMessage()
func (*SecurityDefinitions) ProtoReflect ¶
func (x *SecurityDefinitions) ProtoReflect() protoreflect.Message
func (*SecurityDefinitions) Reset ¶
func (x *SecurityDefinitions) Reset()
func (*SecurityDefinitions) SizeVT ¶
func (m *SecurityDefinitions) SizeVT() (n int)
func (*SecurityDefinitions) String ¶
func (x *SecurityDefinitions) String() string
func (*SecurityDefinitions) UnmarshalVT ¶
func (m *SecurityDefinitions) UnmarshalVT(dAtA []byte) error
func (*SecurityDefinitions) Validate ¶
func (m *SecurityDefinitions) Validate() error
Validate checks the field values on SecurityDefinitions with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SecurityDefinitions) ValidateAll ¶
func (m *SecurityDefinitions) ValidateAll() error
ValidateAll checks the field values on SecurityDefinitions with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SecurityDefinitionsMultiError, or nil if none found.
type SecurityDefinitionsMultiError ¶
type SecurityDefinitionsMultiError []error
SecurityDefinitionsMultiError is an error wrapping multiple validation errors returned by SecurityDefinitions.ValidateAll() if the designated constraints aren't met.
func (SecurityDefinitionsMultiError) AllErrors ¶
func (m SecurityDefinitionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SecurityDefinitionsMultiError) Error ¶
func (m SecurityDefinitionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SecurityDefinitionsValidationError ¶
type SecurityDefinitionsValidationError struct {
// contains filtered or unexported fields
}
SecurityDefinitionsValidationError is the validation error returned by SecurityDefinitions.Validate if the designated constraints aren't met.
func (SecurityDefinitionsValidationError) Cause ¶
func (e SecurityDefinitionsValidationError) Cause() error
Cause function returns cause value.
func (SecurityDefinitionsValidationError) Error ¶
func (e SecurityDefinitionsValidationError) Error() string
Error satisfies the builtin error interface
func (SecurityDefinitionsValidationError) ErrorName ¶
func (e SecurityDefinitionsValidationError) ErrorName() string
ErrorName returns error name.
func (SecurityDefinitionsValidationError) Field ¶
func (e SecurityDefinitionsValidationError) Field() string
Field function returns field value.
func (SecurityDefinitionsValidationError) Key ¶
func (e SecurityDefinitionsValidationError) Key() bool
Key function returns key value.
func (SecurityDefinitionsValidationError) Reason ¶
func (e SecurityDefinitionsValidationError) Reason() string
Reason function returns reason value.
type SecurityRequirement ¶
type SecurityRequirement struct { // Each name must correspond to a security scheme which is declared in // the Security Definitions. If the security scheme is of type "oauth2", // then the value is a list of scope names required for the execution. // For other security scheme types, the array MUST be empty. SecurityRequirement map[string]*SecurityRequirement_SecurityRequirementValue `` /* 206-byte string literal not displayed */ // contains filtered or unexported fields }
`SecurityRequirement` is a representation of OpenAPI v2 specification's Security Requirement object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securityRequirementObject
Lists the required security schemes to execute this operation. The object can have multiple security schemes declared in it which are all required (that is, there is a logical AND between the schemes).
The name used for each property MUST correspond to a security scheme declared in the Security Definitions.
func (*SecurityRequirement) CloneMessageVT ¶
func (m *SecurityRequirement) CloneMessageVT() proto.Message
func (*SecurityRequirement) CloneVT ¶
func (m *SecurityRequirement) CloneVT() *SecurityRequirement
func (*SecurityRequirement) Descriptor
deprecated
func (*SecurityRequirement) Descriptor() ([]byte, []int)
Deprecated: Use SecurityRequirement.ProtoReflect.Descriptor instead.
func (*SecurityRequirement) EqualMessageVT ¶
func (this *SecurityRequirement) EqualMessageVT(thatMsg proto.Message) bool
func (*SecurityRequirement) EqualVT ¶
func (this *SecurityRequirement) EqualVT(that *SecurityRequirement) bool
func (*SecurityRequirement) GetSecurityRequirement ¶
func (x *SecurityRequirement) GetSecurityRequirement() map[string]*SecurityRequirement_SecurityRequirementValue
func (*SecurityRequirement) MarshalToSizedBufferVT ¶
func (m *SecurityRequirement) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SecurityRequirement) MarshalToVT ¶
func (m *SecurityRequirement) MarshalToVT(dAtA []byte) (int, error)
func (*SecurityRequirement) MarshalVT ¶
func (m *SecurityRequirement) MarshalVT() (dAtA []byte, err error)
func (*SecurityRequirement) ProtoMessage ¶
func (*SecurityRequirement) ProtoMessage()
func (*SecurityRequirement) ProtoReflect ¶
func (x *SecurityRequirement) ProtoReflect() protoreflect.Message
func (*SecurityRequirement) Reset ¶
func (x *SecurityRequirement) Reset()
func (*SecurityRequirement) SizeVT ¶
func (m *SecurityRequirement) SizeVT() (n int)
func (*SecurityRequirement) String ¶
func (x *SecurityRequirement) String() string
func (*SecurityRequirement) UnmarshalVT ¶
func (m *SecurityRequirement) UnmarshalVT(dAtA []byte) error
func (*SecurityRequirement) Validate ¶
func (m *SecurityRequirement) Validate() error
Validate checks the field values on SecurityRequirement with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SecurityRequirement) ValidateAll ¶
func (m *SecurityRequirement) ValidateAll() error
ValidateAll checks the field values on SecurityRequirement with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SecurityRequirementMultiError, or nil if none found.
type SecurityRequirementMultiError ¶
type SecurityRequirementMultiError []error
SecurityRequirementMultiError is an error wrapping multiple validation errors returned by SecurityRequirement.ValidateAll() if the designated constraints aren't met.
func (SecurityRequirementMultiError) AllErrors ¶
func (m SecurityRequirementMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SecurityRequirementMultiError) Error ¶
func (m SecurityRequirementMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SecurityRequirementValidationError ¶
type SecurityRequirementValidationError struct {
// contains filtered or unexported fields
}
SecurityRequirementValidationError is the validation error returned by SecurityRequirement.Validate if the designated constraints aren't met.
func (SecurityRequirementValidationError) Cause ¶
func (e SecurityRequirementValidationError) Cause() error
Cause function returns cause value.
func (SecurityRequirementValidationError) Error ¶
func (e SecurityRequirementValidationError) Error() string
Error satisfies the builtin error interface
func (SecurityRequirementValidationError) ErrorName ¶
func (e SecurityRequirementValidationError) ErrorName() string
ErrorName returns error name.
func (SecurityRequirementValidationError) Field ¶
func (e SecurityRequirementValidationError) Field() string
Field function returns field value.
func (SecurityRequirementValidationError) Key ¶
func (e SecurityRequirementValidationError) Key() bool
Key function returns key value.
func (SecurityRequirementValidationError) Reason ¶
func (e SecurityRequirementValidationError) Reason() string
Reason function returns reason value.
type SecurityRequirement_SecurityRequirementValue ¶
type SecurityRequirement_SecurityRequirementValue struct { Scope []string `protobuf:"bytes,1,rep,name=scope,proto3" json:"scope,omitempty"` // contains filtered or unexported fields }
If the security scheme is of type "oauth2", then the value is a list of scope names required for the execution. For other security scheme types, the array MUST be empty.
func (*SecurityRequirement_SecurityRequirementValue) CloneMessageVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) CloneMessageVT() proto.Message
func (*SecurityRequirement_SecurityRequirementValue) CloneVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) CloneVT() *SecurityRequirement_SecurityRequirementValue
func (*SecurityRequirement_SecurityRequirementValue) Descriptor
deprecated
func (*SecurityRequirement_SecurityRequirementValue) Descriptor() ([]byte, []int)
Deprecated: Use SecurityRequirement_SecurityRequirementValue.ProtoReflect.Descriptor instead.
func (*SecurityRequirement_SecurityRequirementValue) EqualMessageVT ¶
func (this *SecurityRequirement_SecurityRequirementValue) EqualMessageVT(thatMsg proto.Message) bool
func (*SecurityRequirement_SecurityRequirementValue) EqualVT ¶
func (this *SecurityRequirement_SecurityRequirementValue) EqualVT(that *SecurityRequirement_SecurityRequirementValue) bool
func (*SecurityRequirement_SecurityRequirementValue) GetScope ¶
func (x *SecurityRequirement_SecurityRequirementValue) GetScope() []string
func (*SecurityRequirement_SecurityRequirementValue) MarshalToSizedBufferVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SecurityRequirement_SecurityRequirementValue) MarshalToVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) MarshalToVT(dAtA []byte) (int, error)
func (*SecurityRequirement_SecurityRequirementValue) MarshalVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) MarshalVT() (dAtA []byte, err error)
func (*SecurityRequirement_SecurityRequirementValue) ProtoMessage ¶
func (*SecurityRequirement_SecurityRequirementValue) ProtoMessage()
func (*SecurityRequirement_SecurityRequirementValue) ProtoReflect ¶
func (x *SecurityRequirement_SecurityRequirementValue) ProtoReflect() protoreflect.Message
func (*SecurityRequirement_SecurityRequirementValue) Reset ¶
func (x *SecurityRequirement_SecurityRequirementValue) Reset()
func (*SecurityRequirement_SecurityRequirementValue) SizeVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) SizeVT() (n int)
func (*SecurityRequirement_SecurityRequirementValue) String ¶
func (x *SecurityRequirement_SecurityRequirementValue) String() string
func (*SecurityRequirement_SecurityRequirementValue) UnmarshalVT ¶
func (m *SecurityRequirement_SecurityRequirementValue) UnmarshalVT(dAtA []byte) error
func (*SecurityRequirement_SecurityRequirementValue) Validate ¶
func (m *SecurityRequirement_SecurityRequirementValue) Validate() error
Validate checks the field values on SecurityRequirement_SecurityRequirementValue with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SecurityRequirement_SecurityRequirementValue) ValidateAll ¶
func (m *SecurityRequirement_SecurityRequirementValue) ValidateAll() error
ValidateAll checks the field values on SecurityRequirement_SecurityRequirementValue with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SecurityRequirement_SecurityRequirementValueMultiError, or nil if none found.
type SecurityRequirement_SecurityRequirementValueMultiError ¶
type SecurityRequirement_SecurityRequirementValueMultiError []error
SecurityRequirement_SecurityRequirementValueMultiError is an error wrapping multiple validation errors returned by SecurityRequirement_SecurityRequirementValue.ValidateAll() if the designated constraints aren't met.
func (SecurityRequirement_SecurityRequirementValueMultiError) AllErrors ¶
func (m SecurityRequirement_SecurityRequirementValueMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SecurityRequirement_SecurityRequirementValueMultiError) Error ¶
func (m SecurityRequirement_SecurityRequirementValueMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SecurityRequirement_SecurityRequirementValueValidationError ¶
type SecurityRequirement_SecurityRequirementValueValidationError struct {
// contains filtered or unexported fields
}
SecurityRequirement_SecurityRequirementValueValidationError is the validation error returned by SecurityRequirement_SecurityRequirementValue.Validate if the designated constraints aren't met.
func (SecurityRequirement_SecurityRequirementValueValidationError) Cause ¶
func (e SecurityRequirement_SecurityRequirementValueValidationError) Cause() error
Cause function returns cause value.
func (SecurityRequirement_SecurityRequirementValueValidationError) Error ¶
func (e SecurityRequirement_SecurityRequirementValueValidationError) Error() string
Error satisfies the builtin error interface
func (SecurityRequirement_SecurityRequirementValueValidationError) ErrorName ¶
func (e SecurityRequirement_SecurityRequirementValueValidationError) ErrorName() string
ErrorName returns error name.
func (SecurityRequirement_SecurityRequirementValueValidationError) Field ¶
func (e SecurityRequirement_SecurityRequirementValueValidationError) Field() string
Field function returns field value.
func (SecurityRequirement_SecurityRequirementValueValidationError) Key ¶
func (e SecurityRequirement_SecurityRequirementValueValidationError) Key() bool
Key function returns key value.
func (SecurityRequirement_SecurityRequirementValueValidationError) Reason ¶
func (e SecurityRequirement_SecurityRequirementValueValidationError) Reason() string
Reason function returns reason value.
type SecurityScheme ¶
type SecurityScheme struct { // The type of the security scheme. Valid values are "basic", // "apiKey" or "oauth2". Type SecurityScheme_Type `` /* 129-byte string literal not displayed */ // A short description for security scheme. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The name of the header or query parameter to be used. // Valid for apiKey. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // The location of the API key. Valid values are "query" or // "header". // Valid for apiKey. In SecurityScheme_In `protobuf:"varint,4,opt,name=in,proto3,enum=grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme_In" json:"in,omitempty"` // The flow used by the OAuth2 security scheme. Valid values are // "implicit", "password", "application" or "accessCode". // Valid for oauth2. Flow SecurityScheme_Flow `` /* 129-byte string literal not displayed */ // The authorization URL to be used for this flow. This SHOULD be in // the form of a URL. // Valid for oauth2/implicit and oauth2/accessCode. AuthorizationUrl string `protobuf:"bytes,6,opt,name=authorization_url,json=authorizationUrl,proto3" json:"authorization_url,omitempty"` // The token URL to be used for this flow. This SHOULD be in the // form of a URL. // Valid for oauth2/password, oauth2/application and oauth2/accessCode. TokenUrl string `protobuf:"bytes,7,opt,name=token_url,json=tokenUrl,proto3" json:"token_url,omitempty"` // The available scopes for the OAuth2 security scheme. // Valid for oauth2. Scopes *Scopes `protobuf:"bytes,8,opt,name=scopes,proto3" json:"scopes,omitempty"` // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
`SecurityScheme` is a representation of OpenAPI v2 specification's Security Scheme object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#securitySchemeObject
Allows the definition of a security scheme that can be used by the operations. Supported schemes are basic authentication, an API key (either as a header or as a query parameter) and OAuth2's common flows (implicit, password, application and access code).
func (*SecurityScheme) CloneMessageVT ¶
func (m *SecurityScheme) CloneMessageVT() proto.Message
func (*SecurityScheme) CloneVT ¶
func (m *SecurityScheme) CloneVT() *SecurityScheme
func (*SecurityScheme) Descriptor
deprecated
func (*SecurityScheme) Descriptor() ([]byte, []int)
Deprecated: Use SecurityScheme.ProtoReflect.Descriptor instead.
func (*SecurityScheme) EqualMessageVT ¶
func (this *SecurityScheme) EqualMessageVT(thatMsg proto.Message) bool
func (*SecurityScheme) EqualVT ¶
func (this *SecurityScheme) EqualVT(that *SecurityScheme) bool
func (*SecurityScheme) GetAuthorizationUrl ¶
func (x *SecurityScheme) GetAuthorizationUrl() string
func (*SecurityScheme) GetDescription ¶
func (x *SecurityScheme) GetDescription() string
func (*SecurityScheme) GetExtensions ¶
func (x *SecurityScheme) GetExtensions() map[string]*structpb.Value
func (*SecurityScheme) GetFlow ¶
func (x *SecurityScheme) GetFlow() SecurityScheme_Flow
func (*SecurityScheme) GetIn ¶
func (x *SecurityScheme) GetIn() SecurityScheme_In
func (*SecurityScheme) GetName ¶
func (x *SecurityScheme) GetName() string
func (*SecurityScheme) GetScopes ¶
func (x *SecurityScheme) GetScopes() *Scopes
func (*SecurityScheme) GetTokenUrl ¶
func (x *SecurityScheme) GetTokenUrl() string
func (*SecurityScheme) GetType ¶
func (x *SecurityScheme) GetType() SecurityScheme_Type
func (*SecurityScheme) MarshalToSizedBufferVT ¶
func (m *SecurityScheme) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*SecurityScheme) MarshalToVT ¶
func (m *SecurityScheme) MarshalToVT(dAtA []byte) (int, error)
func (*SecurityScheme) MarshalVT ¶
func (m *SecurityScheme) MarshalVT() (dAtA []byte, err error)
func (*SecurityScheme) ProtoMessage ¶
func (*SecurityScheme) ProtoMessage()
func (*SecurityScheme) ProtoReflect ¶
func (x *SecurityScheme) ProtoReflect() protoreflect.Message
func (*SecurityScheme) Reset ¶
func (x *SecurityScheme) Reset()
func (*SecurityScheme) SizeVT ¶
func (m *SecurityScheme) SizeVT() (n int)
func (*SecurityScheme) String ¶
func (x *SecurityScheme) String() string
func (*SecurityScheme) UnmarshalVT ¶
func (m *SecurityScheme) UnmarshalVT(dAtA []byte) error
func (*SecurityScheme) Validate ¶
func (m *SecurityScheme) Validate() error
Validate checks the field values on SecurityScheme with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SecurityScheme) ValidateAll ¶
func (m *SecurityScheme) ValidateAll() error
ValidateAll checks the field values on SecurityScheme with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SecuritySchemeMultiError, or nil if none found.
type SecuritySchemeMultiError ¶
type SecuritySchemeMultiError []error
SecuritySchemeMultiError is an error wrapping multiple validation errors returned by SecurityScheme.ValidateAll() if the designated constraints aren't met.
func (SecuritySchemeMultiError) AllErrors ¶
func (m SecuritySchemeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SecuritySchemeMultiError) Error ¶
func (m SecuritySchemeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SecuritySchemeValidationError ¶
type SecuritySchemeValidationError struct {
// contains filtered or unexported fields
}
SecuritySchemeValidationError is the validation error returned by SecurityScheme.Validate if the designated constraints aren't met.
func (SecuritySchemeValidationError) Cause ¶
func (e SecuritySchemeValidationError) Cause() error
Cause function returns cause value.
func (SecuritySchemeValidationError) Error ¶
func (e SecuritySchemeValidationError) Error() string
Error satisfies the builtin error interface
func (SecuritySchemeValidationError) ErrorName ¶
func (e SecuritySchemeValidationError) ErrorName() string
ErrorName returns error name.
func (SecuritySchemeValidationError) Field ¶
func (e SecuritySchemeValidationError) Field() string
Field function returns field value.
func (SecuritySchemeValidationError) Key ¶
func (e SecuritySchemeValidationError) Key() bool
Key function returns key value.
func (SecuritySchemeValidationError) Reason ¶
func (e SecuritySchemeValidationError) Reason() string
Reason function returns reason value.
type SecurityScheme_Flow ¶
type SecurityScheme_Flow int32
The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode".
const ( SecurityScheme_FLOW_INVALID SecurityScheme_Flow = 0 SecurityScheme_FLOW_IMPLICIT SecurityScheme_Flow = 1 SecurityScheme_FLOW_PASSWORD SecurityScheme_Flow = 2 SecurityScheme_FLOW_APPLICATION SecurityScheme_Flow = 3 SecurityScheme_FLOW_ACCESS_CODE SecurityScheme_Flow = 4 )
func (SecurityScheme_Flow) Descriptor ¶
func (SecurityScheme_Flow) Descriptor() protoreflect.EnumDescriptor
func (SecurityScheme_Flow) Enum ¶
func (x SecurityScheme_Flow) Enum() *SecurityScheme_Flow
func (SecurityScheme_Flow) EnumDescriptor
deprecated
func (SecurityScheme_Flow) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecurityScheme_Flow.Descriptor instead.
func (SecurityScheme_Flow) Number ¶
func (x SecurityScheme_Flow) Number() protoreflect.EnumNumber
func (SecurityScheme_Flow) String ¶
func (x SecurityScheme_Flow) String() string
func (SecurityScheme_Flow) Type ¶
func (SecurityScheme_Flow) Type() protoreflect.EnumType
type SecurityScheme_In ¶
type SecurityScheme_In int32
The location of the API key. Valid values are "query" or "header".
const ( SecurityScheme_IN_INVALID SecurityScheme_In = 0 SecurityScheme_IN_QUERY SecurityScheme_In = 1 SecurityScheme_IN_HEADER SecurityScheme_In = 2 )
func (SecurityScheme_In) Descriptor ¶
func (SecurityScheme_In) Descriptor() protoreflect.EnumDescriptor
func (SecurityScheme_In) Enum ¶
func (x SecurityScheme_In) Enum() *SecurityScheme_In
func (SecurityScheme_In) EnumDescriptor
deprecated
func (SecurityScheme_In) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecurityScheme_In.Descriptor instead.
func (SecurityScheme_In) Number ¶
func (x SecurityScheme_In) Number() protoreflect.EnumNumber
func (SecurityScheme_In) String ¶
func (x SecurityScheme_In) String() string
func (SecurityScheme_In) Type ¶
func (SecurityScheme_In) Type() protoreflect.EnumType
type SecurityScheme_Type ¶
type SecurityScheme_Type int32
The type of the security scheme. Valid values are "basic", "apiKey" or "oauth2".
const ( SecurityScheme_TYPE_INVALID SecurityScheme_Type = 0 SecurityScheme_TYPE_BASIC SecurityScheme_Type = 1 SecurityScheme_TYPE_API_KEY SecurityScheme_Type = 2 SecurityScheme_TYPE_OAUTH2 SecurityScheme_Type = 3 )
func (SecurityScheme_Type) Descriptor ¶
func (SecurityScheme_Type) Descriptor() protoreflect.EnumDescriptor
func (SecurityScheme_Type) Enum ¶
func (x SecurityScheme_Type) Enum() *SecurityScheme_Type
func (SecurityScheme_Type) EnumDescriptor
deprecated
func (SecurityScheme_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use SecurityScheme_Type.Descriptor instead.
func (SecurityScheme_Type) Number ¶
func (x SecurityScheme_Type) Number() protoreflect.EnumNumber
func (SecurityScheme_Type) String ¶
func (x SecurityScheme_Type) String() string
func (SecurityScheme_Type) Type ¶
func (SecurityScheme_Type) Type() protoreflect.EnumType
type Swagger ¶
type Swagger struct { // Specifies the OpenAPI Specification version being used. It can be // used by the OpenAPI UI and other clients to interpret the API listing. The // value MUST be "2.0". Swagger string `protobuf:"bytes,1,opt,name=swagger,proto3" json:"swagger,omitempty"` // Provides metadata about the API. The metadata can be used by the // clients if needed. Info *Info `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // The host (name or ip) serving the API. This MUST be the host only and does // not include the scheme nor sub-paths. It MAY include a port. If the host is // not included, the host serving the documentation is to be used (including // the port). The host does not support path templating. Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // The base path on which the API is served, which is relative to the host. If // it is not included, the API is served directly under the host. The value // MUST start with a leading slash (/). The basePath does not support path // templating. // Note that using `base_path` does not change the endpoint paths that are // generated in the resulting OpenAPI file. If you wish to use `base_path` // with relatively generated OpenAPI paths, the `base_path` prefix must be // manually removed from your `google.api.http` paths and your code changed to // serve the API from the `base_path`. BasePath string `protobuf:"bytes,4,opt,name=base_path,json=basePath,proto3" json:"base_path,omitempty"` // The transfer protocol of the API. Values MUST be from the list: "http", // "https", "ws", "wss". If the schemes is not included, the default scheme to // be used is the one used to access the OpenAPI definition itself. Schemes []Scheme `` /* 129-byte string literal not displayed */ // A list of MIME types the APIs can consume. This is global to all APIs but // can be overridden on specific API calls. Value MUST be as described under // Mime Types. Consumes []string `protobuf:"bytes,6,rep,name=consumes,proto3" json:"consumes,omitempty"` // A list of MIME types the APIs can produce. This is global to all APIs but // can be overridden on specific API calls. Value MUST be as described under // Mime Types. Produces []string `protobuf:"bytes,7,rep,name=produces,proto3" json:"produces,omitempty"` // An object to hold responses that can be used across operations. This // property does not define global responses for all operations. Responses map[string]*Response `` /* 160-byte string literal not displayed */ // Security scheme definitions that can be used across the specification. SecurityDefinitions *SecurityDefinitions `protobuf:"bytes,11,opt,name=security_definitions,json=securityDefinitions,proto3" json:"security_definitions,omitempty"` // A declaration of which security schemes are applied for the API as a whole. // The list of values describes alternative security schemes that can be used // (that is, there is a logical OR between the security requirements). // Individual operations can override this definition. Security []*SecurityRequirement `protobuf:"bytes,12,rep,name=security,proto3" json:"security,omitempty"` // A list of tags for API documentation control. Tags can be used for logical // grouping of operations by resources or any other qualifier. Tags []*Tag `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty"` // Additional external documentation. ExternalDocs *ExternalDocumentation `protobuf:"bytes,14,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"` // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
`Swagger` is a representation of OpenAPI v2 specification's Swagger object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#swaggerObject
Example:
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { info: { title: "Echo API"; version: "1.0"; description: ""; contact: { name: "gRPC-Gateway project"; url: "https://github.com/grpc-ecosystem/grpc-gateway"; email: "none@example.com"; }; license: { name: "BSD 3-Clause License"; url: "https://github.com/grpc-ecosystem/grpc-gateway/blob/main/LICENSE"; }; }; schemes: HTTPS; consumes: "application/json"; produces: "application/json"; };
func (*Swagger) CloneMessageVT ¶
func (*Swagger) Descriptor
deprecated
func (*Swagger) GetBasePath ¶
func (*Swagger) GetConsumes ¶
func (*Swagger) GetExternalDocs ¶
func (x *Swagger) GetExternalDocs() *ExternalDocumentation
func (*Swagger) GetProduces ¶
func (*Swagger) GetResponses ¶
func (*Swagger) GetSchemes ¶
func (*Swagger) GetSecurity ¶
func (x *Swagger) GetSecurity() []*SecurityRequirement
func (*Swagger) GetSecurityDefinitions ¶
func (x *Swagger) GetSecurityDefinitions() *SecurityDefinitions
func (*Swagger) GetSwagger ¶
func (*Swagger) MarshalToSizedBufferVT ¶
func (*Swagger) ProtoMessage ¶
func (*Swagger) ProtoMessage()
func (*Swagger) ProtoReflect ¶
func (x *Swagger) ProtoReflect() protoreflect.Message
func (*Swagger) UnmarshalVT ¶
func (*Swagger) Validate ¶
Validate checks the field values on Swagger with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Swagger) ValidateAll ¶
ValidateAll checks the field values on Swagger with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SwaggerMultiError, or nil if none found.
type SwaggerMultiError ¶
type SwaggerMultiError []error
SwaggerMultiError is an error wrapping multiple validation errors returned by Swagger.ValidateAll() if the designated constraints aren't met.
func (SwaggerMultiError) AllErrors ¶
func (m SwaggerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SwaggerMultiError) Error ¶
func (m SwaggerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SwaggerValidationError ¶
type SwaggerValidationError struct {
// contains filtered or unexported fields
}
SwaggerValidationError is the validation error returned by Swagger.Validate if the designated constraints aren't met.
func (SwaggerValidationError) Cause ¶
func (e SwaggerValidationError) Cause() error
Cause function returns cause value.
func (SwaggerValidationError) Error ¶
func (e SwaggerValidationError) Error() string
Error satisfies the builtin error interface
func (SwaggerValidationError) ErrorName ¶
func (e SwaggerValidationError) ErrorName() string
ErrorName returns error name.
func (SwaggerValidationError) Field ¶
func (e SwaggerValidationError) Field() string
Field function returns field value.
func (SwaggerValidationError) Key ¶
func (e SwaggerValidationError) Key() bool
Key function returns key value.
func (SwaggerValidationError) Reason ¶
func (e SwaggerValidationError) Reason() string
Reason function returns reason value.
type Tag ¶
type Tag struct { // The name of the tag. Use it to allow override of the name of a // global Tag object, then use that name to reference the tag throughout the // OpenAPI file. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A short description for the tag. GFM syntax can be used for rich text // representation. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Additional external documentation for this tag. ExternalDocs *ExternalDocumentation `protobuf:"bytes,3,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"` // Custom properties that start with "x-" such as "x-foo" used to describe // extra functionality that is not covered by the standard OpenAPI Specification. // See: https://swagger.io/docs/specification/2-0/swagger-extensions/ Extensions map[string]*structpb.Value `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
`Tag` is a representation of OpenAPI v2 specification's Tag object.
See: https://github.com/OAI/OpenAPI-Specification/blob/3.0.0/versions/2.0.md#tagObject
func (*Tag) CloneMessageVT ¶
func (*Tag) Descriptor
deprecated
func (*Tag) GetDescription ¶
func (*Tag) GetExternalDocs ¶
func (x *Tag) GetExternalDocs() *ExternalDocumentation
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
func (*Tag) UnmarshalVT ¶
func (*Tag) Validate ¶
Validate checks the field values on Tag with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Tag) ValidateAll ¶
ValidateAll checks the field values on Tag with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TagMultiError, or nil if none found.
type TagMultiError ¶
type TagMultiError []error
TagMultiError is an error wrapping multiple validation errors returned by Tag.ValidateAll() if the designated constraints aren't met.
func (TagMultiError) AllErrors ¶
func (m TagMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TagMultiError) Error ¶
func (m TagMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TagValidationError ¶
type TagValidationError struct {
// contains filtered or unexported fields
}
TagValidationError is the validation error returned by Tag.Validate if the designated constraints aren't met.
func (TagValidationError) Cause ¶
func (e TagValidationError) Cause() error
Cause function returns cause value.
func (TagValidationError) Error ¶
func (e TagValidationError) Error() string
Error satisfies the builtin error interface
func (TagValidationError) ErrorName ¶
func (e TagValidationError) ErrorName() string
ErrorName returns error name.
func (TagValidationError) Field ¶
func (e TagValidationError) Field() string
Field function returns field value.
func (TagValidationError) Key ¶
func (e TagValidationError) Key() bool
Key function returns key value.
func (TagValidationError) Reason ¶
func (e TagValidationError) Reason() string
Reason function returns reason value.