Skip to content

Commit 0d6b423

Browse files
authored
Update README.md
1 parent b33518e commit 0d6b423

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ npx cl-validate examples/v1.0.0/commons/summarize/request.json
6565
**Programmatic usage**
6666
```
6767
import 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
7070
const ajv = new Ajv({ strict: true });
7171
const validate = ajv.compile(analyzeRequest);
@@ -77,6 +77,7 @@ const input = {
7777
7878
console.log(validate(input)); // true or false
7979
console.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+

0 commit comments

Comments
 (0)