Setting the file. One moment. Report Schema · Microsoft Foundry · microsoft/azure-skills · Skills Docs(opens in a new tab)
foundry-agent/validate/references/report-schema.json
JSON·119 lines·3 KB
12
"properties"
: {
13 "reportId": {
14 "type": "string",
15 "pattern": "^[A-Za-z0-9](?:[A-Za-z0-9._-]*[A-Za-z0-9])?$"
16 },
17 "generatedAt": {
18 "type": "string",
19 "format": "date-time"
20 },
21 "target": {
22 "type": "object",
23 "required": ["serviceName", "agentRoot"],
24 "properties": {
25 "serviceName": {
26 "type": "string"
27 },
28 "agentRoot": {
29 "type": "string",
30 "description": "The unchanged agentPath resolved for the validation run; never a manifest-derived subdirectory."
31 }
32 },
33 "additionalProperties": false
34 },
35 "results": {
36 "type": "array",
37 "items": {
38 "type": "object",
39 "required": ["ruleId", "title", "level", "rationale", "status", "details", "guidance"],
40 "properties": {
41 "ruleId": {
42 "type": "string",
43 "minLength": 1
44 },
45 "title": {
46 "type": "string",
47 "minLength": 1
48 },
49 "level": {
50 "type": "string",
51 "enum": ["error", "warning", "recommendation"]
52 },
53 "rationale": {
54 "type": "string",
55 "minLength": 1,
56 "description": "Reason the rule matters, copied from the validation rule."
57 },
58 "status": {
59 "type": "string",
60 "enum": ["pass", "fail", "inconclusive", "skipped"]
61 },
62 "details": {
63 "type": "string",
64 "minLength": 1,
65 "description": "Result-specific status explanation and repository evidence."
66 },
67 "recommendedAction": {
68 "type": "string",
69 "minLength": 1,
70 "description": "Concrete action required to resolve a failed result."
71 },
72 "sourceCode": {
73 "type": "array",
74 "minItems": 1,
75 "uniqueItems": true,
76 "items": {
77 "type": "string",
78 "minLength": 1
79 },
80 "description": "Plain-text, agentPath-relative source locations using file:line or file:start-end."
81 },
82 "guidance": {
83 "type": "array",
84 "minItems": 1,
85 "items": {
86 "oneOf": [
87 {
88 "type": "string",
89 "format": "uri"
90 },
91 {
92 "type": "object",
93 "required": ["title", "link"],
94 "properties": {
95 "title": {
96 "type": "string",
97 "minLength": 1
98 },
99 "link": {
100 "type": "string",
101 "format": "uri"
102 }
103 },
104 "additionalProperties": false
105 }
106 ]
107 },
108 "description": "Guidance links as legacy URL strings or titled link objects."
109 }
110 },
111 "additionalProperties": false
112 }
113 },
114 "markdownPath": {
115 "type": "string"
116 }
117 },
118 "additionalProperties": false
119}