mirror of
https://github.com/goauthentik/authentik.git
synced 2026-08-30 18:51:39 -07:00
enterprise/requests: fix API schema for grant requests (#25111)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@@ -94,8 +94,8 @@ def _binding_default(field_name: str) -> timedelta:
|
||||
class GrantRequestSerializer(EnterpriseRequiredMixin, ModelSerializer):
|
||||
|
||||
created_by = PartialUserSerializer(read_only=True)
|
||||
revoked_by = PartialUserSerializer(read_only=True)
|
||||
agent_owner = PartialUserSerializer(read_only=True)
|
||||
revoked_by = PartialUserSerializer(read_only=True, allow_null=True)
|
||||
agent_owner = PartialUserSerializer(read_only=True, allow_null=True)
|
||||
is_active = BooleanField(read_only=True)
|
||||
|
||||
target_objs = SerializerMethodField()
|
||||
|
||||
4
packages/client-ts/src/models/GrantRequest.ts
generated
4
packages/client-ts/src/models/GrantRequest.ts
generated
@@ -55,13 +55,13 @@ export interface GrantRequest {
|
||||
* @type {PartialUser}
|
||||
* @memberof GrantRequest
|
||||
*/
|
||||
readonly revokedBy: PartialUser;
|
||||
readonly revokedBy: PartialUser | null;
|
||||
/**
|
||||
*
|
||||
* @type {PartialUser}
|
||||
* @memberof GrantRequest
|
||||
*/
|
||||
readonly agentOwner: PartialUser;
|
||||
readonly agentOwner: PartialUser | null;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
|
||||
@@ -42366,10 +42366,12 @@ components:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/PartialUser'
|
||||
readOnly: true
|
||||
nullable: true
|
||||
agent_owner:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/PartialUser'
|
||||
readOnly: true
|
||||
nullable: true
|
||||
is_active:
|
||||
type: boolean
|
||||
readOnly: true
|
||||
|
||||
Reference in New Issue
Block a user