diff --git a/schema/project.json b/schema/project.json index 5c5e666ea..2c974857b 100644 --- a/schema/project.json +++ b/schema/project.json @@ -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", diff --git a/schema/tests/data/project/negative/blog-none.yaml b/schema/tests/data/project/negative/blog-none.yaml new file mode 100644 index 000000000..64ef269a4 --- /dev/null +++ b/schema/tests/data/project/negative/blog-none.yaml @@ -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 diff --git a/schema/tests/data/project/positive/optional-properties.yaml b/schema/tests/data/project/positive/optional-properties.yaml index b4c86eecf..c20d5bc58 100644 --- a/schema/tests/data/project/positive/optional-properties.yaml +++ b/schema/tests/data/project/positive/optional-properties.yaml @@ -1,4 +1,5 @@ audience: breaker +blog: https://blog.projec.com demo: https://some-demo-url.com downloads: - https://abc.com/download1 diff --git a/schema/tests/project_test.py b/schema/tests/project_test.py index 9b3bbef4a..7588f1d4f 100644 --- a/schema/tests/project_test.py +++ b/schema/tests/project_test.py @@ -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"), (