{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ibm-api-connect/json-schema/ibm-api-connect-compliance-request-schema.json",
  "title": "ComplianceRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ibm-api-connect-validation-api-openapi.yml#/components/schemas/ComplianceRequest",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "tags_enabled": {
      "type": "boolean"
    },
    "tags": {
      "type": "object"
    },
    "apiUrls": {
      "type": "array",
      "items": {
        "type": "string",
        "readOnly": true
      }
    },
    "productUrls": {
      "type": "array",
      "items": {
        "type": "string",
        "readOnly": true
      }
    },
    "collectionUrl": {
      "type": "string",
      "format": "uri"
    },
    "config": {
      "$ref": "#/$defs/ConfigDefinition"
    },
    "cron": {
      "$ref": "#/$defs/CronObject"
    }
  },
  "$defs": {
    "ConfigDefinition": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "rulesets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConfigRuleset"
          }
        }
      }
    },
    "ConfigRuleset": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "rulesetName": {
          "type": "string",
          "maxLength": 255
        },
        "disabled": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "CronObject": {
      "type": "object",
      "description": "Cron configuration for scheduled scans",
      "additionalProperties": false,
      "properties": {
        "minute": {
          "type": "integer",
          "description": "Minute (0–59)"
        },
        "hour": {
          "type": "integer",
          "description": "Hour (0–23)"
        },
        "frequency": {
          "type": "string",
          "description": "Frequency (daily or specific day of week)"
        }
      },
      "required": [
        "minute",
        "hour",
        "frequency"
      ]
    }
  }
}