Skip to content

Commit

Permalink
fix: rename the exchange verification result interface
Browse files Browse the repository at this point in the history
Signed-off-by: ShikharBhatt <[email protected]>
  • Loading branch information
ShikharBhatt committed Sep 22, 2024
1 parent ec00b2f commit 94f5748
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
*/

import { IsArray, IsString } from 'class-validator';
import { VerificationResult } from '../types/exchange-verification-result';
import { ExchangeVerificationResult } from '../types/exchange-verification-result';
import { ApiProperty } from '@nestjs/swagger';

/**
* A response object from verification of a credential or a presentation.
* https://w3c-ccg.github.io/vc-api/verifier.html
*/
export class ExchangeVerificationResultDto implements VerificationResult {
export class ExchangeVerificationResultDto implements ExchangeVerificationResult {
@IsArray()
@IsString({ each: true })
@ApiProperty({ description: 'Warnings' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

import { VerificationResult } from '../types/exchange-verification-result';
import { ExchangeVerificationResult } from '../types/exchange-verification-result';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
import { VerifiablePresentation } from '../types/verifiable-presentation';

Expand All @@ -15,7 +15,7 @@ import { VerifiablePresentation } from '../types/verifiable-presentation';
*/
@Entity()
export class PresentationSubmissionEntity {
constructor(vp: VerifiablePresentation, verificationResult: VerificationResult) {
constructor(vp: VerifiablePresentation, verificationResult: ExchangeVerificationResult) {
this.vpHolder = vp?.holder;
this.verificationResult = verificationResult;
}
Expand All @@ -27,7 +27,7 @@ export class PresentationSubmissionEntity {
* The result of the verification of the submitted VP
*/
@Column('simple-json')
verificationResult: VerificationResult;
verificationResult: ExchangeVerificationResult;

@Column('text', { nullable: true })
vpHolder: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* https://w3c-ccg.github.io/vc-api/verifier.html
*/

export interface VerificationResult {
export interface ExchangeVerificationResult {
/** /**
* verified
*/
Expand Down

0 comments on commit 94f5748

Please sign in to comment.