{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/calculate-co-nz/json-schema/calculate-co-nz-find-calculator-request-schema.json",
  "title": "FindCalculatorRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/calculate-co-nz-discovery-api-openapi.yml#/components/schemas/FindCalculatorRequest",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Query",
      "description": "What to work out, in plain language."
    },
    "limit": {
      "type": "integer",
      "maximum": 20.0,
      "minimum": 1.0,
      "title": "Limit",
      "description": "Number of results, 1 to 20.",
      "default": 5
    },
    "types": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "enum": [
              "calculator",
              "tool",
              "guide",
              "dataset"
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Types",
      "description": "Restrict to these page types. Omit for all types."
    }
  },
  "type": "object",
  "required": [
    "query"
  ]
}