Skip to content

Commit

Permalink
Update program-list-schema.json
Browse files Browse the repository at this point in the history
- Removed the conditional if and then clauses related to "public_disclosure" and "disclosure_timeline_days".

- Everything else remains the same as in the original schema, enforcing requirements such as policy_url and either contact_url or contact_email.
  • Loading branch information
xalgord authored Sep 20, 2024
1 parent 5f81d1e commit 5939d91
Showing 1 changed file with 108 additions and 120 deletions.
228 changes: 108 additions & 120 deletions program-list-schema.json
Original file line number Diff line number Diff line change
@@ -1,124 +1,112 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": [
{
"type": "object",
"properties": {
"program_name": {
"type": "string"
},
"policy_url": {
"type": "string",
"format": "uri"
},
"policy_url_status": {
"type": "string",
"enum": [
"alive",
"dead"
]
},
"contact_url": {
"type": "string",
"format": "uri"
},
"contact_email": {
"type": "string",
"format": "email"
},
"launch_date": {
"anyOf": [
{
"type": "string",
"enum": [
""
]
},
{
"type": "string",
"format": "date"
}
]
},
"offers_bounty": {
"type": "string",
"enum": [
"yes",
"no",
"partial"
]
},
"offers_swag": {
"type": "boolean"
},
"hall_of_fame": {
"type": "string",
"format": "uri"
},
"safe_harbor": {
"type": "string",
"enum": [
"full",
"partial",
"none"
]
},
"public_disclosure": {
"type": "string",
"enum": [
"nda",
"discretionary",
"co-ordinated",
""
]
},
"disclosure_timeline_days": {
"type": "number",
"minimum": 0
},
"pgp_key": {
"type": "string",
"format": "uri"
},
"hiring": {
"type": "string",
"format": "uri"
},
"securitytxt_url": {
"type": "string",
"format": "uri"
},
"preferred_languages": {
"type": "string"
}
},
"if": {
"properties": {
"public_disclosure": {
"const": "co-ordinated"
"items": {
"type": "object",
"properties": {
"program_name": {
"type": "string"
},
"policy_url": {
"type": "string",
"format": "uri"
},
"policy_url_status": {
"type": "string",
"enum": [
"alive",
"dead"
]
},
"contact_url": {
"type": "string",
"format": "uri"
},
"contact_email": {
"type": "string",
"format": "email"
},
"launch_date": {
"anyOf": [
{
"type": "string",
"enum": [
""
]
},
{
"type": "string",
"format": "date"
}
}
},
"then": {
"required": ["disclosure_timeline_days"]
},
"required": [
"policy_url",
"public_disclosure"
],
"anyOf": [
{
"required": [
"contact_url"
]
},
{
"required": [
"contact_email"
]
}
]
}
]
}
]
},
"offers_bounty": {
"type": "string",
"enum": [
"yes",
"no",
"partial"
]
},
"offers_swag": {
"type": "boolean"
},
"hall_of_fame": {
"type": "string",
"format": "uri"
},
"safe_harbor": {
"type": "string",
"enum": [
"full",
"partial",
"none"
]
},
"public_disclosure": {
"type": "string",
"enum": [
"nda",
"discretionary",
"co-ordinated",
""
]
},
"disclosure_timeline_days": {
"type": "number",
"minimum": 0
},
"pgp_key": {
"type": "string",
"format": "uri"
},
"hiring": {
"type": "string",
"format": "uri"
},
"securitytxt_url": {
"type": "string",
"format": "uri"
},
"preferred_languages": {
"type": "string"
}
},
"required": [
"policy_url",
"public_disclosure"
],
"anyOf": [
{
"required": [
"contact_url"
]
},
{
"required": [
"contact_email"
]
}
]
}
}

0 comments on commit 5939d91

Please sign in to comment.