diff --git a/src/core/plugins/json-schema-2020-12/fn.js b/src/core/plugins/json-schema-2020-12/fn.js index 8337cec44e3..398e2d7ae21 100644 --- a/src/core/plugins/json-schema-2020-12/fn.js +++ b/src/core/plugins/json-schema-2020-12/fn.js @@ -117,7 +117,15 @@ export const getType = (schema, processedSchemas = new WeakSet()) => { ? type.map((t) => (t === "array" ? getArrayType() : t)).join(" | ") : type === "array" ? getArrayType() - : ["null", "boolean", "object", "array", "number", "string"].includes(type) + : [ + "null", + "boolean", + "object", + "array", + "number", + "integer", + "string", + ].includes(type) ? type : inferType()