All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.v2.1.system_calendar.json Maven / Gradle / Ivy

The newest version!
{
  "$schema": "http://json-schema.org/draft-07/schema",
  "$id":
    "https://github.com/MobilityData/gbfs/blob/v2.1/gbfs.md#system_calendarjson",
  "description": "Describes the operating calendar for a system.",
  "type": "object",
  "properties": {
    "last_updated": {
      "description":
        "Last time the data in the feed was updated in POSIX time.",
      "type": "integer",
      "minimum": 1450155600
    },
    "ttl": {
      "description":
        "Number of seconds before the data in the feed will be updated again (0 if the data should always be refreshed).",
      "type": "integer",
      "minimum": 0
    },
    "version": {
      "description":
        "GBFS version number to which the feed conforms, according to the versioning framework (added in v1.1).",
      "type": "string",
      "const": "2.1"
    },
    "data": {
      "description": "Array that contains opertions calendar for the system.",
      "type": "object",
      "properties": {
        "calendars": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "start_month": {
                "description": "Starting month for the system operations.",
                "type": "integer",
                "minimum": 1,
                "maximum": 12
              },
              "start_day": {
                "description": "Starting day for the system operations.",
                "type": "integer",
                "minimum": 1,
                "maximum": 31
              },
              "start_year": {
                "description": "Starting year for the system operations.",
                "type": "integer",
                "pattern": "^\\d{4}$"
              },
              "end_month": {
                "description": "End month for the system operations.",
                "type": "integer",
                "minimum": 1,
                "maximum": 12
              },
              "end_day": {
                "description": "End day for the system operations.",
                "type": "integer",
                "minimum": 1,
                "maximum": 31
              },
              "end_year": {
                "description": "End year for the system operations.",
                "type": "integer",
                "pattern": "^\\d{4}$"
              }
            },
            "required": ["start_month", "start_day", "end_month", "end_day"]
          }
        }
      },
      "required": ["calendars"]
    }
  },
  "required": ["last_updated", "ttl", "version", "data"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy