diff --git a/src/core/plugins/json-schema-2020-12/fn.js b/src/core/plugins/json-schema-2020-12/fn.js index bdf158b0..1e6626e4 100644 --- a/src/core/plugins/json-schema-2020-12/fn.js +++ b/src/core/plugins/json-schema-2020-12/fn.js @@ -96,7 +96,9 @@ export const makeGetType = (fnAccessor) => { Object.hasOwn(schema, "pattern") || Object.hasOwn(schema, "format") || Object.hasOwn(schema, "minLength") || - Object.hasOwn(schema, "maxLength") + Object.hasOwn(schema, "maxLength") || + Object.hasOwn(schema, "contentEncoding") || + Object.hasOwn(schema, "contentMediaType") ) { return "string" } else if (typeof schema.const !== "undefined") {