{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cbfpspec.org/schemas/landmark.schema.json",
  "title": "CBFP landmark-1 \u2014 draft strict-v0.1 structural profile",
  "description": "The shape of a landmark object, not a fingerprint generator or matcher.",
  "type": "object",
  "required": [
    "algo",
    "count",
    "records"
  ],
  "properties": {
    "algo": {
      "const": "landmark-1"
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 8000
    },
    "records": {
      "type": "string",
      "minLength": 12,
      "maxLength": 85336,
      "contentEncoding": "base64",
      "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
      "not": {
        "pattern": "[^A-Za-z0-9+/=]"
      },
      "description": "Standard padded base64. Decode separately to check canonical encoding, eight-byte records, count, ordering and signed-safe frames."
    }
  },
  "additionalProperties": true
}
