{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shipshapedata-com/json-schema/shipshapedata-com-resource-search-page-schema.json",
  "title": "ResourceSearchPage",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shipshapedata-com-openapi.json#/components/schemas/ResourceSearchPage",
  "type": "object",
  "required": [
    "query",
    "count",
    "results"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "description": "Results on this page"
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque token for the next page; null when this is the last page"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      }
    }
  },
  "$defs": {
    "Resource": {
      "type": "object",
      "required": [
        "title",
        "slug",
        "url",
        "category",
        "description"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "category": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "answers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The questions this guide answers"
        },
        "relevance": {
          "type": "integer",
          "description": "Present on keyword searches: how many query terms matched"
        }
      }
    }
  }
}