schemagen

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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