Skip to content

Commit 586a131

Browse files
Update api spec (#130)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4bbe036 commit 586a131

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

spec.json

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24261,35 +24261,53 @@
2426124261
"type": "object",
2426224262
"properties": {
2426324263
"created_at": {
24264+
"title": "DateTime",
2426424265
"description": "The date and time the session was created.",
2426524266
"type": "string",
2426624267
"format": "date-time"
2426724268
},
24268-
"expires_at": {
24269+
"expires": {
24270+
"title": "DateTime",
2426924271
"description": "The date and time the session expires.",
2427024272
"type": "string",
2427124273
"format": "date-time"
2427224274
},
24273-
"token": {
24275+
"id": {
24276+
"description": "The unique identifier for the session.",
24277+
"allOf": [
24278+
{
24279+
"$ref": "#/components/schemas/Uuid"
24280+
}
24281+
]
24282+
},
24283+
"session_token": {
2427424284
"description": "The session token.",
24275-
"type": "string",
24276-
"format": "uuid"
24285+
"allOf": [
24286+
{
24287+
"$ref": "#/components/schemas/Uuid"
24288+
}
24289+
]
2427724290
},
2427824291
"updated_at": {
24292+
"title": "DateTime",
2427924293
"description": "The date and time the session was last updated.",
2428024294
"type": "string",
2428124295
"format": "date-time"
2428224296
},
2428324297
"user_id": {
2428424298
"description": "The user ID of the user that the session belongs to.",
24285-
"type": "string",
24286-
"format": "uuid"
24299+
"allOf": [
24300+
{
24301+
"$ref": "#/components/schemas/Uuid"
24302+
}
24303+
]
2428724304
}
2428824305
},
2428924306
"required": [
2429024307
"created_at",
24291-
"expires_at",
24292-
"token",
24308+
"expires",
24309+
"id",
24310+
"session_token",
2429324311
"updated_at",
2429424312
"user_id"
2429524313
]

types.go

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)