{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/api-snap/refs/heads/main/json-schema/jwt-decode-jwt-decoded-schema.json",
  "title": "JwtDecoded",
  "description": "Decoded JWT including header, payload, and expiration metadata",
  "type": "object",
  "properties": {
    "header": {
      "type": "object",
      "description": "Decoded JWT header.",
      "additionalProperties": true
    },
    "payload": {
      "type": "object",
      "description": "Decoded JWT payload.",
      "additionalProperties": true
    },
    "expired": {
      "type": "boolean",
      "description": "Whether the token has expired (only present if `exp` claim exists)."
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 expiry time (only present if `exp` claim exists)."
    },
    "issuedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 issued-at time (only present if `iat` claim exists)."
    }
  }
}