trustgraph/specs/websocket/components/schemas/ErrorEnvelope.yaml
cybermaggedon 8a17375603
Add AsyncAPI spec for websocket (#613)
* AsyncAPI for websocket docs

* Delete old docs

* Update docs/README.md to point to docs site

* Add generated API docs
2026-01-15 11:57:16 +00:00

37 lines
814 B
YAML

type: object
description: |
WebSocket error message envelope.
Sent when a request fails. Contains the request ID and error details.
required:
- id
- error
properties:
id:
type: string
description: |
Request identifier from the original request that failed.
examples:
- req-123
- request-abc-456
error:
type: object
description: Error information
required:
- type
- message
properties:
type:
type: string
description: Error type/category
examples:
- gateway-error
- service-error
- timeout
message:
type: string
description: Human-readable error message
examples:
- Flow not found
- Service timeout
- Invalid request format