{"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"}