{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gzw-data/refs/heads/main/json-schema/gzw-data-Capabilities.json",
  "title": "Capabilities",
  "description": "Envelope/shared schema \u2014 derived verbatim from components.schemas.Capabilities of the provider's published OpenAPI 3.0.3 (4.2.0) at https://gzw-data.dev/api/v1/spec. Field set is generated by the provider from observed data, so it tracks the weekly wiki scrape.",
  "type": "object",
  "required": [
    "operations",
    "filters",
    "sorting",
    "counts"
  ],
  "properties": {
    "operations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "example": [
        "list",
        "get",
        "filter",
        "sort",
        "paginate"
      ]
    },
    "filters": {
      "type": "object",
      "properties": {
        "supported": {
          "type": "boolean"
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "sorting": {
      "type": "object",
      "properties": {
        "supported": {
          "type": "boolean"
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "directions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        }
      }
    },
    "counts": {
      "type": "object",
      "properties": {
        "supported": {
          "type": "boolean"
        },
        "includesTotal": {
          "type": "boolean"
        },
        "includesPageCount": {
          "type": "boolean"
        }
      }
    }
  }
}