{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.sectigoaxiom.com/contract/schemas/Problem.json",
  "type": "object",
  "properties": {
    "type": { "type": "string" },
    "title": { "type": "string" },
    "status": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 },
    "code": {
      "type": "string",
      "enum": [
        "unauthenticated",
        "invalid_token",
        "invalid_dpop_proof",
        "forbidden",
        "not_found",
        "conflict",
        "idempotency_conflict",
        "invalid_state",
        "precondition_failed",
        "invalid_request",
        "validation_failed",
        "rate_limited",
        "quota_exceeded",
        "upstream_error",
        "upstream_timeout",
        "internal"
      ]
    },
    "detail": { "type": "string" },
    "reason_code": { "$ref": "ReasonCode.json" },
    "changed_fields": {
      "description": "Material fields that differ (idempotency conflicts)",
      "type": "array",
      "items": { "type": "string" }
    },
    "action_id": { "type": "string" },
    "issues": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": { "field": { "type": "string" }, "message": { "type": "string" } },
        "required": ["field", "message"]
      }
    },
    "retry_after_seconds": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }
  },
  "required": ["type", "title", "status", "code"],
  "description": "RFC 9457 problem details"
}
