feat(json-schema-2020-12): add support for contentMediaType keyword (#8640)
Refs #8513
This commit is contained in:
@@ -292,6 +292,11 @@ export const stringifyConstraints = (schema) => {
|
||||
)
|
||||
if (objectRange !== null) constraints.push(objectRange)
|
||||
|
||||
// a Vocabulary for the Contents of String-Encoded Data
|
||||
if (schema?.contentMediaType) {
|
||||
constraints.push(`media type: ${schema.contentMediaType}`)
|
||||
}
|
||||
|
||||
return constraints
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user