Copy this code sample.
{
    "$id": "https://api.gsicommerce.com/schema/json/payment-error",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "$defs": {
        "Errors": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "integer"
                    },
                    "description": {
                        "type": "string"
                    }
                },
                "required": [
                    "code",
                    "description"
                ]
            }
        }
    }
}