{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uppsala/json-schema/uppsala-one-sided-db-apiresponse-schema.json",
  "title": "OneSidedDbAPIResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uppsala-onesided-api-openapi.yml#/components/schemas/OneSidedDbAPIResponse",
  "type": "object",
  "properties": {
    "TotalCount": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "TotalPages": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "PreviousPageUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "NextPageUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "Result": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/OneSidedDb"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "OneSidedDb": {
      "type": "object",
      "properties": {
        "conflict_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "dyad_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "actor_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "coalition_components": {
          "type": [
            "string",
            "null"
          ]
        },
        "actor_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "actor_name_fulltext": {
          "type": [
            "string",
            "null"
          ]
        },
        "actor_name_mothertongue": {
          "type": [
            "string",
            "null"
          ]
        },
        "year": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "best_fatality_estimate": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "low_fatality_estimate": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "high_fatality_estimate": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "is_government_actor": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "gwno_location": {
          "type": [
            "string",
            "null"
          ]
        },
        "gwnoa": {
          "type": [
            "string",
            "null"
          ]
        },
        "region": {
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}