File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export function generateSchemaType({
199199 tsTypeLiteral (
200200 Object . entries ( schema . properties ) . map ( ( [ fieldName , fieldSchema ] ) => {
201201 let jsdoc = extractJsDoc ( fieldSchema ) ;
202- const currentProcessJsDocPath = processJsDocPath ?? [ ] ;
202+ const currentProcessJsDocPath = ( processJsDocPath ?? [ ] ) . concat ( fieldName ) ;
203203 if ( processJsDoc ) {
204204 jsdoc = processJsDoc ( jsdoc , fieldSchema , currentProcessJsDocPath ) ;
205205 }
@@ -211,7 +211,7 @@ export function generateSchemaType({
211211 generateSchemaType ( {
212212 schema : fieldSchema ,
213213 ...commonSchemaGenerationOptions ,
214- processJsDocPath : currentProcessJsDocPath . concat ( fieldName )
214+ processJsDocPath : currentProcessJsDocPath
215215 } )
216216 )
217217 ) ,
You can’t perform that action at this time.
0 commit comments