Working in array schema types

This commit is contained in:
Ferdi Koomen 2020-10-15 18:28:08 +02:00
parent d3706a3985
commit edb484e141
3 changed files with 13 additions and 5 deletions

View File

@ -1,7 +1,11 @@
{
array: {
type: '{{>base}}',
{{#if link}}
arrayOf: {{>schema link}},
{{else}}
arrayOf: {
type: '{{{base}}}',
},
{{/if}}
{{#if isReadOnly}}
isReadOnly: {{{isReadOnly}}},
{{/if}}

View File

@ -1,7 +1,11 @@
{
dictionary: {
type: '{{>base}}',
{{#if link}}
dictionaryOf: {{>schema link}},
{{else}}
dictionaryOf: {
type: '{{{base}}}',
},
{{/if}}
{{#if isReadOnly}}
isReadOnly: {{{isReadOnly}}},
{{/if}}

View File

@ -1,6 +1,6 @@
{
{{#if type}}
type: '{{>base}}',
type: '{{{base}}}',
{{/if}}
{{#if isReadOnly}}
isReadOnly: {{{isReadOnly}}},