{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neruva-io/json-schema/neruva-io-piidetect-response-schema.json",
  "title": "PIIDetectResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neruva-io-pii-api-openapi.yml#/components/schemas/PIIDetectResponse",
  "properties": {
    "n_tags": {
      "type": "integer",
      "title": "N Tags"
    },
    "tags": {
      "items": {
        "$ref": "#/$defs/PIITagSpan"
      },
      "type": "array",
      "title": "Tags"
    }
  },
  "type": "object",
  "required": [
    "n_tags",
    "tags"
  ],
  "$defs": {
    "PIITagSpan": {
      "properties": {
        "start": {
          "type": "integer",
          "title": "Start"
        },
        "end": {
          "type": "integer",
          "title": "End"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "text": {
          "type": "string",
          "title": "Text"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end",
        "label",
        "text"
      ],
      "title": "PIITagSpan"
    }
  }
}