Commit 1afdda3e authored by Romain Courteaud's avatar Romain Courteaud 🐙

slapos_json_rpc_api: fixup oneOf usage in the schema

parent f54568c9
......@@ -81,39 +81,25 @@
"description": "Software Instance",\n
"type": "object",\n
"additionalProperties": false,\n
"oneOf": [\n
{\n
"properties": {\n
"reference": {\n
"title": "Software Instance Id/Reference",\n
"type": "string",\n
"description": "The unique reference of the Software Instance, example: SOFTINST-1234"\n
}\n
},\n
"required": [\n
"reference"\n
]\n
},\n
{\n
"properties": {\n
"compute_node_id": {\n
"title": "Compute Node Id",\n
"type": "string",\n
"description": "Id Of the Requesting Compute Node, used by Slap Client when an instance is requesting an instance"\n
},\n
"compute_partition_id": {\n
"title": "Compute Partition Id",\n
"type": "string",\n
"description": "Id Of the Requesting Compute Partition, used by Slap Client when an instance is requesting an instance"\n
}\n
},\n
"required": [\n
"compute_node_id",\n
"compute_partition_id"\n
]\n
}\n
],\n
"properties": {\n
\n
"reference": {\n
"title": "Software Instance Id/Reference",\n
"type": "string",\n
"description": "The unique reference of the Software Instance, example: SOFTINST-1234"\n
},\n
\n
"compute_node_id": {\n
"title": "Compute Node Id",\n
"type": "string",\n
"description": "Id Of the Requesting Compute Node, used by Slap Client when an instance is requesting an instance"\n
},\n
"compute_partition_id": {\n
"title": "Compute Partition Id",\n
"type": "string",\n
"description": "Id Of the Requesting Compute Partition, used by Slap Client when an instance is requesting an instance"\n
},\n
\n
"connection_parameters": {\n
"title": "Connections Parameters",\n
"type": "object",\n
......@@ -152,6 +138,10 @@
},\n
"required": [\n
"portal_type"\n
],\n
"oneOf": [\n
{"required": ["reference"]},\n
{"required": ["compute_node_id", "compute_partition_id"]}\n
]\n
}\n
</string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment