@credo-ts/core
Version:
<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1
1 lines • 902 B
Source Map (JSON)
{"version":3,"file":"W3cCredentialSchema.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cCredentialSchema.ts"],"sourcesContent":["import { IsString } from 'class-validator'\n\nimport { IsUri } from '../../../../utils/validators'\n\nexport interface W3cCredentialSchemaOptions {\n id: string\n type: string\n}\n\nexport class W3cCredentialSchema {\n public constructor(options: W3cCredentialSchemaOptions) {\n if (options) {\n this.id = options.id\n this.type = options.type\n }\n }\n\n @IsUri()\n public id!: string\n\n @IsString()\n public type!: string\n}\n"],"mappings":";;;;;AASA,IAAa,sBAAb,MAAiC;CAC/B,YAAmB,SAAqC;EACtD,IAAI,SAAS;GACX,KAAK,KAAK,QAAQ;GAClB,KAAK,OAAO,QAAQ;EACtB;CACF;AAOF;AALG,WAAA,CAAA,MAAM,GAAA,mBAAA,eAAA,MAAA,CAAA,GAAA,oBAAA,WAAA,MAAA,KAAA,CAAA;AAGN,WAAA,CAAA,SAAS,GAAA,mBAAA,eAAA,MAAA,CAAA,GAAA,oBAAA,WAAA,QAAA,KAAA,CAAA"}