Skip to content

Commit ab8310d

Browse files
committed
feat: implement basic json validation
1 parent 7e12e44 commit ab8310d

File tree

4 files changed

+27
-70
lines changed

4 files changed

+27
-70
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "velociraptor"]
2+
path = velociraptor
3+
url = git@github.com:umbopepato/velociraptor.git

package-lock.json

Lines changed: 19 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@
1717
"jsonValidation": [
1818
{
1919
"fileMatch": "velociraptor.json",
20-
"url": "url"
20+
"url": "./out/schema.json"
2121
},
2222
{
2323
"fileMatch": "scripts.json",
24-
"url": "url"
24+
"url": "./out/schema.json"
2525
}
2626
]
2727
},
2828
"scripts": {
29+
"build:jsonschema": "mkdir -p out && ts-json-schema-generator --path velociraptor/src/scripts_config.ts --type ScriptsConfiguration -o out/schema.json",
2930
"vscode:prepublish": "npm run compile",
3031
"compile": "tsc -p ./",
3132
"lint": "eslint src --ext ts",
@@ -43,8 +44,8 @@
4344
"eslint": "^6.8.0",
4445
"glob": "^7.1.6",
4546
"mocha": "^7.1.2",
47+
"ts-json-schema-generator": "^0.68.0",
4648
"typescript": "^3.8.3",
47-
"typescript-json-schema": "^0.42.0",
4849
"vscode-test": "^1.3.0"
4950
}
5051
}

velociraptor

Submodule velociraptor added at 5b687ba

0 commit comments

Comments
 (0)