@@ -646,6 +646,7 @@ export interface components {
646
646
/**
647
647
* @format email
648
648
*/
649
+ /** Format: email */
649
650
email: string;
650
651
/**
651
652
* @minimum 0
@@ -663,10 +664,10 @@ export interface components {
663
664
export type $defs = Record<string, never>;
664
665
export type operations = Record<string, never>;` ,
665
666
options : {
666
- transformProperty ( property , schemaObject , options ) {
667
+ transformProperty ( property , schemaObject , _options ) {
667
668
const validationTags : string [ ] = [ ] ;
668
669
const schema = schemaObject as any ; // Cast to access validation properties
669
-
670
+
670
671
if ( schema . minLength !== undefined ) {
671
672
validationTags . push ( `@minLength ${ schema . minLength } ` ) ;
672
673
}
@@ -685,7 +686,7 @@ export type operations = Record<string, never>;`,
685
686
if ( schema . format !== undefined ) {
686
687
validationTags . push ( `@format ${ schema . format } ` ) ;
687
688
}
688
-
689
+
689
690
if ( validationTags . length > 0 ) {
690
691
// Create a new property signature
691
692
const newProperty = ts . factory . updatePropertySignature (
@@ -695,20 +696,15 @@ export type operations = Record<string, never>;`,
695
696
property . questionToken ,
696
697
property . type ,
697
698
) ;
698
-
699
+
699
700
// Add JSDoc comment using the same format as addJSDocComment
700
- const jsDocText = `*\n * ${ validationTags . join ( '\n * ' ) } \n ` ;
701
-
702
- ts . addSyntheticLeadingComment (
703
- newProperty ,
704
- ts . SyntaxKind . MultiLineCommentTrivia ,
705
- jsDocText ,
706
- true ,
707
- ) ;
708
-
701
+ const jsDocText = `*\n * ${ validationTags . join ( "\n * " ) } \n ` ;
702
+
703
+ ts . addSyntheticLeadingComment ( newProperty , ts . SyntaxKind . MultiLineCommentTrivia , jsDocText , true ) ;
704
+
709
705
return newProperty ;
710
706
}
711
-
707
+
712
708
return property ;
713
709
} ,
714
710
} ,
@@ -752,7 +748,7 @@ export interface components {
752
748
export type $defs = Record<string, never>;
753
749
export type operations = Record<string, never>;` ,
754
750
options : {
755
- transformProperty ( property , schemaObject , options ) {
751
+ transformProperty ( property , schemaObject , _options ) {
756
752
const schema = schemaObject as any ; // Cast to access validation properties
757
753
// Only transform properties with minLength, return undefined for others
758
754
if ( schema . minLength === undefined ) {
0 commit comments