When linting https://github.com/mdn/data/blob/master/css/at-rules.json, a schema error was detected for the @property object (
):
"@property": {
"syntax": "@property <custom-property-name> {\n <declaration-list>\n}",
"status": "experimental",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/@property"
},
because it was missing the groups property per
Although the error output reports
JSON Schema – 1 error(s), the detailed error message is blank:
...
css/at-rules.json
Style – OK
JSON Schema – 1 error(s)
css/at-rules.schema.json
Style – OK
...
This seems to be a problem in the better-ajv-errors npm package.
NOTE (to self): The value of ajv.errors at
|
ajv.errors.forEach(function(error) { |
was:
[
{
keyword: 'required',
dataPath: '/@property',
schemaPath: '#/additionalProperties/required',
params: { missingProperty: 'groups' },
message: "should have required property 'groups'"
}
]
When linting https://github.com/mdn/data/blob/master/css/at-rules.json, a schema error was detected for the
@propertyobject (data/css/at-rules.json
Line 331 in 3a92ce8
because it was missing the
groupsproperty perdata/css/at-rules.schema.json
Line 39 in 3a92ce8
Although the error output reports
JSON Schema – 1 error(s), the detailed error message is blank:This seems to be a problem in the
better-ajv-errorsnpm package.NOTE (to self): The value of
ajv.errorsatdata/test/lint.js
Line 75 in 3a92ce8
[ { keyword: 'required', dataPath: '/@property', schemaPath: '#/additionalProperties/required', params: { missingProperty: 'groups' }, message: "should have required property 'groups'" } ]