Skip to content

Instantly share code, notes, and snippets.

@cre8
Last active August 18, 2025 20:12
Show Gist options
  • Select an option

  • Save cre8/f01254594f2730f94c4271d630551b32 to your computer and use it in GitHub Desktop.

Select an option

Save cre8/f01254594f2730f94c4271d630551b32 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/schemas/embedded-disclosure-policy.json",
"title": "EmbeddedDisclosurePolicy",
"type": "object",
"oneOf": [
{
"title": "AllowListPolicy",
"properties": {
"$schema": { "type": "string" },
"policy": { "const": "allowList" },
"values": {
"type": "array",
"items": { "type": "string" }
}
},
"required": ["policy", "values"],
"additionalProperties": false
},
{
"title": "RootOfTrustPolicy",
"properties": {
"$schema": { "type": "string" },
"policy": { "const": "rootOfTrust" },
"values": { "type": "string" }
},
"required": ["policy", "values"],
"additionalProperties": false
},
{
"title": "AttestationBasedPolicy",
"properties": {
"$schema": { "type": "string" },
"policy": { "const": "attestationBased" },
"values": {
"type": "array",
"items": { "$ref": "#/$defs/PolicyCredential" }
}
},
"required": ["policy", "values"],
"additionalProperties": false
},
{
"title": "NoneTrustPolicy",
"properties": {
"$schema": { "type": "string" },
"policy": { "const": "none" }
},
"required": ["policy"],
"additionalProperties": false
}
],
"$defs": {
"PolicyCredential": {
"type": "object",
"properties": {
"format": { "type": "string" },
"meta": { "type": "object", "additionalProperties": true },
"iss": { "type": "string" }
},
"required": ["format", "meta", "iss"],
"additionalProperties": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment