Skip to content

Commit 97f8204

Browse files
committed
Backwards compatible fix for array and dictionary schemas
1 parent edb484e commit 97f8204

File tree

3 files changed

+150
-64
lines changed

3 files changed

+150
-64
lines changed

src/templates/partials/schemaArray.hbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2+
type: 'array',
23
{{#if link}}
3-
arrayOf: {{>schema link}},
4+
contains: {{>schema link}},
45
{{else}}
5-
arrayOf: {
6+
contains: {
67
type: '{{{base}}}',
78
},
89
{{/if}}

src/templates/partials/schemaDictionary.hbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2+
type: 'dictionary',
23
{{#if link}}
3-
dictionaryOf: {{>schema link}},
4+
contains: {{>schema link}},
45
{{else}}
5-
dictionaryOf: {
6+
contains: {
67
type: '{{{base}}}',
78
},
89
{{/if}}

0 commit comments

Comments
 (0)