Skip to content

A platform for community discussion. Free, open, simple.

4.0 KB
Raw Blame
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "events": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer"
          },
          "category_id": {
            "type": [
              "integer",
              "null"
            ]
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "recurrence": {
            "type": [
              "string",
              "null"
            ]
          },
          "recurrence_until": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "starts_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "ends_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "rrule": {
            "type": "string"
          },
          "show_local_time": {
            "type": "boolean"
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration": {
            "type": "string",
            "pattern": "^\\d{2}:\\d{2}:\\d{2}$"
          },
          "all_day": {
            "type": "boolean"
          },
          "custom_fields": {
            "type": ["object", "null"]
          },
          "post": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "integer"
              },
              "post_number": {
                "type": "integer"
              },
              "url": {
                "type": "string"
              },
              "category_slug": {
                "type": "string"
              },
              "topic": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "integer"
                  },
                  "title": {
                    "type": "string"
                  },
                  "tags": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "tags_descriptions": {
                    "type": "object"
                  },
                  "slug": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "title",
                  "tags",
                  "tags_descriptions",
                  "slug"
                ]
              }
            },
            "required": [
              "id",
              "post_number",
              "url",
              "category_slug",
              "topic"
            ]
          },
          "occurrences": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "starts_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "ends_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "starts_at",
                "ends_at"
              ]
            }
          }
        },
        "required": [
          "id",
          "category_id",
          "starts_at",
          "ends_at",
          "show_local_time",
          "timezone",
          "post",
          "occurrences"
        ]
      }
    }
  },
  "required": [
    "events"
  ]
}