Documentation
¶
Index ¶
- Constants
- func ValidateJSON(schemaPath string, data []byte) error
- func ValidateJSONFile(schemaPath, jsonPath string) error
- func ValidateJSONL(schemaPath string, data []byte) error
- func ValidateJSONLFile(schemaPath, jsonlPath string) error
- type RecordTypeDefinition
- type RecordTypeManifest
- type Registry
Constants ¶
View Source
const ( RecordTypeManifestVersion = coreschema.RecordTypeManifestVersion RecordTypeManifestPath = coreschema.RecordTypeManifestPath )
Variables ¶
This section is empty.
Functions ¶
func ValidateJSON ¶
ValidateJSON validates JSON bytes against a JSON schema file.
func ValidateJSONFile ¶
ValidateJSONFile validates a JSON file against a JSON schema file.
func ValidateJSONL ¶
ValidateJSONL validates each non-empty JSONL line against a schema.
func ValidateJSONLFile ¶
ValidateJSONLFile validates each non-empty line in a JSONL file against a schema.
Types ¶
type RecordTypeDefinition ¶ added in v0.6.0
type RecordTypeDefinition = coreschema.RecordTypeDefinition
Portable custom record type APIs are re-exported from the compatibility schema package for callers that historically imported proof/schema.
type RecordTypeManifest ¶ added in v0.6.0
type RecordTypeManifest = coreschema.RecordTypeManifest
func ParseRecordTypeManifest ¶ added in v0.6.0
func ParseRecordTypeManifest(raw []byte) (RecordTypeManifest, error)
type Registry ¶ added in v0.6.0
type Registry = coreschema.Registry
func LoadRecordTypeManifest ¶ added in v0.6.0
func LoadRecordTypeManifestWithResources ¶ added in v0.6.0
func NewRegistry ¶ added in v0.6.0
func NewRegistry() *Registry
func NewScopedRegistry ¶ added in v0.6.0
func NewScopedRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.