Skip to content

Commit 83ac7d7

Browse files
authored
Add a title to the two schemas so that developers can differentiate between the two. (baserow#4514)
1 parent b4926d6 commit 83ac7d7

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

backend/src/baserow/api/user/schemas.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,14 @@
7979

8080
authenticated_user_response_schema = {
8181
"oneOf": [
82-
success_create_user_response_schema,
83-
two_factor_required_response_schema,
82+
{
83+
"title": "Without two-factor authentication",
84+
**success_create_user_response_schema,
85+
},
86+
{
87+
"title": "With two-factor authentication",
88+
**two_factor_required_response_schema,
89+
},
8490
],
8591
}
8692

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Improved the `token_auth` endpoint's response labels so that developers can differentiate between 2fa enabled and 2fa disabled responses.",
4+
"issue_origin": "github",
5+
"issue_number": null,
6+
"domain": "core",
7+
"bullet_points": [],
8+
"created_at": "2025-12-30"
9+
}

0 commit comments

Comments
 (0)