Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProtocGenerator ¶
func NewProtocGenerator(validationSchemaOptions *ValidationSchemaOptions) *protocGenerator
Types ¶
type GeneratorKind ¶
type GeneratorKind string
const ( Cue GeneratorKind = "cue" ProtocGenOpenAPI GeneratorKind = "protoc-gen-openapi" )
type ValidationSchemaOptions ¶
type ValidationSchemaOptions struct { // Whether to assign Enum fields the `x-kubernetes-int-or-string` property // which allows the value to either be an integer or a string // If this is false, only string values are allowed // Default: false EnumAsIntOrString bool // A list of messages (e.g. ratelimit.api.solo.io.Descriptor) whose validation schema should // not be generated MessagesWithEmptySchema []string }
Click to show internal directories.
Click to hide internal directories.