{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://decisioq.local/schemas/recommend-parking-zone.input.schema.json",
  "title": "Recommend Parking Zone Input Payload",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "parkingOperations"
  ],
  "properties": {
    "requestContext": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "sourceSystem": {
          "type": "string"
        },
        "correlationId": {
          "type": "string"
        }
      }
    },
    "parkingOperations": {
      "type": "array",
      "minItems": 2,
      "items": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "name",
          "optionId",
          "parking"
        ],
        "properties": {
          "optionId": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "parking": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "operations": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                  "spaceAvailability": {
                    "type": "number"
                  },
                  "walkingDistance": {
                    "type": "number"
                  },
                  "customerPriority": {
                    "type": "number"
                  },
                  "occupancyPressure": {
                    "type": "number"
                  },
                  "operationalFit": {
                    "type": "number"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
