{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ransack-tools/json-schema/ransack-tools-search-schema.json",
  "title": "Search",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ransack-tools-openapi.json#/components/schemas/Search",
  "properties": {
    "query": {
      "description": "Search query",
      "minLength": 1,
      "title": "Query",
      "type": "string"
    },
    "max_results": {
      "default": 5,
      "description": "Max results to return",
      "maximum": 20,
      "minimum": 1,
      "title": "Max Results",
      "type": "integer"
    },
    "freshness": {
      "anyOf": [
        {
          "pattern": "^(day|week|month)$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Bypass the result cache for content this fresh (NOT a date filter)",
      "title": "Freshness"
    },
    "format": {
      "default": "json",
      "pattern": "^(markdown|json|hybrid)$",
      "title": "Format",
      "type": "string"
    },
    "crypto": {
      "default": true,
      "description": "False skips the crypto price oracle",
      "title": "Crypto",
      "type": "boolean"
    },
    "verbose": {
      "default": false,
      "description": "True keeps the tool footer; REST default is off",
      "title": "Verbose",
      "type": "boolean"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}