Skip to content

Commit 987e356

Browse files
authored
Event lago_id is an opaque identifier, not always a UUID (#550)
lago_id on events is not guaranteed to be a UUID. On organizations using the ClickHouse events store it is a composite string, so the uuid format constraint was inaccurate and rejected valid responses in strict clients (Go, Rust). Removed format: uuid from EventObject.lago_id and clarified the description. lago_customer_id and lago_subscription_id keep format: uuid since they remain real UUIDs on both stores. Follow-up to getlago/lago-rust-client#50 (reviewer request to sync the spec).
1 parent 782480e commit 987e356

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

openapi.yaml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/schemas/EventObject.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ properties:
1111
type:
1212
- string
1313
- "null"
14-
format: "uuid"
1514
example: "1a901a90-1a90-1a90-1a90-1a901a901a90"
16-
description: Unique identifier assigned to the event within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the event's record within the Lago system
15+
description: Unique identifier assigned to the event within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the event's record within the Lago system. It is an opaque identifier and is not guaranteed to be a UUID; on organizations using the ClickHouse events store it is a composite string.
1716
transaction_id:
1817
type: string
1918
example: "transaction_1234567890"

0 commit comments

Comments
 (0)