{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ecmwf/main/json-schema/ecmwf-form-data-schema.json",
  "title": "FormData",
  "description": "Search datasets valid payload.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ecmwf-data-stores-catalogue-openapi.yml#/components/schemas/FormData",
  "properties": {
    "q": {
      "type": "string",
      "title": "Q",
      "default": ""
    },
    "kw": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kw",
      "default": []
    },
    "idx": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Idx",
      "default": []
    },
    "sortby": {
      "$ref": "#/$defs/CatalogueSortCriterion",
      "default": "update"
    },
    "page": {
      "type": "integer",
      "title": "Page",
      "default": 0
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "default": 50
    },
    "search_stats": {
      "type": "boolean",
      "title": "Search Stats",
      "default": true
    },
    "dashboard": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dashboard"
    }
  },
  "type": "object",
  "$defs": {
    "CatalogueSortCriterion": {
      "type": "string",
      "enum": [
        "publication",
        "relevance",
        "update",
        "title",
        "id"
      ],
      "title": "CatalogueSortCriterion",
      "description": "Sorting criteria for datasets search."
    }
  }
}