Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RealtimeUser:
required:
- version
- userID
- lastUpdatedAt
- search
properties:
version:
Expand All @@ -13,6 +14,10 @@ RealtimeUser:
userID:
type: string
description: User ID of the user.
lastUpdatedAt:
type: string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually we add the format it's useful for languages that need to parse it .e.g Golang

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 addressed in 6e7f754

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can go further with this: https://swagger.io/docs/specification/v3_0/data-models/data-types/#strings

Suggested change
type: string
type: string
format: date-time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we purposely not use date-time because it forces the user to construct objects (e.g. new Date()), in some languages it's a lot of overhead

description: Date and time when the profile was last computed, in RFC 3339 format.
example: 2023-06-15T15:06:04.249906Z
search:
type: object
description: |
Expand Down
Loading