We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f495cb4 commit 8bc6074Copy full SHA for 8bc6074
1 file changed
src/utils/schema-utils.js
@@ -21,7 +21,7 @@ export function getTypeInfo(parameter, options = { includeNulls: false, enableEx
21
dataType = `{recursive: ${schema.circularReference.name}} `;
22
} else if (schema.type || schema.const) {
23
if (!schema.type && schema.const) {
24
- schema.type = "const";
+ schema.type = 'const';
25
}
26
const arraySchema = Array.isArray(schema.type) ? schema.type : (typeof schema.type === 'string' ? schema.type.split('┃') : schema.type);
27
dataType = Array.isArray(arraySchema) ? arraySchema.filter((s) => s !== 'null' || options.includeNulls).join('┃') : schema.type;
0 commit comments