|
12 | 12 | "description": {"$ref":"common.json#/definitions/description"},
|
13 | 13 | "label": {"$ref":"common.json#/definitions/label"}
|
14 | 14 | },
|
15 |
| - "additionalProperties": false |
| 15 | + "additionalProperties": false, |
| 16 | + "x-sdk-model": "analysis-input" |
16 | 17 | },
|
17 | 18 | "analysis-input-job":{
|
18 | 19 | "type":"object",
|
|
22 | 23 | "description": {"$ref":"common.json#/definitions/description"},
|
23 | 24 | "label": {"$ref":"common.json#/definitions/label"}
|
24 | 25 | },
|
25 |
| - "additionalProperties": false |
| 26 | + "additionalProperties": false, |
| 27 | + "x-sdk-model": "analysis-input" |
26 | 28 | },
|
27 | 29 | "analysis-input-legacy":{
|
28 | 30 | "type":"object",
|
|
41 | 43 | },
|
42 | 44 | "additionalProperties": false
|
43 | 45 | },
|
44 |
| - "analysis-input": {"anyOf": [ |
45 |
| - {"$ref":"#/definitions/analysis-input-adhoc"}, |
46 |
| - {"$ref":"#/definitions/analysis-input-job"}, |
47 |
| - {"$ref":"#/definitions/analysis-input-legacy"} |
48 |
| - ]}, |
| 46 | + "analysis-input-any": { |
| 47 | + "anyOf": [ |
| 48 | + {"$ref":"#/definitions/analysis-input-adhoc"}, |
| 49 | + {"$ref":"#/definitions/analysis-input-job"}, |
| 50 | + {"$ref":"#/definitions/analysis-input-legacy"} |
| 51 | + ], |
| 52 | + "x-sdk-schema": {"$ref":"#/definitions/analysis-input-adhoc"} |
| 53 | + }, |
49 | 54 | "analysis-update":{
|
50 | 55 | "type":"object",
|
51 | 56 | "properties":{
|
|
59 | 64 | "_id":{"$ref":"common.json#/definitions/objectid"},
|
60 | 65 | "inputs":{
|
61 | 66 | "type":"array",
|
62 |
| - "items": {"$ref":"file.json#/definitions/file"} |
| 67 | + "items": {"$ref":"file.json#/definitions/file-entry"} |
63 | 68 | },
|
64 | 69 | "files":{
|
65 | 70 | "type":"array",
|
66 |
| - "items": {"$ref":"file.json#/definitions/file"} |
| 71 | + "items":{"$ref":"file.json#/definitions/file-entry"} |
67 | 72 | },
|
68 | 73 | "job":{
|
69 | 74 | "oneOf":[
|
70 | 75 | {"$ref":"common.json#/definitions/objectid"},
|
71 | 76 | {"$ref": "job.json#/definitions/job-output"}
|
72 |
| - ] |
| 77 | + ], |
| 78 | + "x-sdk-schema": { |
| 79 | + "$ref": "job.json#/definitions/job-output" |
| 80 | + } |
73 | 81 | },
|
74 | 82 | "notes": {"$ref":"note.json#/definitions/notes-list-output"},
|
75 | 83 | "description": {"$ref":"common.json#/definitions/description"},
|
76 | 84 | "label": {"$ref":"common.json#/definitions/label"},
|
77 | 85 | "created": {"$ref":"created-modified.json#/definitions/created"},
|
78 | 86 | "modified": {"$ref":"created-modified.json#/definitions/modified"}
|
79 | 87 | },
|
80 |
| - "required":["_id", "files", "label", "created", "modified"] |
| 88 | + "required":["_id", "label", "created", "modified"] |
81 | 89 | },
|
82 | 90 | "analysis-list-entry":{
|
83 | 91 | "type":"object",
|
84 | 92 | "properties":{
|
85 | 93 | "_id":{"$ref":"common.json#/definitions/objectid"},
|
| 94 | + "inputs":{ |
| 95 | + "type":"array", |
| 96 | + "items": {"$ref":"file.json#/definitions/file-entry"} |
| 97 | + }, |
86 | 98 | "files":{
|
87 | 99 | "type":"array",
|
88 |
| - "items":{"$ref":"file.json#/definitions/file"} |
| 100 | + "items":{"$ref":"file.json#/definitions/file-entry"} |
89 | 101 | },
|
90 | 102 | "job": {"$ref":"common.json#/definitions/objectid"},
|
91 | 103 | "notes": {"$ref":"note.json#/definitions/notes-list-output"},
|
|
94 | 106 | "created": {"$ref":"created-modified.json#/definitions/created"},
|
95 | 107 | "modified": {"$ref":"created-modified.json#/definitions/modified"}
|
96 | 108 | },
|
97 |
| - "required":["_id", "files", "label", "created", "modified"] |
| 109 | + "required":["_id", "label", "created", "modified"] |
98 | 110 | },
|
99 |
| - "analysis-job": { |
100 |
| - "type": "object", |
101 |
| - "properties":{ |
102 |
| - "analysis":{ |
103 |
| - "type":"object", |
104 |
| - "allOf":[{"$ref":"#/definitions/analysis-input"}], |
105 |
| - "required":["label"] |
106 |
| - }, |
107 |
| - "job":{ |
108 |
| - "type":"object", |
109 |
| - "allOf":[{"$ref":"job.json#/definitions/job-input"}] |
110 |
| - } |
111 |
| - } |
112 |
| - }, |
113 | 111 | "analysis-files-create-ticket-output": {
|
114 | 112 | "type":"object",
|
115 | 113 | "properties":{
|
|
0 commit comments