-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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
Showing
1 changed file
with
108 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
] | ||
} | ||
} |