We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5026c37 commit 0265a9aCopy full SHA for 0265a9a
1 file changed
src/utils/openapi.ts
@@ -491,6 +491,19 @@ export function humanizeConstraints(schema: OpenAPISchema): string[] {
491
res.push(stringRange);
492
}
493
494
+ if (
495
+ !schema.format &&
496
+ !schema['x-file-only'] &&
497
+ (isArray(schema.type) ? schema.type.includes('string') : schema.type === 'string')
498
+ ) {
499
+ if (schema['x-no-tags']) {
500
+ res.push('no tags');
501
+ }
502
+ if (!schema['x-allow-entities'] && !schema['x-no-tags']) {
503
+ res.push('no entities');
504
505
506
+
507
const arrayRange = humanizeRangeConstraint('items', schema.minItems, schema.maxItems);
508
if (arrayRange !== undefined) {
509
res.push(arrayRange);
0 commit comments