fix: regression - broken urls for operations without operationId

This commit is contained in:
Roman Hotsiy 2018-07-14 18:16:31 +03:00
parent 9f0252e12e
commit c0c44bc4fe
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -68,8 +68,8 @@ export class OperationModel implements IMenuItem {
this.id =
operationSpec.operationId !== undefined
? 'operation/' + operationSpec.operationId
: this.parent !== undefined
? this.parent.id + operationSpec._$ref
: parent !== undefined
? parent.id + operationSpec._$ref
: operationSpec._$ref;
this.name = getOperationSummary(operationSpec);