{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-test-labs/json-schema/azure-test-labs-evaluate-policies-response-schema.json",
  "title": "EvaluatePoliciesResponse",
  "description": "Response body for evaluating a policy set.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-test-labs-policy-sets-api-openapi.yml#/components/schemas/EvaluatePoliciesResponse",
  "properties": {
    "results": {
      "description": "Results of evaluating a policy set.",
      "items": {
        "$ref": "#/$defs/PolicySetResult"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "PolicySetResult": {
      "description": "Result of a policy set evaluation.",
      "properties": {
        "hasError": {
          "description": "A value indicating whether this policy set evaluation has discovered violations.",
          "type": "boolean"
        },
        "policyViolations": {
          "description": "The list of policy violations.",
          "items": {
            "$ref": "#/$defs/PolicyViolation"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "PolicyViolation": {
      "description": "Policy violation.",
      "properties": {
        "code": {
          "description": "The code of the policy violation.",
          "type": "string"
        },
        "message": {
          "description": "The message of the policy violation.",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}