Commit ae31291b authored by Rafael Monnerat's avatar Rafael Monnerat

Extend base schema for software.cfg.json

  Include software-type in order to use multiple forms/schemas for
     the same software-type, like simplified or advanced.
  Include shared to include schemas for slaves.
parent 5ac41b30
...@@ -13,18 +13,22 @@ ...@@ -13,18 +13,22 @@
}, },
"serialisation": { "serialisation": {
"description": "How the parameters and results are serialised", "description": "How the parameters and results are serialised",
"required": true, "require": true,
"enum": ["xml", "json-in-xml"], "enum": ["xml", "json-in-xml"],
"type": "string" "type": "string"
}, },
"software-type": { "software-type": {
"description": "Existing software types", "description": "Existing software types",
"required": true, "require": true,
"patternProperties": { "patternProperties": {
".*": { ".*": {
"description": "Software type declaration", "description": "Software type declaration",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"title": {
"description": "A human-friendly title of the software type",
"type": "string"
},
"description": { "description": {
"description": "A human-friendly description of the software type", "description": "A human-friendly description of the software type",
"type": "string" "type": "string"
...@@ -35,18 +39,26 @@ ...@@ -35,18 +39,26 @@
"type": "string" "type": "string"
}, },
"request": { "request": {
"required": true, "require": true,
"description": "URL, relative to Software Release base path, of a json schema for values expected by instance of current software type", "description": "URL, relative to Software Release base path, of a json schema for values expected by instance of current software type",
"type": "string" "type": "string"
}, },
"response": { "response": {
"required": true, "require": true,
"description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type", "description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type",
"type": "string" "type": "string"
}, },
"software-type" : {
"description": "Value to be used as software type instead of the software type id (in order to use multiple diferent forms for the same software type).",
"type": "string"
},
"shared" : {
"description": "Define if the request will request a Slave or Software Instance.",
"type": "boolean"
},
"index": { "index": {
"description": "Value to use instead of software type id to sort them (in order to display most relevant software types earlier in a list, for example)", "description": "Value to use instead of software type id to sort them (in order to display most relevant software types earlier in a list, for example)",
"type": "any" "type": "number"
} }
}, },
"type": "object" "type": "object"
......
...@@ -48,6 +48,14 @@ ...@@ -48,6 +48,14 @@
"description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type", "description": "URL, relative to Software Release base path, of a json schema for values published by instance of current software type",
"type": "string" "type": "string"
}, },
"software-type" : {
"description": "Value to be used as software type instead of the software type id (in order to use multiple diferent forms for the same software type).",
"type": "string"
},
"shared" : {
"description": "Define if the request will request a Slave or Software Instance.",
"type": "boolean"
},
"index": { "index": {
"description": "Value to use instead of software type id to sort them (in order to display most relevant software types earlier in a list, for example)", "description": "Value to use instead of software type id to sort them (in order to display most relevant software types earlier in a list, for example)",
"type": "number" "type": "number"
......
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