Leads into a question about how to represent schema'ed arrays that have a non-empty default value:
var moo = {
rad: {
type:'array',
schema: {
title: {type:'string', default:'sweet'}
},
// See what I'm trying to do here? I want a single element in the array as a default.
default: [ {} ]
}
};
// Expect createFrom to output:
// { rad: [ {title: 'sweet'} ] }
Probably relates back to #18 (should createFrom become a flag on .format())
What you'd expect is:
Leads into a question about how to represent schema'ed arrays that have a non-empty default value:
Probably relates back to #18 (should createFrom become a flag on
.format()
)