{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/radiant-earth/main/json-schema/radiant-earth-redacted-apikey-schema.json",
  "title": "RedactedAPIKey",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/radiant-earth-source-cooperative-openapi.yml#/components/schemas/RedactedAPIKey",
  "type": "object",
  "properties": {
    "access_key_id": {
      "type": "string",
      "minLength": 2,
      "maxLength": 24
    },
    "account_id": {
      "type": "string",
      "minLength": 3,
      "maxLength": 40,
      "pattern": "^[a-z0-9](?:(?!--)[a-z0-9-])*[a-z0-9]$"
    },
    "repository_id": {
      "type": "string",
      "minLength": 3,
      "maxLength": 40,
      "pattern": "^[a-z0-9](?:(?!--)[a-z0-9-])*[a-z0-9]$"
    },
    "disabled": {
      "type": "boolean"
    },
    "expires": {
      "type": "string",
      "format": "date-time"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "required": [
    "access_key_id",
    "account_id",
    "disabled",
    "expires",
    "name"
  ]
}