Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add blog to project schema #745

Merged
merged 7 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions schema/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@
],
"type": "string"
},
"blog": {
"description": "Project's blog.",
"format": "uri",
"type": ["string"]
},
"demo": {
"description": "Optional URL to the project demo.",
"format": "uri",
Expand Down
16 changes: 16 additions & 0 deletions schema/tests/data/project/negative/blog-none.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
audience: breaker
blog:
leaders:
- github: leader-1-github
name: Leader 1 Name
- github: leader-2-github
name: Leader 2 Name
level: 2
name: OWASP Incubator Code Project
pitch: A very brief, one-line description of your project

tags:
- example-tag-1
- example-tag-2
- example-tag-3
type: code
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
audience: breaker
blog: https://blog.projec.com
demo: https://some-demo-url.com
downloads:
- https://abc.com/download1
Expand Down
1 change: 1 addition & 0 deletions schema/tests/project_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def test_positive(project_schema):
),
("audience-empty.yaml", "'' is not one of ['breaker', 'builder', 'defender']"),
("audience-missing.yaml", "'audience' is a required property"),
("blog-none.yaml", "None is not of type 'string'"),
("demo-none.yaml", "None is not of type 'string'"),
("downloads-empty.yaml", "[] should be non-empty"),
(
Expand Down