Help us shape the future of Go! Take the 2026 Go Developer Survey

response

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaEntry

type SchemaEntry struct {
	Name       string        `yaml:"name"`     // Name is the name of the field
	Type       string        `yaml:"type"`     // Type is the type of the field
	Minimum    interface{}   `yaml:"min"`      // Minimum is the minimum allowed value of the field
	Maximum    interface{}   `yaml:"max"`      // Maximum is the maximum allowed value of the field
	IsRequired bool          `yaml:"required"` // Required is true if the field is required (not null or not empty in case of an array)
	Fields     []SchemaEntry `yaml:"fields"`   // Fields describe the children of this field if the field is an object or array
}

SchemaEntry is a field definition of the response

Jump to

Keyboard shortcuts

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