Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-04/schema#", |
| 3 | "type": "object", |
| 4 | "properties": { |
| 5 | "name": { |
| 6 | "type": "string"<#if !manual>, |
| 7 | "enum": [ |
| 8 | "${nic.name}" |
| 9 | ], |
| 10 | "default": "${nic.name}" |
| 11 | </#if> |
| 12 | }, |
| 13 | "description": { |
| 14 | "type": "string" |
| 15 | }<#if !manual><#if nic.networkId??>, |
| 16 | "networkId": { |
| 17 | "type": "string", |
| 18 | "enum": [ |
| 19 | "${nic.networkId}" |
| 20 | ], |
| 21 | "default": "${nic.networkId}" |
| 22 | } |
| 23 | </#if><#else>, |
| 24 | "networkId": { |
| 25 | "type": "string", |
| 26 | "enum": [<#list networkIds as networkId> |
| 27 | "${networkId}"<#sep>,</#list> |
| 28 | ] |
| 29 | } |
| 30 | </#if> |
| 31 | }, |
| 32 | "additionalProperties": false, |
| 33 | "required": [ |
| 34 | "name" |
| 35 | ] |
| 36 | } |