Skip to content

Commit

Permalink
remove JSON Schema validation entirely
Browse files Browse the repository at this point in the history
  <= schemas weren't up-to-date
  • Loading branch information
dslmeinte committed Nov 28, 2023
1 parent a34c2db commit 26f3ada
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
13 changes: 13 additions & 0 deletions schema-validation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh -e

# install AJV:
npm init -y
npm install ajv
npm install ajv-cli
npm install ajv-formats

# validate schema using AJV:
TS_LIONCORE_M3_SCHEMA=../repos/lionweb-typescript/packages/artifacts/schemas/lioncore_m3.serialization.schema.json
JAVA_LIONCORE_SERIALIZATION=../repos/lionweb-java/core/src/test/resources/serialization/lioncore.json
./node_modules/.bin/ajv -c ajv-formats --spec=draft2020 --strict=true --allErrors=true --allowUnionTypes=true test -s $TS_LIONCORE_M3_SCHEMA -d $JAVA_LIONCORE_SERIALIZATION --valid

11 changes: 0 additions & 11 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,3 @@

deno task run-tests

# install AJV:
npm init -y
npm install ajv
npm install ajv-cli
npm install ajv-formats

# validate schema using AJV:
TS_LIONCORE_M3_SCHEMA=../repos/lionweb-typescript/packages/artifacts/schemas/lioncore_m3.serialization.schema.json
JAVA_LIONCORE_SERIALIZATION=../repos/lionweb-java/core/src/test/resources/serialization/lioncore.json
./node_modules/.bin/ajv -c ajv-formats --spec=draft2020 --strict=true --allErrors=true --allowUnionTypes=true test -s $TS_LIONCORE_M3_SCHEMA -d $JAVA_LIONCORE_SERIALIZATION --valid

0 comments on commit 26f3ada

Please sign in to comment.