Changelog
📦 4.1.0 - 2024-08-25
parseInputFile()
plugin hook may now conditionally return an array of Document
objectsValidationResult
object now contains a documentIndex
property.
This identifies the document when a multi-doc file has been validated.Changelog
📦 4.0.0 - 2024-08-19
Breaking: Change to the JSON output format. The results
key is now an array instead of an object.
In v8r <4, results
was an object mapping filename to result object. For example:
{
"results": {
"./package.json": {
"fileLocation": "./package.json",
"schemaLocation": "https://json.schemastore.org/package.json",
"valid": true,
"errors": [],
"code": 0
}
}
}
In v8r >=4 results
is now an array of result objects. For example:
{
"results": [
{
"fileLocation": "./package.json",
"schemaLocation": "https://json.schemastore.org/package.json",
"valid": true,
"errors": [],
"code": 0
}
]
}
Plugin system: It is now possible to extend the functionality of v8r by using or writing plugins. See https://chris48s.github.io/v8r/category/plugins/ for further information
Documentation improvements