{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loupe-legal/json-schema/loupe-legal-search-answer-schema.json",
  "title": "SearchAnswer",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loupe-legal-openapi.yml#/components/schemas/SearchAnswer",
  "type": "object",
  "properties": {
    "query": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "decided": {
            "type": [
              "string",
              "null"
            ]
          },
          "citations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pages": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "first": {
                "type": "integer"
              },
              "last": {
                "type": "integer"
              }
            }
          },
          "printed_page": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "read_it": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      }
    },
    "pin": {
      "type": "object",
      "properties": {
        "page": {
          "type": "integer"
        },
        "inside": {
          "type": "boolean"
        }
      }
    },
    "note": {
      "type": "string"
    }
  }
}