{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cleanplaystandards.org/schemas/status-response.schema.json",
  "title": "Clean Play Credential Status Response",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "credentialId",
    "status",
    "asOf",
    "expiresAt",
    "verificationUrl"
  ],
  "properties": {
    "credentialId": {
      "type": "string"
    },
    "status": {
      "enum": [
        "active",
        "suspended",
        "expired",
        "revoked"
      ]
    },
    "asOf": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "verificationUrl": {
      "type": "string",
      "format": "uri"
    }
  }
}
