You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the challenge is encouraging completeness while still allowing rules to have any valid schema / options format.
There's also strict mode in ajv that is related and that we could take ideas from to enforce. If ESLint ever upgraded ajv, like in the declined ajv v8 upgrade PR, it's worth considering enabling strict mode.
There are also a few other linters targeting JSON Schema:
or named
require-meta-schema-completeness
.This could also potentially be part of eslint-plugin/require-meta-schema but that's probably too much in one rule.
This rule would check for common useless / no-op schemas as discussed in eslint/rfcs#85 (comment) such as:
{}
{ type: "array" }
And ensure:
additionalProperties: false
to ensure all properties are includeduniqueItems: true
for arraysminItems: 1
for arraysBut the challenge is encouraging completeness while still allowing rules to have any valid schema / options format.
There's also strict mode in ajv that is related and that we could take ideas from to enforce. If ESLint ever upgraded ajv, like in the declined ajv v8 upgrade PR, it's worth considering enabling strict mode.
There are also a few other linters targeting JSON Schema:
The text was updated successfully, but these errors were encountered: