enterprise-azure-policy-as-.../Schemas/policy-documentation-schema...

217 строки
8.3 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"documentAssignments": {
"type": "object",
"properties": {
"documentAllAssignments": {
"type": "array",
"maxItems": 1,
"items": [
{
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"pacEnvironment": {
"type": "string"
},
"skipPolicyAssignments": {
"type": "array",
"minItems": 0,
"items": [
{
"type": "string"
}
]
},
"skipPolicyDefinitions": {
"type": "array",
"minItems": 0,
"items": [
{
"type": "string"
}
]
},
"overrideEnvironmentCategory": {
"type": "object",
"minItems": 0,
"properties": {
"*": {
"type": "array",
"maxItems": 0,
"items": [
{
"type": "string"
}
]
},
"required": []
}
}
},
"required": [
"enabled",
"pacEnvironment",
"title"
]
}
]
},
"documentationSpecifications": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "object",
"properties": {
"fileNameStem": {
"type": "string"
},
"environmentCategories": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "string"
}
]
},
"title": {
"type": "string"
},
"markdownAddToc": {
"type": "boolean"
},
"markdownAdoWiki": {
"type": "boolean"
},
"markdownNoEmbeddedHtml": {
"type": "boolean"
},
"markdownIncludeComplianceGroupNames": {
"type": "boolean"
},
"markdownSuppressParameterSection": {
"type": "boolean"
},
"markdownMaxParameterLength": {
"type": "integer"
}
},
"required": [
"fileNameStem",
"environmentCategories",
"title"
]
}
]
}
},
"anyOf": [
{
"required": [
"environmentCategories",
"documentationSpecifications"
]
},
{
"required": [
"documentAllAssignments",
"documentationSpecifications"
]
}
]
},
"documentPolicySets": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "object",
"properties": {
"pacEnvironment": {
"type": "string"
},
"fileNameStem": {
"type": "string"
},
"title": {
"type": "string"
},
"policySets": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "object",
"properties": {
"shortName": {
"type": "string"
},
"id": {
"type": "string"
}
},
"required": [
"shortName",
"id"
]
}
]
},
"environmentColumnsInCsv": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "string"
}
]
},
"markdownAddToc": {
"type": "boolean"
},
"markdownAdoWiki": {
"type": "boolean"
},
"markdownNoEmbeddedHtml": {
"type": "boolean"
},
"markdownIncludeComplianceGroupNames": {
"type": "boolean"
},
"markdownSuppressParameterSection": {
"type": "boolean"
},
"markdownMaxParameterLength": {
"type": "integer"
}
},
"required": [
"pacEnvironment",
"fileNameStem",
"title",
"policySets",
"environmentColumnsInCsv"
]
}
]
}
},
"anyOf": [
{
"required": [
"documentAssignments"
]
},
{
"required": [
"documentPolicySets"
]
}
]
}