File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ npx cl-validate examples/v1.0.0/commons/summarize/request.json
6565** Programmatic usage**
6666```
6767import Ajv from "ajv";
68- import analyzeRequest from "@commandlayer/protocol- commons/schemas/v1.0.0/commons/analyze/requests/analyze.request.schema.json";
68+ import analyzeRequest from "@commandlayer/commons/schemas/v1.0.0/commons/analyze/requests/analyze.request.schema.json";
6969
7070const ajv = new Ajv({ strict: true });
7171const validate = ajv.compile(analyzeRequest);
@@ -77,6 +77,7 @@ const input = {
7777
7878console.log(validate(input)); // true or false
7979console.log(validate.errors); // diagnostics if invalid
80+
8081```
8182
8283## What Commons enables
@@ -409,3 +410,4 @@ CommandLayer follows a clean separation of concerns:
409410
410411
411412
413+
You can’t perform that action at this time.
0 commit comments