|
15 | 15 | "effective_score", |
16 | 16 | "grade", |
17 | 17 | "summary", |
| 18 | + "trust", |
18 | 19 | "categories", |
19 | 20 | "findings", |
20 | 21 | "timestamp", |
|
81 | 82 | } |
82 | 83 | } |
83 | 84 | }, |
| 85 | + "trust": { |
| 86 | + "$ref": "#/$defs/trustReport" |
| 87 | + }, |
84 | 88 | "categories": { |
85 | 89 | "type": "array", |
86 | 90 | "items": { |
|
224 | 228 | "pluginSummary": { |
225 | 229 | "type": "object", |
226 | 230 | "additionalProperties": false, |
227 | | - "required": ["name", "pluginDir", "score", "grade", "summary"], |
| 231 | + "required": ["name", "pluginDir", "score", "grade", "trust", "summary"], |
228 | 232 | "properties": { |
229 | 233 | "name": {"type": "string", "minLength": 1}, |
230 | 234 | "pluginDir": {"type": "string", "minLength": 1}, |
231 | 235 | "score": {"type": "integer", "minimum": 0, "maximum": 100}, |
232 | 236 | "grade": {"type": "string", "enum": ["A", "B", "C", "D", "F"]}, |
| 237 | + "trust": {"$ref": "#/$defs/trustReport"}, |
233 | 238 | "summary": { |
234 | 239 | "type": "object", |
235 | 240 | "additionalProperties": false, |
|
244 | 249 | } |
245 | 250 | } |
246 | 251 | }, |
| 252 | + "trustComponent": { |
| 253 | + "type": "object", |
| 254 | + "additionalProperties": false, |
| 255 | + "required": ["key", "score", "rationale", "evidence"], |
| 256 | + "properties": { |
| 257 | + "key": {"type": "string", "minLength": 1}, |
| 258 | + "score": {"type": "number", "minimum": 0, "maximum": 100}, |
| 259 | + "rationale": {"type": "string", "minLength": 1}, |
| 260 | + "evidence": { |
| 261 | + "type": "array", |
| 262 | + "items": {"type": "string"} |
| 263 | + } |
| 264 | + } |
| 265 | + }, |
| 266 | + "trustAdapter": { |
| 267 | + "type": "object", |
| 268 | + "additionalProperties": false, |
| 269 | + "required": ["id", "label", "weight", "score", "components"], |
| 270 | + "properties": { |
| 271 | + "id": {"type": "string", "minLength": 1}, |
| 272 | + "label": {"type": "string", "minLength": 1}, |
| 273 | + "weight": {"type": "number", "minimum": 0}, |
| 274 | + "score": {"type": "number", "minimum": 0, "maximum": 100}, |
| 275 | + "components": { |
| 276 | + "type": "array", |
| 277 | + "items": {"$ref": "#/$defs/trustComponent"} |
| 278 | + } |
| 279 | + } |
| 280 | + }, |
| 281 | + "trustDomain": { |
| 282 | + "type": "object", |
| 283 | + "additionalProperties": false, |
| 284 | + "required": ["domain", "label", "score", "spec", "adapters"], |
| 285 | + "properties": { |
| 286 | + "domain": {"type": "string", "minLength": 1}, |
| 287 | + "label": {"type": "string", "minLength": 1}, |
| 288 | + "score": {"type": "number", "minimum": 0, "maximum": 100}, |
| 289 | + "spec": { |
| 290 | + "type": "object", |
| 291 | + "additionalProperties": false, |
| 292 | + "required": ["id", "version", "path", "derivedFrom"], |
| 293 | + "properties": { |
| 294 | + "id": {"type": "string", "minLength": 1}, |
| 295 | + "version": {"type": "string", "minLength": 1}, |
| 296 | + "path": {"type": "string", "minLength": 1}, |
| 297 | + "derivedFrom": { |
| 298 | + "type": "array", |
| 299 | + "items": {"type": "string", "minLength": 1} |
| 300 | + } |
| 301 | + } |
| 302 | + }, |
| 303 | + "adapters": { |
| 304 | + "type": "array", |
| 305 | + "items": {"$ref": "#/$defs/trustAdapter"} |
| 306 | + } |
| 307 | + } |
| 308 | + }, |
| 309 | + "trustReport": { |
| 310 | + "type": "object", |
| 311 | + "additionalProperties": false, |
| 312 | + "required": ["total", "domains"], |
| 313 | + "properties": { |
| 314 | + "total": {"type": "number", "minimum": 0, "maximum": 100}, |
| 315 | + "domains": { |
| 316 | + "type": "array", |
| 317 | + "items": {"$ref": "#/$defs/trustDomain"} |
| 318 | + } |
| 319 | + } |
| 320 | + }, |
247 | 321 | "skippedTarget": { |
248 | 322 | "type": "object", |
249 | 323 | "additionalProperties": false, |
|
0 commit comments