Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schema ¶
type Schema struct { JSONSchema *gojsonschema.Schema // contains filtered or unexported fields }
Schema representation of properties in a JSON Schema format.
func FromTypes ¶
FromTypes builds a JSON Schema from a key with an associated type. All keys provided will be considered required types in the schema when comparing sets of attributes.
func (Schema) Export ¶
func (s Schema) Export() json.RawMessage
Export returns the json raw message.
type Type ¶
type Type int
Type represent types for an attribute schema.
func (Type) MarshalJSON ¶
MarshalJSON marshals the Schema Type into JSON format.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON unmarshal a JSON serialized type to the Schema Type
Click to show internal directories.
Click to hide internal directories.