api-typescript-generator
Advanced tools
Comparing version 2.4.17 to 2.4.18
@@ -109,7 +109,7 @@ "use strict"; | ||
let jsdoc = (0, jsdoc_1.extractJsDoc)(fieldSchema); | ||
const currentProcessJsDocPath = processJsDocPath !== null && processJsDocPath !== void 0 ? processJsDocPath : []; | ||
const currentProcessJsDocPath = (processJsDocPath !== null && processJsDocPath !== void 0 ? processJsDocPath : []).concat(fieldName); | ||
if (processJsDoc) { | ||
jsdoc = processJsDoc(jsdoc, fieldSchema, currentProcessJsDocPath); | ||
} | ||
return (0, jsdoc_1.attachJsDocComment)(Object.assign((0, types_1.tsPropertySignature)(objectPropertyKey(fieldName), (0, types_1.tsTypeAnnotation)(generateSchemaType(Object.assign(Object.assign({ schema: fieldSchema }, commonSchemaGenerationOptions), { processJsDocPath: currentProcessJsDocPath.concat(fieldName) })))), { | ||
return (0, jsdoc_1.attachJsDocComment)(Object.assign((0, types_1.tsPropertySignature)(objectPropertyKey(fieldName), (0, types_1.tsTypeAnnotation)(generateSchemaType(Object.assign(Object.assign({ schema: fieldSchema }, commonSchemaGenerationOptions), { processJsDocPath: currentProcessJsDocPath })))), { | ||
optional: !requiredFieldsIndex[fieldName] | ||
@@ -116,0 +116,0 @@ }), (0, jsdoc_1.renderJsDoc)(jsdoc, jsDocRenderConfig)); |
{ | ||
"name": "api-typescript-generator", | ||
"version": "2.4.17", | ||
"version": "2.4.18", | ||
"description": "Generates OpenAPI TypeScript client. Extremely fast and flexible.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
440878