Skip to content

Commit

Permalink
Merge pull request #65 from advanced-rest-client/feat/W-15520261/asyn…
Browse files Browse the repository at this point in the history
…c-api-example-name

feat(W-15520261): show display name
  • Loading branch information
leandrogilcarrano authored Apr 22, 2024
2 parents ecbd8c5 + 6dfa4f1 commit 7576405
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ExampleGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,14 @@ export class ExampleGenerator extends AmfHelperMixin(Object) {
}
let title = /** @type {string} */ (this._getValue(
example,
this.ns.aml.vocabularies.core.name
));
this.ns.aml.vocabularies.core.displayName
))
if (!title) {
title = /** @type {string} */ (this._getValue(
example,
this.ns.aml.vocabularies.core.name
));
}
if (title && title.indexOf('example_') === 0) {
title = undefined;
}
Expand Down

0 comments on commit 7576405

Please sign in to comment.