|
95 | 95 | } |
96 | 96 | } |
97 | 97 | ] |
| 98 | + }, |
| 99 | + "dataModelSimple": { |
| 100 | + "title": "\"dataModel\" Parameter (restricted for use in dataModelTable)", |
| 101 | + "type": "object", |
| 102 | + "properties": { |
| 103 | + "type": { "type": "string", "const": "dataModel" }, |
| 104 | + "reference": { "type": "string" } |
| 105 | + }, |
| 106 | + "required": ["type", "reference"], |
| 107 | + "additionalProperties": false |
| 108 | + }, |
| 109 | + "dataModelTable": { |
| 110 | + "title": "\"dataModelTable\" Parameter", |
| 111 | + "type": "object", |
| 112 | + "properties": { |
| 113 | + "type": { "type": "string", "const": "dataModelTable" }, |
| 114 | + "reference": { |
| 115 | + "type": "string", |
| 116 | + "pattern": ".*\\.$", |
| 117 | + "description": "Reference must end with a dot '.'" |
| 118 | + }, |
| 119 | + "index": { |
| 120 | + "type": "string", |
| 121 | + "pattern": "^(\\d+(-\\d+)?)(,(\\d+(-\\d+)?))*$", |
| 122 | + "description": "Comma separated numbers, ranges (e.g. 1-4), or combinations (e.g. 1,2,5-7)." |
| 123 | + }, |
| 124 | + "Parameter": { |
| 125 | + "type": "array", |
| 126 | + "items": { |
| 127 | + "oneOf": [ |
| 128 | + { "$ref": "#/definitions/parmDefinitions/properties/dataModelSimple" }, |
| 129 | + { "$ref": "#/definitions/parmDefinitions/properties/dataModelTable" } |
| 130 | + ] |
| 131 | + } |
| 132 | + } |
| 133 | + }, |
| 134 | + "required": ["type", "reference", "Parameter"], |
| 135 | + "additionalProperties": false |
98 | 136 | } |
99 | 137 | } |
100 | 138 | }, |
|
234 | 272 | "oneOf": [ |
235 | 273 | { "$ref": "#/definitions/parmDefinitions/properties/grep", "title": "grep" }, |
236 | 274 | { "$ref": "#/definitions/parmDefinitions/properties/event", "title": "event" }, |
237 | | - { "$ref": "#/definitions/parmDefinitions/properties/dataModel", "title": "dataModel" } |
| 275 | + { "$ref": "#/definitions/parmDefinitions/properties/dataModel", "title": "dataModel" }, |
| 276 | + { "$ref": "#/definitions/parmDefinitions/properties/dataModelTable", "title": "dataModelTable" } |
238 | 277 | ] |
239 | 278 | }, |
240 | 279 | "description": "An array of objects which defines the data to be included in the generated report. Each object defines the type of data, the source of the data and an optional name to be used as the name (marker) for this data in the generated report. " |
|
0 commit comments