Skip to content

Commit

Permalink
fix: fix typo in 'any of the following' text
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisklink committed Dec 11, 2022
1 parent c69ecad commit d7039b9
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
Expand Up @@ -12,4 +12,4 @@ Types can be many things, even nothing at all.

## string-or-number-null Type

any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
any of the following: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
2 changes: 1 addition & 1 deletion examples/docs/typearrays-properties-string-or-number.md
Expand Up @@ -12,4 +12,4 @@ Types can be many things

## string-or-number Type

any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
any of the following: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
8 changes: 4 additions & 4 deletions examples/docs/typearrays.md
Expand Up @@ -67,15 +67,15 @@ Types can be many things

* is optional

* Type: any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
* Type: any of the following: `string` or `number` ([Details](typearrays-properties-string-or-number.md))

* cannot be null

* defined in: [Type Arrays](typearrays-properties-string-or-number.md "https://example.com/schemas/typearrays#/properties/string-or-number")

### string-or-number Type

any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number.md))
any of the following: `string` or `number` ([Details](typearrays-properties-string-or-number.md))

## string-or-number-null

Expand All @@ -85,12 +85,12 @@ Types can be many things, even nothing at all.

* is optional

* Type: any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
* Type: any of the following: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))

* can be null

* defined in: [Type Arrays](typearrays-properties-string-or-number-null.md "https://example.com/schemas/typearrays#/properties/string-or-number-null")

### string-or-number-null Type

any of the folllowing: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
any of the following: `string` or `number` ([Details](typearrays-properties-string-or-number-null.md))
2 changes: 1 addition & 1 deletion lib/locales/de.json
Expand Up @@ -73,7 +73,7 @@
"and all following items may follow any schema": "und alle weiteren Bestandteile der Liste müssen keinem bestimmten Schema folgen",
"and all following items must follow the schema: ": "und alle weiteren Bestandteile der Liste müssen diesem Schema folgen: ",
"any of": "irgendeines",
"any of the folllowing: ": "irgendeines der folgenden Schemas: ",
"any of the following: ": "irgendeines der folgenden Schemas: ",
"can be null": "darf null sein",
"cannot be null": "darf nicht null sein",
"check the specification": "Spezifikation ansehen",
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en_US.json
Expand Up @@ -73,7 +73,7 @@
"and all following items may follow any schema": "and all following items may follow any schema",
"and all following items must follow the schema: ": "and all following items must follow the schema: ",
"any of": "any of",
"any of the folllowing: ": "any of the folllowing: ",
"any of the following: ": "any of the following: ",
"can be null": "can be null",
"cannot be null": "cannot be null",
"check the specification": "check the specification",
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/nl_NL.json
Expand Up @@ -73,7 +73,7 @@
"and all following items may follow any schema": "en alle volgende items kunnen elk schema volgen:",
"and all following items must follow the schema: ": "en alle volgende items moeten het schema volgen:",
"any of": "een van",
"any of the folllowing: ": "een van de volgende:",
"any of the following: ": "een van de volgende:",
"can be null": "kan null zijn",
"cannot be null": "Kan niet null zijn",
"check the specification": "controleer de specificatie",
Expand Down
2 changes: 1 addition & 1 deletion lib/markdownBuilder.js
Expand Up @@ -437,7 +437,7 @@ export default function build({
} else if (singletype && firsttype && typeof firsttype === 'string') {
return [inlineCode(firsttype + isarray)];
} else if (!singletype) {
return [text(isarray ? i18n`an array of the following:` : i18n`any of the folllowing: `), ...flist(flat(realtypes.map((mytype, index) => [inlineCode(mytype || i18n`not defined`), text(index === realtypes.length - 1 ? '' : i18n` or `)])))];
return [text(isarray ? i18n`an array of the following:` : i18n`any of the following: `), ...flist(flat(realtypes.map((mytype, index) => [inlineCode(mytype || i18n`not defined`), text(index === realtypes.length - 1 ? '' : i18n` or `)])))];
} else if (merged) {
return [text(isarray ? 'an array of merged types' : i18n`merged type`)];
}
Expand Down
2 changes: 1 addition & 1 deletion test/markdownBuilder.test.js
Expand Up @@ -253,7 +253,7 @@ describe('Testing Markdown Builder: types', () => {

it('Multiple Typed Schema looks OK', () => {
assertMarkdown(results.objectorarray)
.has('paragraph > text[value="any of the folllowing: "]');
.has('paragraph > text[value="any of the following: "]');
});

it('Undefined Schema looks OKish', () => {
Expand Down

0 comments on commit d7039b9

Please sign in to comment.