{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/immowelt/json-schema/immowelt-pass-health-response-schema.json",
  "title": "passHealthResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immowelt-import-listings-openapi.yml#/components/schemas/passHealthResponse",
  "allOf": [
    {
      "type": "object",
      "required": [
        "status"
      ],
      "properties": {
        "status": {
          "type": "string",
          "nullable": false,
          "enum": [
            "PASS"
          ]
        }
      }
    },
    {
      "$ref": "#/$defs/components"
    }
  ],
  "$defs": {
    "component": {
      "type": "object",
      "required": [
        "status",
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "nullable": false,
          "description": "The component unique name"
        },
        "status": {
          "type": "string",
          "nullable": false,
          "enum": [
            "FAIL",
            "PASS"
          ],
          "description": "The component' status"
        }
      }
    },
    "components": {
      "type": "object",
      "required": [
        "components"
      ],
      "properties": {
        "components": {
          "type": "array",
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/pingComponent"
              },
              {
                "$ref": "#/$defs/component"
              }
            ]
          },
          "minItems": 1
        }
      }
    },
    "pingComponent": {
      "type": "object",
      "required": [
        "status",
        "name"
      ],
      "properties": {
        "name": {
          "type": "string",
          "nullable": false,
          "enum": [
            "PING"
          ],
          "description": "The component unique name"
        },
        "status": {
          "type": "string",
          "nullable": false,
          "enum": [
            "FAIL",
            "PASS"
          ],
          "description": "The ping's status"
        }
      }
    }
  }
}