Closed bartvandenende-wm closed 3 weeks ago
This is great! Would you be willing to add a unit test that runs the validation steps? That way we can ensure it remains in compliance with the json schema in the future.
This is great! Would you be willing to add a unit test that runs the validation steps? That way we can ensure it remains in compliance with the json schema in the future.
I could, but that likely would require us to move the bsconfig.schema.json
into the TS src
folder for the json to be importable for the unit test, which would be a breaking change.
So vscode supports the "deprecationMessage" option, and it even shows up as deprecated in the edtior. I'm not sure we should remove that property as it provides useful error messaging in the editor. I'm sure JSON schema allows for having other properties? Or perhaps ajv-cli would have an option for ignoring that error?
I added a unit test that validates the schema using ajv
. The test also registers deprecationMessage
as a keyword so ajv won't fail validation.
Thoughts?
Summary
bsconfig.schema.json is not (strict) type valid against jsonschema draft-07 target
fixes https://github.com/rokucommunity/brighterscript/issues/1204
Details
"deprecationMessage"
attribute from "ignoreErrorCodes""type": "array"
to the "files".Validation steps
npm install -g ajv-cli
ajv compile -s bsconfig.schema.json --allow-union-types=true