{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "JSON Web Key Schema",
    "description": "An object defining the structure of a JSON Web Key",
    "type": "object",
    "required": [
        "kty", "crv", "x", "y"
    ],
    "properties": {
        "alg": {
            "type": "string",
            "enum": [
                "ES256",
                "ES384",
                "ES512"
            ]
        },
        "key_ops": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "kid": {
            "type": "string"
        },
        "kty": {
            "type": "string",
            "enum": [
                "EC"
            ]
        },
        "use": {
            "type": "string",
            "enum": [
                "sig",
                "enc"
            ]
        },
        "x5c": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "x5t": {
            "type": "string"
        },
        "x5t#S256": {
            "type": "string"
        },
        "x5u": {
            "format": "uri",
            "type": "string"
        },
        "crv": {
            "type": "string",
            "enum": [
                "P-256",
                "P-384",
                "P-512"
            ]
        },
        "x": {
            "type": "string"
        },
        "y": {
            "type": "string"
        }
    },
    "additionalProperties": false
}