{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canonicai-com/json-schema/canonicai-com-construct-search-response-schema.json",
  "title": "ConstructSearchResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonicai-com-openapi.json#/components/schemas/ConstructSearchResponse",
  "type": "object",
  "required": [
    "query",
    "count",
    "matches"
  ],
  "properties": {
    "query": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "matches": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConstructMatch"
      }
    }
  },
  "$defs": {
    "ConstructMatch": {
      "type": "object",
      "required": [
        "score",
        "canon",
        "name",
        "url"
      ],
      "properties": {
        "score": {
          "type": "integer"
        },
        "canon": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "definition": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}