{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/appyway/json-schema/appyway-fetch-operating-hours-by-ids-query-schema.json",
  "title": "FetchOperatingHoursByIdsQuery",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/appyway-parking-api-openapi.yml#/components/schemas/FetchOperatingHoursByIdsQuery",
  "type": "object",
  "properties": {
    "ids": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "List of Ids of entities to fetch"
    },
    "vehicleOperatorContext": {
      "$ref": "#/$defs/VehicleOperatorContext"
    },
    "date": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date for which to retrieve the operating hours provided in local format: YYYY-MM-DD (eg: 2021-01-01)."
    },
    "startDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "Start date for which to retrieve the operating hours provided in local format: YYYY-MM-DD (eg: 2021-01-01).\nDate takes precedence if set."
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "End date for which to retrieve the operating hours provided in local format: YYYY-MM-DD (eg: 2021-01-03).\nDate takes precedence if set."
    },
    "dates": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string",
        "description": "ISO-8601 date pattern"
      },
      "description": "Dates for which to retrieve the operating hours provided in local format: YYYY-MM-DD (eg: 2021-01-03).\nDate, StartDate and EndDate takes precedence if set."
    },
    "includeNotApplicableOperatingHours": {
      "type": "boolean",
      "description": "Include all operation hours requirements for contexts that do not apply to the driver making the request."
    },
    "includeApplicableOperatingHoursDetail": {
      "type": "boolean",
      "description": "Include a detail version of operation hours requirements that apply for the given context."
    },
    "includeClosedPeriods": {
      "type": "boolean",
      "description": "Include closed periods that apply for the given context."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Permit": {
      "type": "object",
      "properties": {
        "permitTypeId": {
          "type": "integer",
          "description": "The type of the permit",
          "format": "int32"
        }
      },
      "additionalProperties": false,
      "description": "A permit that can be held by a vehicle operator"
    },
    "VehicleOperatorContext": {
      "type": "object",
      "properties": {
        "vehicleTypeId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Type of vehicle being operated. See the reference API for more information.",
          "format": "int32"
        },
        "activityTypeId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Activity the operator is seeking to perform at the kerbside (parking, loading). See the reference API for more information.",
          "format": "int32"
        },
        "fuelTypeId": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Fuel type of the vehicle. See the reference API for more information.",
          "format": "int32"
        },
        "permits": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/Permit"
          },
          "description": "Any permits types held by the operator (e.g. blue disabled badge, car club permit). See the reference API for more information."
        }
      },
      "additionalProperties": false,
      "description": "A set of values that pertain to the driver looking to park (their vehicle, permits, intended activity)\nthat affect whether or not they can park and/or the price they pay if they do."
    }
  }
}