Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Annotations ¶
type Annotations struct {
ReadOnlyHint bool `yaml:"readOnlyHint" json:"readOnlyHint"`
DestructiveHint *bool `yaml:"destructiveHint" json:"destructiveHint,omitempty"`
IdempotentHint bool `yaml:"idempotentHint" json:"idempotentHint"`
OpenWorldHint *bool `yaml:"openWorldHint" json:"openWorldHint,omitempty"`
Title string `yaml:"title" json:"title,omitempty"`
}
func (*Annotations) UnmarshalYAML ¶
func (a *Annotations) UnmarshalYAML(n *yaml.Node) error
type Document ¶
type Schema ¶
type Schema struct {
Ref string `yaml:"$ref" json:"$ref,omitempty"`
Type string `yaml:"type" json:"type,omitempty"`
Description string `yaml:"description" json:"description,omitempty"`
Required []string `yaml:"required" json:"required,omitempty"`
Properties map[string]*Schema `yaml:"properties" json:"properties,omitempty"`
Items *Schema `yaml:"items" json:"items,omitempty"`
Enum []any `yaml:"enum" json:"enum,omitempty"`
AdditionalProperties *bool `yaml:"additionalProperties" json:"additionalProperties,omitempty"`
Minimum *float64 `yaml:"minimum" json:"minimum,omitempty"`
Maximum *float64 `yaml:"maximum" json:"maximum,omitempty"`
ExclusiveMinimum *float64 `yaml:"exclusiveMinimum" json:"exclusiveMinimum,omitempty"`
ExclusiveMaximum *float64 `yaml:"exclusiveMaximum" json:"exclusiveMaximum,omitempty"`
MultipleOf *float64 `yaml:"multipleOf" json:"multipleOf,omitempty"`
MinLength *int64 `yaml:"minLength" json:"minLength,omitempty"`
MaxLength *int64 `yaml:"maxLength" json:"maxLength,omitempty"`
Pattern string `yaml:"pattern" json:"pattern,omitempty"`
MinItems *int64 `yaml:"minItems" json:"minItems,omitempty"`
MaxItems *int64 `yaml:"maxItems" json:"maxItems,omitempty"`
UniqueItems bool `yaml:"uniqueItems" json:"uniqueItems,omitempty"`
MinProperties *int64 `yaml:"minProperties" json:"minProperties,omitempty"`
MaxProperties *int64 `yaml:"maxProperties" json:"maxProperties,omitempty"`
Position *yaml.Node `yaml:"-" json:"-"`
}
Click to show internal directories.
Click to hide internal directories.