Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateJSONLD ¶ added in v0.1.9
func ValidateJSONLD(doc string, options ...ValidateOpts) error
ValidateJSONLD validates jsonld structure.
func ValidateJSONLDMap ¶ added in v0.3.1
func ValidateJSONLDMap(docMap map[string]interface{}, options ...ValidateOpts) error
ValidateJSONLDMap validates jsonld structure.
Types ¶
type ValidateOpts ¶ added in v0.1.9
type ValidateOpts func(opts *validateOpts)
ValidateOpts sets jsonld validation options.
func WithDocumentLoader ¶ added in v0.1.9
func WithDocumentLoader(jsonldDocumentLoader ld.DocumentLoader) ValidateOpts
WithDocumentLoader option is for passing custom JSON-LD document loader.
func WithExternalContext ¶ added in v0.1.9
func WithExternalContext(externalContext []string) ValidateOpts
WithExternalContext option is for definition of external context when doing JSON-LD operations.
func WithStrictContextURIPosition ¶ added in v0.1.9
func WithStrictContextURIPosition(uri string) ValidateOpts
WithStrictContextURIPosition sets strict validation of URI position within context property. The index of uri in underlying slice represents the position of given uri in @context array. Can be used for verifiable credential base context validation.
func WithStrictValidation ¶ added in v0.1.9
func WithStrictValidation(checkStructure bool) ValidateOpts
WithStrictValidation sets if strict validation should be used.
Click to show internal directories.
Click to hide internal directories.