- SourceMeta name
- policy-base
- Base dialect
- https://json-schema.org/draft/2020-12/schema
- SourceMeta dialect
- https://json-schema.org/draft/2020-12/schema
- Bytes
- 1.972 bytes
- Bytes bundled
- 1.972 bytes
- Health
- 89%
- Dependencies
- -
Health issues
- Name
- top_level_title
- Message
- Set a concise non-empty title at the top level of the schema to explain what the definition is about
- Pointers
- Name
- top_level_description
- Message
- Set a non-empty description at the top level of the schema to explain what the definition is about in detail
- Pointers
- Name
- top_level_examples
- Message
- Set a non-empty examples array at the top level of the schema to illustrate the expected data
- Pointers
- Name
- unnecessary_allof_wrapper
- Message
- Keywords inside `allOf` that do not conflict with the parent schema can be elevated
- Pointers
- /allOf/0/if - /allOf/0/then
- Name
- unknown_keywords_prefix
- Message
- Future versions of JSON Schema will refuse to evaluate unknown keywords or custom keywords from optional vocabularies that don't have an x- prefix
- Pointers
- /allOf/0/then/properties/validTo/formatExclusiveMinimum
{
"$id": "https://schemas.don.projects.digilab.network/schemas/policy-as-code/policy-base",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": true,
"allOf": [
{
"if": {
"required": [
"validFrom",
"validTo"
]
},
"then": {
"properties": {
"validTo": {
"format": "date-time",
"formatExclusiveMinimum": {
"$data": "1/validFrom"
},
"type": "string"
}
}
}
}
],
"properties": {
"policySource": {
"description": "Source document or RFC used to derive the policy",
"format": "uri",
"type": "string"
},
"referencedAssets": {
"description": "Explicit list of assets this policy applies to",
"items": {
"type": "string"
},
"type": "array"
},
"referencedTags": {
"description": "Tags used to dynamically target assets",
"items": {
"type": "string"
},
"type": "array"
},
"schemaVersion": {
"description": "Immutable schema version identifier",
"type": "string"
},
"standardId": {
"description": "Namespaced identifier for the policy standard (e.g., ietf/hsts)",
"type": "string"
},
"upstreamPolicy": {
"description": "Reference to upstream policy for comparison or synchronization",
"format": "uri",
"type": "string"
},
"validFrom": {
"description": "Date from which the policy becomes effective",
"format": "date-time",
"type": "string"
},
"validTo": {
"description": "Date until which the policy is effective",
"format": "date-time",
"type": "string"
},
"versionId": {
"description": "Incremental version of the policy instance",
"minimum": 1,
"type": "integer"
}
},
"required": [
"standardId",
"schemaVersion",
"versionId"
],
"type": "object"
}