-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issuance API with required attribute (#528)
* fix:issuance api Signed-off-by: pranalidhanavade <[email protected]> * fix:issuance api issue Signed-off-by: pranalidhanavade <[email protected]> * fix:sonarlint issues Signed-off-by: pranalidhanavade <[email protected]> * fix:requried attribute in issuance api Signed-off-by: pranalidhanavade <[email protected]> * fix:requried attributes in csv file Signed-off-by: pranalidhanavade <[email protected]> --------- Signed-off-by: pranalidhanavade <[email protected]> Signed-off-by: bhavanakarwade <[email protected]> Signed-off-by: KulkarniShashank <[email protected]>
- Loading branch information
1 parent
03aeb9b
commit b5f82b7
Showing
2 changed files
with
117 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -359,39 +359,7 @@ export class CredentialAttributes { | |
} | ||
|
||
export class OOBCredentialDtoWithEmail { | ||
@ApiProperty({ example: [ | ||
{ | ||
'emailId': '[email protected]', | ||
'credential': { | ||
'@context': [ | ||
'https://www.w3.org/2018/credentials/v1', | ||
'https://www.w3.org/2018/credentials/examples/v1' | ||
], | ||
'type': [ | ||
'VerifiableCredential', | ||
'UniversityDegreeCredential' | ||
], | ||
'issuer': { | ||
'id': 'did:key:z6Mkn72LVp3mq1fWSefkSMh5V7qrmGfCV4KH3K6SoTM21ouM' | ||
}, | ||
'issuanceDate': '2019-10-12T07:20:50.52Z', | ||
'credentialSubject': { | ||
'id': 'did:key:z6Mkn72LVp3mq1fWSefkSMh5V7qrmGfCV4KH3K6SoTM21ouM', | ||
'degree': { | ||
'type': 'BachelorDegree', | ||
'name': 'Bachelor of Science and Arts' | ||
} | ||
} | ||
}, | ||
'options': { | ||
'proofType': 'Ed25519Signature2018', | ||
'proofPurpose': 'assertionMethod' | ||
} | ||
} | ||
] | ||
|
||
|
||
}) | ||
@ApiProperty({ example: [{ 'emailId': '[email protected]', 'attributes': [{ 'value': 'string', 'name': 'string' }] }] }) | ||
@IsNotEmpty({ message: 'Please provide valid attributes' }) | ||
@IsArray({ message: 'attributes should be array' }) | ||
@ArrayMaxSize(Number(process.env.OOB_BATCH_SIZE), { message: `Limit reached (${process.env.OOB_BATCH_SIZE} credentials max). Easily handle larger batches via seamless CSV file uploads` }) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters