Skip to content

Commit 3ebd4a8

Browse files
authored
Fixed description error appearing on SOAP APIs (#1934)
1 parent 1afb427 commit 3ebd4a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/typeDefinition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export class TypeDefinitionObjectProperty extends TypeDefinitionProperty {
217217
const refName = this.getTypeNameFromRef(contract.$ref);
218218

219219
this.type = new TypeDefinitionPropertyTypeReference(refName);
220-
this.description = definitions[refName].description ?? "";
220+
this.description = definitions[refName] ? definitions[refName].description ?? "" : "";
221221
return;
222222
}
223223

0 commit comments

Comments
 (0)