response

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 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