Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Property ¶
type Property struct {
Type string `json:"type,omitempty"`
Description string `json:"description,omitempty"`
Enum []any `json:"enum,omitempty"`
Properties map[string]Property `json:"properties,omitempty"`
Items *Property `json:"items,omitempty"`
}
Property represents a single JSON Schema property definition.
type Schema ¶
type Schema struct {
Type string `json:"type,omitempty"`
Description string `json:"description,omitempty"`
Properties map[string]Property `json:"properties,omitempty"`
Required []string `json:"required,omitempty"`
Items *Property `json:"items,omitempty"`
}
Schema is a minimal JSON Schema (draft-07 compatible) used throughout ToolTrust Scanner.
func (Schema) HasProperty ¶
HasProperty reports whether the schema contains a property with the given name.
func (Schema) PropertyNames ¶
PropertyNames returns the sorted list of property keys defined in the schema.
Click to show internal directories.
Click to hide internal directories.