feat(json-schema-2020-12): add support for min/maxProperties keywords (#8627)
Refs #8513
This commit is contained in:
@@ -284,5 +284,13 @@ export const stringifyConstraints = (schema) => {
|
|||||||
)
|
)
|
||||||
if (containsRange !== null) constraints.push(containsRange)
|
if (containsRange !== null) constraints.push(containsRange)
|
||||||
|
|
||||||
|
// validation Keywords for Objects
|
||||||
|
const objectRange = stringifyConstraintRange(
|
||||||
|
"properties",
|
||||||
|
schema?.minProperties,
|
||||||
|
schema?.maxProperties
|
||||||
|
)
|
||||||
|
if (objectRange !== null) constraints.push(objectRange)
|
||||||
|
|
||||||
return constraints
|
return constraints
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user