Skip to content

Commit 1cb2f41

Browse files
committed
chore: filer regex out of enum type
1 parent 8879927 commit 1cb2f41

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/swagger/src/SchemaGenerator.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,9 @@ export abstract class SchemaGenerator<
522522
})),
523523
},
524524
},
525-
...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max),
525+
...baseItems.filter(
526+
(item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max && item.keyword !== schemaKeywords.matches,
527+
),
526528
]
527529
})
528530

@@ -551,7 +553,7 @@ export abstract class SchemaGenerator<
551553
}),
552554
},
553555
},
554-
...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max),
556+
...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max && item.keyword !== schemaKeywords.matches),
555557
]
556558
}
557559

@@ -573,7 +575,7 @@ export abstract class SchemaGenerator<
573575
})),
574576
},
575577
},
576-
...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max),
578+
...baseItems.filter((item) => item.keyword !== schemaKeywords.min && item.keyword !== schemaKeywords.max && item.keyword !== schemaKeywords.matches),
577579
]
578580
}
579581

0 commit comments

Comments
 (0)