{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ledyi.com/schemas/ic-datasheets/1.0.0/schema.json",
  "title": "IC datasheets catalog",
  "description": "Use the JSON catalog to find the original datasheet for an exact IC model, including its suffix and package. JSON and Markdown contain the complete published catalog. Query parameters do not filter or paginate these representations; filter the returned documents locally.",
  "type": "object",
  "properties": {
    "schema": {
      "type": "string",
      "format": "uri"
    },
    "canonicalUrl": {
      "type": "string",
      "format": "uri"
    },
    "sourceUpdatedAt": {
      "type": "string",
      "description": "sourceUpdatedAt is the update time of the source catalog record, not the PDF revision, certificate issue date or expiry date. Use ETag and If-None-Match for HTTP freshness checks.",
      "allOf": [
        {
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
          "format": "date-time"
        }
      ]
    },
    "total": {
      "description": "Derived from documents.length; the complete catalog, not a page count.",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "usageNotes": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "links": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri"
        },
        "markdown": {
          "type": "string",
          "format": "uri"
        },
        "openapi": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "self",
        "markdown",
        "openapi"
      ],
      "additionalProperties": false
    },
    "kind": {
      "type": "string",
      "enum": [
        "ic-datasheets"
      ]
    },
    "documents": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "description": "Exact model, including suffixes, spaces and package names; do not merge variants.",
            "minLength": 1
          },
          "category": {
            "type": "string",
            "enum": [
              "dmx512",
              "pixel"
            ]
          },
          "family": {
            "type": "string",
            "description": "Derived navigation label; not a compatibility claim.",
            "minLength": 1
          },
          "pdf": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "format": "uri"
              },
              "mimeType": {
                "type": "string",
                "enum": [
                  "application/pdf"
                ]
              }
            },
            "required": [
              "url",
              "mimeType"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "model",
          "category",
          "family",
          "pdf"
        ],
        "additionalProperties": false
      },
      "minItems": 1
    }
  },
  "required": [
    "schema",
    "canonicalUrl",
    "sourceUpdatedAt",
    "total",
    "usageNotes",
    "links",
    "kind",
    "documents"
  ],
  "additionalProperties": false
}
