Skip to content

Commit 3594766

Browse files
committed
fix(types): replace vp_token any with typed OpenID4VP payload
Signed-off-by: cynox-66 <devj2311@gmail.com>
1 parent bbf9dce commit 3594766

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

heka-identity-service/src/openid4vc/verification-sessions/dto/authorization-response-payload.dto.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { OpenId4VpAuthorizationResponsePayload } from '@credo-ts/openid4vc'
2+
13
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'
24
import { Type } from 'class-transformer'
35
import { IsOptional, IsString, IsArray, IsNumber, ValidateNested, IsObject, IsDateString } from 'class-validator'
@@ -316,9 +318,7 @@ class AuthorizationResponsePayloadDto {
316318

317319
@ApiPropertyOptional()
318320
@IsOptional()
319-
@ValidateNested({ each: true })
320-
// TODO: remove any and specify proper types
321-
public vp_token?: any
321+
public vp_token?: OpenId4VpAuthorizationResponsePayload['vp_token']
322322

323323
@ApiPropertyOptional({ type: () => PresentationSubmissionDto })
324324
@IsOptional()

0 commit comments

Comments
 (0)