{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-department-response-schema.json",
  "title": "DepartmentResponse",
  "description": "Describes the format/shape of department response objects",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-location-departments-api-openapi.yml#/components/schemas/DepartmentResponse",
  "required": [
    "name"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "created": {
      "type": "string",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "format": "date-time"
    },
    "name": {
      "type": "string",
      "format": "string"
    },
    "locations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BasicIdNamePair"
      }
    }
  },
  "type": "object",
  "$defs": {
    "BasicIdNamePair": {
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "format": "string"
        }
      },
      "type": "object"
    }
  }
}