Skip to content

Commit

Permalink
download attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgoyal0110 committed Feb 2, 2025
1 parent acf0d1f commit 5509436
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions schema/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,17 @@
"Tools"
],
"type": "string"
},
"downloads": {
"description": "Optional list of download URLs.",
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"minItems": 1,
"uniqueItems": true,
"optional": true
}
},
"required": [
Expand Down
2 changes: 2 additions & 0 deletions schema/tests/project_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def test_positive(project_schema):
("level-invalid.yaml", "2.5 is not one of [2, 3, 3.5, 4]"),
("name-empty.yaml", "'' is too short"),
("name-none.yaml", "None is not of type 'string'"),
("downloads-empty.yaml", "[] is too short"),
("downloads-invalid.yaml", "'not-a-url' is not a valid URL"),
],
)
def test_negative(project_schema, file_path, error_message):
Expand Down

0 comments on commit 5509436

Please sign in to comment.