Add array option to adjacentCampaigns.showIfUnlocked

This commit is contained in:
Matt Lott 2016-08-23 05:42:23 -07:00
parent 3d8d0b96d3
commit 2584124017

View file

@ -42,7 +42,14 @@ _.extend CampaignSchema.properties, {
position: c.point2d()
rotation: { type: 'number', format: 'degrees' }
color: { type: 'string' }
showIfUnlocked: { type: 'string', links: [{rel: 'db', href: '/db/level/{($)}/version'}], format: 'latest-version-original-reference' }
showIfUnlocked:
oneOf: [
{ type: 'string', links: [{rel: 'db', href: '/db/level/{($)}/version'}], format: 'latest-version-original-reference' }
{
type: 'array',
items: { type: 'string', links: [{rel: 'db', href: '/db/level/{($)}/version'}], format: 'latest-version-original-reference' }
}
]
}
}}
levelsUpdated: c.date()