Skip to content

Commit

Permalink
feat(W-15520261): show display name
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrogilcarrano committed Apr 22, 2024
1 parent ecbd8c5 commit 6dfa4f1
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 6dfa4f1

Please sign in to comment.