Skip to content

Commit 909df64

Browse files
authored
Fix schema (#46)
Fix schema properties: vtScanUrl submissionTime reviewUrl Add scan results schema property for nvaccess/addon-datastore#6411
1 parent ba4b75e commit 909df64

File tree

1 file changed

+44
-30
lines changed

1 file changed

+44
-30
lines changed

_validate/addonVersion_schema.json

Lines changed: 44 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -255,37 +255,51 @@
255255
"type": "array",
256256
"items": {
257257
"$ref": "#/$defs/translation"
258-
},
259-
"reviewUrl": {
260-
"$id": "#/properties/reviewUrl",
261-
"default": "",
262-
"description": "A URL to the discussion comment to review the add-on version.",
263-
"examples": [
264-
"https://github.com/nvaccess/addon-datastore/discussions/1942#discussioncomment-7453248"
265-
],
266-
"title": "Discussion comment URL",
267-
"type": "string"
268-
},
269-
"submissionTime": {
270-
"$id": "#/properties/submissionTime",
271-
"default": 0,
272-
"description": "Timestamp in milliseconds, corresponding to the submission time of the add-on",
273-
"examples": [
274-
1723523492363
275-
],
276-
"title": "Submission time",
277-
"type": "number"
278-
},
279-
"vtScanUrl": {
280-
"$id": "#/properties/vtScanUrl",
281-
"default": "",
282-
"description": "A URL to the Virus Total scan for the add-on version.",
283-
"examples": [
284-
"https://www.virustotal.com/gui/file/3fda88d598e9747b2dfadfdfb8930a737c0049e9782392bffcd59ef668821547"
285-
],
286-
"title": "VirusTotal scan URL",
287-
"type": "string"
288258
}
259+
},
260+
"reviewUrl": {
261+
"$id": "#/properties/reviewUrl",
262+
"default": "",
263+
"description": "A URL to the discussion comment to review the add-on version.",
264+
"examples": [
265+
"https://github.com/nvaccess/addon-datastore/discussions/1942#discussioncomment-7453248"
266+
],
267+
"title": "Discussion comment URL",
268+
"type": "string"
269+
},
270+
"submissionTime": {
271+
"$id": "#/properties/submissionTime",
272+
"default": 0,
273+
"description": "Timestamp in milliseconds, corresponding to the submission time of the add-on",
274+
"examples": [
275+
1723523492363
276+
],
277+
"title": "Submission time",
278+
"type": "number"
279+
},
280+
"vtScanUrl": {
281+
"$id": "#/properties/vtScanUrl",
282+
"default": "",
283+
"description": "A URL to the Virus Total scan for the add-on version.",
284+
"examples": [
285+
"https://www.virustotal.com/gui/file/3fda88d598e9747b2dfadfdfb8930a737c0049e9782392bffcd59ef668821547"
286+
],
287+
"title": "VirusTotal scan URL",
288+
"type": "string"
289+
},
290+
"scanResults": {
291+
"$id": "#/properties/scanResults",
292+
"default": {},
293+
"description": "Results from dynamic and static code scanning.",
294+
"examples": [
295+
{
296+
"virusTotal": {},
297+
"codeQL-warnings": {},
298+
"codeQL-errors": {}
299+
}
300+
],
301+
"title": "Scan results",
302+
"type": "object"
289303
}
290304
},
291305
"$defs": {

0 commit comments

Comments
 (0)