Support TOML test files (#2370)

* refactor: remove many JSON.parse()

The old code use multiple times JSON.parse()

The code is now more clear that there are:
callbackParameter.rawFile
callbackParameter.jsonObj

* update the axios to get the 'arraybuffer' as download.

The old code get the default JSON object as response.

* add toml for schema test validation

* hide count for fullstrict mode if only one AJV schema is scan

The output is not correct any more

* add one toml test file

* update package.json

* update pull request template

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Gerry Ferdinandus
2022-07-23 12:46:16 +02:00
committed by GitHub
parent 040db01b68
commit 522b0fbd2a
5 changed files with 482 additions and 395 deletions

View File

@@ -5,7 +5,7 @@ Before continuing, please read the guidelines:
https://github.com/SchemaStore/schemastore/blob/master/CONTRIBUTING.md
Adding a JSON schema file to the catalog is required.
It is recommended to add tests.
Add tests files. (.json, .yml, .yaml or .toml)
Use the lowest possible schema draft needed, preferably Draft v4.
JSON formatted according to the .editorconfig settings.