{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "profile": {
      "type": "string",
      "const": "owp-docs-draft/0.1",
      "description": "Draft discriminator. This value is not OWP v0.4 conformance or an alpha wire profile."
    },
    "code": {
      "type": "string",
      "enum": [
        "INVALID_REQUEST",
        "UNAUTHORIZED",
        "SCOPE_DENIED",
        "IDEMPOTENCY_CONFLICT",
        "RATE_LIMITED",
        "OUTCOME_UNKNOWN",
        "UNSUPPORTED_PROFILE"
      ]
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1000
    },
    "documentation_url": {
      "type": "string",
      "maxLength": 2048,
      "pattern": "^https:\\/\\/"
    },
    "retryable": {
      "type": "boolean"
    },
    "request_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "required": [
    "profile",
    "code",
    "message",
    "documentation_url",
    "retryable",
    "request_id"
  ],
  "additionalProperties": false,
  "description": "Proposed structured error format and codes. HTTP mappings and retry semantics require coordinator documentation.",
  "title": "ProtocolError",
  "$comment": "owp-docs-draft/0.1: proposed documentation shape only. Source: https://app.notion.com/p/338ed9cb3201819d96e9fc7b8e88594a §2 · §16. No production conformance claim."
}
