{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/responsibleailabs-ai/json-schema/responsibleailabs-ai-post-railscore-v1-compliance-dpdp-scan-response-schema.json",
  "title": "PostRailscoreV1ComplianceDpdpScanResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/responsibleailabs-ai-openapi-generated.yml#/components/schemas/PostRailscoreV1ComplianceDpdpScanResponse",
  "type": "object",
  "properties": {
    "compliant": {
      "type": "boolean"
    },
    "content_masked": {
      "type": "string"
    },
    "pii_found": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "original": {
            "type": "string"
          },
          "masked": {
            "type": "string"
          },
          "position": {
            "type": "object",
            "properties": {
              "start": {
                "type": "integer"
              },
              "end": {
                "type": "integer"
              }
            }
          },
          "severity": {
            "type": "string"
          },
          "section": {
            "type": "string"
          },
          "penalty_crore": {
            "type": "integer"
          }
        }
      }
    },
    "child_signals": {
      "type": "array",
      "items": {}
    },
    "child_session": {
      "type": "boolean"
    },
    "child_actions_required": {
      "type": "array",
      "items": {}
    },
    "purpose_drift": {
      "type": "boolean"
    },
    "purpose_drift_details": {
      "type": "object"
    },
    "checks_run": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "latency_ms": {
      "type": "number"
    }
  }
}