{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/filings-tools/json-schema/filings-tools-not-comparable-schema.json",
  "title": "NotComparable",
  "description": "A 200 answer with a reason. The earliest filing of a form has nothing to compare against, and that is not an error.",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/filings-tools-openapi.json#/components/schemas/NotComparable",
  "type": "object",
  "required": [
    "id",
    "ticker",
    "form",
    "reportDate",
    "current",
    "comparable",
    "reason",
    "message"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "ticker": {
      "type": "string"
    },
    "form": {
      "type": "string"
    },
    "reportDate": {
      "type": "string"
    },
    "current": {
      "$ref": "#/$defs/FilingRef"
    },
    "comparable": {
      "type": "boolean",
      "enum": [
        false
      ]
    },
    "reason": {
      "type": "string",
      "enum": [
        "no_prior",
        "unresolved"
      ],
      "description": "The code may take other values in the future."
    },
    "message": {
      "type": "string"
    }
  },
  "$defs": {
    "FilingRef": {
      "type": "object",
      "required": [
        "accession",
        "filingDate",
        "url",
        "page"
      ],
      "properties": {
        "accession": {
          "type": "string"
        },
        "filingDate": {
          "type": "string",
          "format": "date"
        },
        "reportDate": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "page": {
          "type": "string",
          "description": "Path of the reader page on filings.tools."
        }
      }
    }
  }
}