Add Policy DSL Validator, Schema Exporter, and Simulation Smoke tools
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
- Implemented PolicyDslValidator with command-line options for strict mode and JSON output. - Created PolicySchemaExporter to generate JSON schemas for policy-related models. - Developed PolicySimulationSmoke tool to validate policy simulations against expected outcomes. - Added project files and necessary dependencies for each tool. - Ensured proper error handling and usage instructions across tools.
This commit is contained in:
71
docs/schemas/policy-diff-summary.schema.json
Normal file
71
docs/schemas/policy-diff-summary.schema.json
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "PolicyDiffSummary",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"SchemaVersion": {
|
||||
"type": "string"
|
||||
},
|
||||
"Added": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"Removed": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"Unchanged": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"BySeverity": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"$ref": "#/definitions/PolicyDiffSeverityDelta"
|
||||
}
|
||||
},
|
||||
"RuleHits": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/PolicyDiffRuleDelta"
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"PolicyDiffSeverityDelta": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"Up": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"Down": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
"PolicyDiffRuleDelta": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"RuleId": {
|
||||
"type": "string"
|
||||
},
|
||||
"RuleName": {
|
||||
"type": "string"
|
||||
},
|
||||
"Up": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"Down": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user