mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Add array option to adjacentCampaigns.showIfUnlocked
This commit is contained in:
parent
3d8d0b96d3
commit
2584124017
1 changed files with 8 additions and 1 deletions
|
@ -42,7 +42,14 @@ _.extend CampaignSchema.properties, {
|
||||||
position: c.point2d()
|
position: c.point2d()
|
||||||
rotation: { type: 'number', format: 'degrees' }
|
rotation: { type: 'number', format: 'degrees' }
|
||||||
color: { type: 'string' }
|
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()
|
levelsUpdated: c.date()
|
||||||
|
|
Loading…
Reference in a new issue