Documentation
¶
Index ¶
- func RegisterCustomType(recordType string, schemaPath string, data []byte) error
- func ResetCustomTypes()
- func ValidateAgainstSchema(data []byte, schemaPath string) error
- func ValidateCustomSchema(schemaPath string, data []byte) error
- func ValidateRecord(data []byte, recordType string) error
- type RecordType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCustomType ¶
func ResetCustomTypes ¶
func ResetCustomTypes()
func ValidateAgainstSchema ¶
func ValidateCustomSchema ¶
func ValidateRecord ¶
Types ¶
type RecordType ¶
type RecordType struct {
Name string `json:"name"`
Description string `json:"description"`
SchemaPath string `json:"schema_path"`
}
func ListRecordTypes ¶
func ListRecordTypes() []RecordType
Click to show internal directories.
Click to hide internal directories.