add tag support

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-05-08 00:04:52 +03:00
parent 3fb4932db7
commit 02aa11ff16
12 changed files with 637 additions and 116 deletions

View File

@@ -1,16 +1,15 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// protoc-gen-go v1.26.0
// protoc v3.15.6
// source: openapiv2/openapiv2.proto
package openapiv2
import (
proto "github.com/golang/protobuf/proto"
_struct "github.com/golang/protobuf/ptypes/struct"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
structpb "google.golang.org/protobuf/types/known/structpb"
reflect "reflect"
sync "sync"
)
@@ -22,10 +21,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Scheme describes the schemes supported by the OpenAPI Swagger
// and Operation objects.
type Scheme int32
@@ -384,8 +379,8 @@ type Swagger struct {
// Individual operations can override this definition.
Security []*SecurityRequirement `protobuf:"bytes,12,rep,name=security,proto3" json:"security,omitempty"`
// Additional external documentation.
ExternalDocs *ExternalDocumentation `protobuf:"bytes,14,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"`
Extensions map[string]*_struct.Value `protobuf:"bytes,15,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
ExternalDocs *ExternalDocumentation `protobuf:"bytes,14,opt,name=external_docs,json=externalDocs,proto3" json:"external_docs,omitempty"`
Extensions map[string]*structpb.Value `protobuf:"bytes,15,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Swagger) Reset() {
@@ -497,7 +492,7 @@ func (x *Swagger) GetExternalDocs() *ExternalDocumentation {
return nil
}
func (x *Swagger) GetExtensions() map[string]*_struct.Value {
func (x *Swagger) GetExtensions() map[string]*structpb.Value {
if x != nil {
return x.Extensions
}
@@ -573,8 +568,8 @@ type Operation struct {
// (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"`
Extensions map[string]*_struct.Value `protobuf:"bytes,13,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Security []*SecurityRequirement `protobuf:"bytes,12,rep,name=security,proto3" json:"security,omitempty"`
Extensions map[string]*structpb.Value `protobuf:"bytes,13,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Operation) Reset() {
@@ -686,7 +681,7 @@ func (x *Operation) GetSecurity() []*SecurityRequirement {
return nil
}
func (x *Operation) GetExtensions() map[string]*_struct.Value {
func (x *Operation) GetExtensions() map[string]*structpb.Value {
if x != nil {
return x.Extensions
}
@@ -804,8 +799,8 @@ type Response struct {
Headers map[string]*Header `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// `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 `protobuf:"bytes,4,rep,name=examples,proto3" json:"examples,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Extensions map[string]*_struct.Value `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Examples map[string]string `protobuf:"bytes,4,rep,name=examples,proto3" json:"examples,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Extensions map[string]*structpb.Value `protobuf:"bytes,5,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Response) Reset() {
@@ -868,7 +863,7 @@ func (x *Response) GetExamples() map[string]string {
return nil
}
func (x *Response) GetExtensions() map[string]*_struct.Value {
func (x *Response) GetExtensions() map[string]*structpb.Value {
if x != nil {
return x.Extensions
}
@@ -917,8 +912,8 @@ type Info struct {
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"`
Extensions map[string]*_struct.Value `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Version string `protobuf:"bytes,6,opt,name=version,proto3" json:"version,omitempty"`
Extensions map[string]*structpb.Value `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Info) Reset() {
@@ -995,7 +990,7 @@ func (x *Info) GetVersion() string {
return ""
}
func (x *Info) GetExtensions() map[string]*_struct.Value {
func (x *Info) GetExtensions() map[string]*structpb.Value {
if x != nil {
return x.Extensions
}
@@ -1771,8 +1766,8 @@ type SecurityScheme struct {
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"`
Extensions map[string]*_struct.Value `protobuf:"bytes,9,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Scopes *Scopes `protobuf:"bytes,8,opt,name=scopes,proto3" json:"scopes,omitempty"`
Extensions map[string]*structpb.Value `protobuf:"bytes,9,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *SecurityScheme) Reset() {
@@ -1863,7 +1858,7 @@ func (x *SecurityScheme) GetScopes() *Scopes {
return nil
}
func (x *SecurityScheme) GetExtensions() map[string]*_struct.Value {
func (x *SecurityScheme) GetExtensions() map[string]*structpb.Value {
if x != nil {
return x.Extensions
}
@@ -2454,9 +2449,9 @@ var file_openapiv2_openapiv2_proto_goTypes = []interface{}{
nil, // 28: micro.openapiv2.SecurityDefinitions.SecurityEntry
nil, // 29: micro.openapiv2.SecurityScheme.ExtensionsEntry
(*SecurityRequirement_SecurityRequirementValue)(nil), // 30: micro.openapiv2.SecurityRequirement.SecurityRequirementValue
nil, // 31: micro.openapiv2.SecurityRequirement.SecurityRequirementEntry
nil, // 32: micro.openapiv2.Scopes.ScopeEntry
(*_struct.Value)(nil), // 33: google.protobuf.Value
nil, // 31: micro.openapiv2.SecurityRequirement.SecurityRequirementEntry
nil, // 32: micro.openapiv2.Scopes.ScopeEntry
(*structpb.Value)(nil), // 33: google.protobuf.Value
}
var file_openapiv2_openapiv2_proto_depIdxs = []int32{
9, // 0: micro.openapiv2.Swagger.info:type_name -> micro.openapiv2.Info