{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/entur/json-schema/entur-jwk-public-schema.json",
  "title": "jwkPublic",
  "description": "Public JSON Web Key (JWK) as defined in <a href=\"https://tools.ietf.org/html/rfc7517\" target=\"_blank\">RFC 7517</a>. Two algorithms are supported&#58; the primary algorithm is EC (kty=EC) and the fallback algorithm is RSA (kty=RSA).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/entur-authtokenpublickey-api-openapi.yml#/components/schemas/jwkPublic",
  "type": "object",
  "required": [
    "kty",
    "kid"
  ],
  "properties": {
    "kty": {
      "type": "string",
      "description": "JWA key type"
    },
    "kid": {
      "type": "string",
      "description": "JWK key identifier"
    },
    "crv": {
      "type": "string",
      "description": "Curve type (required for kty=EC)"
    },
    "x": {
      "type": "string",
      "description": "EC x coordinate (required for kty=EC)"
    },
    "y": {
      "type": "string",
      "description": "EC y coordinate (required for kty=EC)"
    },
    "n": {
      "type": "string",
      "description": "RSA modulus parameter (required for kty=RSA)"
    },
    "e": {
      "type": "string",
      "description": "RSA exponent parameter (required for kty=RSA)"
    }
  }
}