{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cuebiq/main/json-schema/cuebiq-post-geoset-request-body-raw-schema.json",
  "title": "PostGeosetRequestBodyRaw",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cuebiq-openapi.json#/components/schemas/PostGeosetRequestBodyRaw",
  "required": [
    "name",
    "placesFileLocation",
    "placeRadiusMeters",
    "placeDwellTimeMinutes",
    "placeOpeningHours"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 64,
      "minLength": 3,
      "pattern": "\\S",
      "type": [
        "string",
        "null"
      ]
    },
    "externalRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "placesFileLocation": {
      "pattern": "\\S",
      "type": [
        "string",
        "null"
      ]
    },
    "placeRadiusMeters": {
      "format": "double",
      "minimum": 0,
      "exclusiveMinimum": true,
      "type": [
        "number",
        "null"
      ]
    },
    "placeDwellTimeMinutes": {
      "allOf": [
        {
          "$ref": "#/$defs/PlaceDwellTimeMinutesRaw"
        }
      ],
      "nullable": true
    },
    "placeOpeningHours": {
      "allOf": [
        {
          "$ref": "#/$defs/PlaceOpeningHoursRaw"
        }
      ],
      "nullable": true
    }
  },
  "$defs": {
    "LocalTime": {
      "format": "local-time",
      "type": "string"
    },
    "PlaceDwellTimeMinutesRaw": {
      "required": [
        "first",
        "second"
      ],
      "type": "object",
      "properties": {
        "first": {
          "format": "int32",
          "minimum": 0,
          "exclusiveMinimum": true,
          "type": [
            "integer",
            "null"
          ]
        },
        "second": {
          "format": "int32",
          "minimum": 0,
          "exclusiveMinimum": true,
          "type": [
            "integer",
            "null"
          ]
        }
      }
    },
    "PlaceOpeningHoursRangeRaw": {
      "required": [
        "from",
        "to"
      ],
      "type": "object",
      "properties": {
        "from": {
          "allOf": [
            {
              "$ref": "#/$defs/LocalTime"
            }
          ],
          "nullable": true
        },
        "to": {
          "allOf": [
            {
              "$ref": "#/$defs/LocalTime"
            }
          ],
          "nullable": true
        }
      }
    },
    "PlaceOpeningHoursRaw": {
      "required": [
        "mon",
        "tue",
        "wed",
        "thu",
        "fri",
        "sat",
        "sun"
      ],
      "type": "object",
      "properties": {
        "mon": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        },
        "tue": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        },
        "wed": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        },
        "thu": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        },
        "fri": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        },
        "sat": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        },
        "sun": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/PlaceOpeningHoursRangeRaw"
          }
        }
      }
    }
  }
}