fix: GetImpersonationToken external_id handling
This commit is contained in:
parent
afb1db17bd
commit
8bd515c33f
7 changed files with 70 additions and 52 deletions
|
|
@ -19,9 +19,9 @@ const (
|
|||
|
||||
// GetImpersonationTokenJSONBody defines parameters for GetImpersonationToken.
|
||||
type GetImpersonationTokenJSONBody struct {
|
||||
TgId *int64 `json:"tg_id,omitempty"`
|
||||
UserId *int64 `json:"user_id,omitempty"`
|
||||
union json.RawMessage
|
||||
ExternalId *int64 `json:"external_id,omitempty"`
|
||||
UserId *int64 `json:"user_id,omitempty"`
|
||||
union json.RawMessage
|
||||
}
|
||||
|
||||
// GetImpersonationTokenJSONBody0 defines parameters for GetImpersonationToken.
|
||||
|
|
|
|||
|
|
@ -94,12 +94,12 @@ paths:
|
|||
user_id:
|
||||
type: integer
|
||||
format: int64
|
||||
tg_id:
|
||||
external_id:
|
||||
type: integer
|
||||
format: int64
|
||||
oneOf:
|
||||
- required: ["user_id"]
|
||||
- required: ["tg_id"]
|
||||
- required: ["external_id"]
|
||||
responses:
|
||||
"200":
|
||||
description: Generated impersonation access token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue