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": { |
Avi Ziv | b8e2faf | 2017-07-18 19:45:38 +0300 | [diff] [blame] | 6 | "type": "string", |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 7 | "enum": [ |
| 8 | "${nic.name}" |
| 9 | ], |
| 10 | "default": "${nic.name}" |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 11 | }, |
| 12 | "description": { |
| 13 | "type": "string" |
| 14 | }<#if !manual><#if nic.networkId??>, |
| 15 | "networkId": { |
| 16 | "type": "string", |
| 17 | "enum": [ |
| 18 | "${nic.networkId}" |
| 19 | ], |
| 20 | "default": "${nic.networkId}" |
| 21 | } |
Avi Ziv | b8e2faf | 2017-07-18 19:45:38 +0300 | [diff] [blame] | 22 | </#if> |
| 23 | <#elseif manual><#if nic.networkId??>, |
| 24 | "networkId": { |
| 25 | "type": "string", |
| 26 | "enum": [ |
| 27 | "${nic.networkId}" |
| 28 | ], |
| 29 | "default": "${nic.networkId}" |
| 30 | } |
| 31 | </#if> |
| 32 | <#else>, |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 33 | "networkId": { |
| 34 | "type": "string", |
| 35 | "enum": [<#list networkIds as networkId> |
| 36 | "${networkId}"<#sep>,</#list> |
| 37 | ] |
| 38 | } |
Avi Ziv | b8e2faf | 2017-07-18 19:45:38 +0300 | [diff] [blame] | 39 | </#if>, |
| 40 | "networkDescription": { |
| 41 | "type": "string" |
| 42 | }, |
| 43 | "networkType": { |
| 44 | "type": "string", |
| 45 | "enum": [ |
| 46 | "${nic.networkType}" |
| 47 | ], |
| 48 | "default": "${nic.networkType}" |
| 49 | } |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 50 | }, |
Avi Ziv | b8e2faf | 2017-07-18 19:45:38 +0300 | [diff] [blame] | 51 | |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 52 | "additionalProperties": false, |
| 53 | "required": [ |
| 54 | "name" |
| 55 | ] |
| 56 | } |