* 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 will help adding reviewers for schemas as @madskristensen may
use help from others that know specific schemas better, being either
owners, authors or maintainers of these schemas.
* Add: cache for actions/setup-node
This shortens the build time by a few seconds.
* add grunt task: 'local_count_url_in_catalog'
This will show statistic info of the catalog
haow many external URL there are
* add grunt task: 'local_check_for_test_folders_without_schema_to_be_tested'
Verify if there are schema present for each test folders
This test was intergrated with 'localSchemaFileAndTestFile' but is now seperated
* Run AJV validator before TV4 validator
The new work and testing is done in AJV schema.
A failed AJV test should fail the build ASAP
* refactor localSchemaFileAndTestFile
1) Change the parameter name.
2) new folder scanning concept
old version:
folder name -> get -> schema JSON name
new version:
schema JSON name -> get -> folder name (if present)
3)
AJV schema is only compiled one time and no longer compiled again for positive and negative test.
This reduction in compilation count will speedup the AJV part.
* Add: check for forbidden folder inside a specific test folder
* nodejs.yml: change the steps name
Create more steps to see the time used for each step.
* update from node 14 to node 16
* update package.json
Notice that the package-lock.json have a new format due to nodejs 16
* remove grunt task validate_links
undo PR #1297
Fetch github tags as versions for urls
* add travis-ci: osx_image xcode13.1
* remove folder src/utility
This utility for creating readme.md file via nodejs is not used at all.
* labeler.yml: Add ".gitignore" and ".gitattributes"
Forgot to add them on first commit
* gruntfile.js: improve error mesage at invalid json test file.
'find-duplicated-property-keys' cannot process invalid JSON file.
But the error mesage does not show which JSON file it is.
This is now fixed.
* gruntfile.js: improve folder name alignment