{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bund-dev/json-schema/bund-dev-arscovid-rules-schema.json",
  "title": "ARSCovidRules",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bund-dev-nina-openapi.yml#/components/schemas/ARSCovidRules",
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "level": {
      "type": "object",
      "properties": {
        "headline": {
          "type": "string"
        },
        "range": {
          "type": "string"
        },
        "backgroundColor": {
          "type": "string"
        },
        "textColor": {
          "type": "string"
        }
      }
    },
    "generalInfo": {
      "type": "string"
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "icon": {
            "type": "object",
            "properties": {
              "src": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "regulations": {
      "type": "object",
      "properties": {
        "validFromUntil": {
          "type": "string"
        },
        "sections": {
          "type": "object",
          "properties": {
            "BUND": {
              "type": "object",
              "properties": {
                "caption": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "icon": {
                  "type": "object",
                  "properties": {
                    "src": {
                      "type": "string"
                    },
                    "hash": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "LAND": {
              "type": "object",
              "properties": {
                "caption": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "validFrom": {
                  "type": "string",
                  "format": "date-time"
                },
                "validUntil": {
                  "type": "string",
                  "format": "date-time"
                },
                "icon": {
                  "type": "object",
                  "properties": {
                    "src": {
                      "type": "string"
                    },
                    "hash": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "KREIS": {
              "type": "object",
              "properties": {
                "caption": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "validFrom": {
                  "type": "string",
                  "format": "date-time"
                },
                "icon": {
                  "type": "object",
                  "properties": {
                    "src": {
                      "type": "string"
                    },
                    "hash": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "common": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "caption": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    }
  }
}