Skip to content

Commit

Permalink
fix: loosen base64 validation (#1312)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Feb 18, 2023
1 parent 229ed1b commit af384e8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/core/src/decorators/attachment/Attachment.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import type { JwsGeneralFormat } from '../../crypto/JwsTypes'

import { Expose, Type } from 'class-transformer'
import {
IsBase64,
IsDate,
IsHash,
IsInstance,
IsInt,
IsMimeType,
IsOptional,
IsString,
ValidateNested,
} from 'class-validator'
import { IsDate, IsHash, IsInstance, IsInt, IsMimeType, IsOptional, IsString, ValidateNested } from 'class-validator'

import { Jws } from '../../crypto/JwsTypes'
import { AriesFrameworkError } from '../../error'
Expand Down Expand Up @@ -44,7 +34,7 @@ export class AttachmentData {
* Base64-encoded data, when representing arbitrary content inline instead of via links. Optional.
*/
@IsOptional()
@IsBase64()
@IsString()
public base64?: string

/**
Expand Down

0 comments on commit af384e8

Please sign in to comment.