Skip to content

Commit

Permalink
fix(lib/markdownBuilder.js): use simpletitle for makeproperties
Browse files Browse the repository at this point in the history
If we don't provide a title for an object, the title of the Properties list will become "undefined
Properties". By using simpletitle we avoid this and be consistent with other titles.
  • Loading branch information
ZeroAurora committed Jan 30, 2021
1 parent 33297ab commit d2100c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/markdownBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ function build({
function makeproperties(schema, slugger) {
if (schema[keyword`properties`] || schema[keyword`patternProperties`] || schema[keyword`additionalProperties`]) {
return [
heading(1, text(i18n`${schema.title} Properties`)),
heading(1, text(i18n`${simpletitle(schema)} Properties`)),
makeproptable(
schema[keyword`properties`],
schema[keyword`patternProperties`],
Expand Down

0 comments on commit d2100c6

Please sign in to comment.