Skip to content

reusable validator #58

@ericprud

Description

@ericprud

It's common to create a validator with a schema and test many instances against it, e.g. an ingestion validator for a web service.

- interface ShExProcessor {
-     Promise validate((USVString or RDFGraph) schema,
-                      (USVString or RDFGraph) graph,
-                      ShapeMap shapeMap,
-                      optional ShExOptions? options);
- };
+ interface ShExProcessor {
+     Validator validate((USVString or RDFGraph) schema,
+                        optional ValidatorOptions? options);
+ };
+ interface Validator {
+     Promise validate((USVString or RDFGraph) graph,
+                      ShapeMap shapeMap,
+                      optional ValidationOptions? options);
+ };

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions