|
31 | 31 | "type": "object",
|
32 | 32 | "properties": {
|
33 | 33 | "host": {
|
34 |
| - "type": "string" |
| 34 | + "type": "string", |
| 35 | + "description": "The host of the repository. For example, `github.com` or `gitlab.com`. If self-hosting, this will be the hostname of your instance.", |
| 36 | + "examples": [ |
| 37 | + "github.com", |
| 38 | + "gitlab.com", |
| 39 | + "github-enterprise.my-org-tld.com", |
| 40 | + "gitlab-enterprise.my-org-tld.com" |
| 41 | + ] |
35 | 42 | },
|
36 | 43 | "owner": {
|
37 |
| - "type": "string" |
| 44 | + "type": "string", |
| 45 | + "description": "The owner of the repository. For example, `my-github-org` or `my-gitlab-org/my/sub/group`.", |
| 46 | + "examples": [ |
| 47 | + "my-github-org", |
| 48 | + "my-gitlab-org/my/sub/group" |
| 49 | + ] |
38 | 50 | },
|
39 | 51 | "name": {
|
40 |
| - "type": "string" |
| 52 | + "type": "string", |
| 53 | + "description": "The name of the repository.", |
| 54 | + "examples": [ |
| 55 | + "my-repo" |
| 56 | + ] |
41 | 57 | }
|
42 | 58 | },
|
43 | 59 | "required": [
|
44 | 60 | "host",
|
45 | 61 | "owner",
|
46 | 62 | "name"
|
47 |
| - ] |
| 63 | + ], |
| 64 | + "description": "The repository to list quarantined tests for." |
48 | 65 | },
|
49 | 66 | "orgUrlSlug": {
|
50 |
| - "type": "string" |
| 67 | + "type": "string", |
| 68 | + "description": "The slug of your organization. Find this at https://app.trunk.io/trunk/settings under \"Organization Name\" > \"Slug\"", |
| 69 | + "examples": [ |
| 70 | + "my-trunk-org-slug" |
| 71 | + ] |
51 | 72 | },
|
52 | 73 | "pageQuery": {
|
53 | 74 | "type": "object",
|
54 | 75 | "properties": {
|
55 | 76 | "pageSize": {
|
56 | 77 | "type": "integer",
|
57 | 78 | "minimum": 1,
|
58 |
| - "maximum": 100 |
| 79 | + "maximum": 100, |
| 80 | + "description": "The number of tests to return per page." |
59 | 81 | },
|
60 | 82 | "pageToken": {
|
61 |
| - "type": "string" |
| 83 | + "type": "string", |
| 84 | + "description": "The page token to use for pagination. This is returned from the previous call to this endpoint. For the first page, this should be empty.", |
| 85 | + "examples": [ |
| 86 | + "" |
| 87 | + ] |
62 | 88 | }
|
63 | 89 | },
|
64 | 90 | "required": [
|
65 | 91 | "pageSize"
|
66 |
| - ] |
| 92 | + ], |
| 93 | + "description": "Pagination options for the list of quarantined tests." |
67 | 94 | }
|
68 | 95 | },
|
69 | 96 | "required": [
|
|
89 | 116 | "type": "object",
|
90 | 117 | "properties": {
|
91 | 118 | "name": {
|
92 |
| - "type": "string" |
| 119 | + "type": "string", |
| 120 | + "description": "The name of the test case." |
93 | 121 | },
|
94 | 122 | "parent": {
|
95 | 123 | "type": [
|
96 | 124 | "string",
|
97 | 125 | "null"
|
98 |
| - ] |
| 126 | + ], |
| 127 | + "description": "The parent of the test case." |
99 | 128 | },
|
100 | 129 | "file": {
|
101 | 130 | "type": [
|
102 | 131 | "string",
|
103 | 132 | "null"
|
104 |
| - ] |
| 133 | + ], |
| 134 | + "description": "The file of the test case." |
105 | 135 | },
|
106 | 136 | "class_name": {
|
107 | 137 | "type": [
|
108 | 138 | "string",
|
109 | 139 | "null"
|
110 |
| - ] |
| 140 | + ], |
| 141 | + "description": "The class name of the test case." |
111 | 142 | },
|
112 | 143 | "status": {
|
113 | 144 | "type": "string",
|
114 | 145 | "enum": [
|
115 | 146 | "HEALTHY",
|
116 | 147 | "FLAKY",
|
117 | 148 | "BROKEN"
|
118 |
| - ] |
| 149 | + ], |
| 150 | + "description": "The status of the test case." |
119 | 151 | },
|
120 | 152 | "code_owners": {
|
121 | 153 | "type": "array",
|
122 | 154 | "items": {
|
123 | 155 | "type": "string"
|
124 |
| - } |
| 156 | + }, |
| 157 | + "description": "The latest codeowners of the test case." |
125 | 158 | },
|
126 | 159 | "quarantine_setting": {
|
127 | 160 | "type": "string",
|
128 | 161 | "enum": [
|
129 | 162 | "ALWAYS_QUARANTINE",
|
130 | 163 | "AUTO_QUARANTINE"
|
131 |
| - ] |
| 164 | + ], |
| 165 | + "description": "The quarantine setting of the test case." |
132 | 166 | },
|
133 |
| - "last_updated_at": { |
| 167 | + "status_last_updated_at": { |
134 | 168 | "type": "string",
|
135 |
| - "format": "date-time" |
| 169 | + "format": "date-time", |
| 170 | + "description": "The last time the status of the test case was updated." |
136 | 171 | }
|
137 | 172 | },
|
138 | 173 | "required": [
|
|
143 | 178 | "status",
|
144 | 179 | "code_owners",
|
145 | 180 | "quarantine_setting",
|
146 |
| - "last_updated_at" |
147 |
| - ] |
148 |
| - } |
| 181 | + "status_last_updated_at" |
| 182 | + ], |
| 183 | + "description": "A quarantined test case." |
| 184 | + }, |
| 185 | + "description": "A page of quarantined test cases." |
149 | 186 | },
|
150 | 187 | "page": {
|
151 | 188 | "type": "object",
|
152 | 189 | "properties": {
|
153 | 190 | "total_rows": {
|
154 | 191 | "type": "integer",
|
155 |
| - "exclusiveMinimum": 0 |
| 192 | + "exclusiveMinimum": 0, |
| 193 | + "description": "The total number of quarantined test cases in the paginated list." |
156 | 194 | },
|
157 | 195 | "total_pages": {
|
158 | 196 | "type": "integer",
|
159 |
| - "exclusiveMinimum": 0 |
| 197 | + "exclusiveMinimum": 0, |
| 198 | + "description": "The total number of pages in the paginated list of quarantined test cases." |
160 | 199 | },
|
161 | 200 | "next_page_token": {
|
162 |
| - "type": "string" |
| 201 | + "type": "string", |
| 202 | + "description": "The next page token to use for pagination. See `pageToken` in the request for more information." |
163 | 203 | },
|
164 | 204 | "prev_page_token": {
|
165 |
| - "type": "string" |
| 205 | + "type": "string", |
| 206 | + "description": "The previous page token to use for pagination. See `pageToken` in the request for more information." |
166 | 207 | },
|
167 | 208 | "last_page_token": {
|
168 |
| - "type": "string" |
| 209 | + "type": "string", |
| 210 | + "description": "The last page token to use for pagination. See `pageToken` in the request for more information." |
169 | 211 | },
|
170 | 212 | "page_index": {
|
171 | 213 | "type": "integer",
|
172 |
| - "exclusiveMinimum": 0 |
| 214 | + "exclusiveMinimum": 0, |
| 215 | + "description": "The index of the current page in the paginated list of quarantined test cases." |
173 | 216 | }
|
174 | 217 | },
|
175 | 218 | "required": [
|
|
179 | 222 | "prev_page_token",
|
180 | 223 | "last_page_token",
|
181 | 224 | "page_index"
|
182 |
| - ] |
| 225 | + ], |
| 226 | + "description": "Pagination information for the list of quarantined test cases." |
183 | 227 | }
|
184 | 228 | },
|
185 | 229 | "required": [
|
|
199 | 243 | }
|
200 | 244 | }
|
201 | 245 | }
|
202 |
| - }, |
203 |
| - "500": { |
204 |
| - "description": "Internal server error", |
205 |
| - "content": { |
206 |
| - "application/plain-text": { |
207 |
| - "schema": { |
208 |
| - "type": "string" |
209 |
| - } |
210 |
| - } |
211 |
| - } |
212 | 246 | }
|
213 | 247 | }
|
214 | 248 | }
|
|
340 | 374 | }
|
341 | 375 | }
|
342 | 376 | }
|
343 |
| - }, |
344 |
| - "500": { |
345 |
| - "description": "Internal server error", |
346 |
| - "content": { |
347 |
| - "application/plain-text": { |
348 |
| - "schema": { |
349 |
| - "type": "string" |
350 |
| - } |
351 |
| - } |
352 |
| - } |
353 | 377 | }
|
354 | 378 | }
|
355 | 379 | }
|
|
0 commit comments