

import { __decorateMetadata } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
import { __decorate } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
import { IsUri } from "../../../../utils/validators.mjs";
import "../../../../utils/index.mjs";
import { plainToClassFromExist } from "class-transformer";
import { IsString } from "class-validator";

//#region src/modules/vc/models/credential/W3cV2CredentialSchema.ts
/**
* Represents a credential schema.
*
* @see https://www.w3.org/TR/vc-data-model-2.0/#data-schemas
*/
var W3cV2CredentialSchema = class {
	constructor(options) {
		if (options) {
			const { id, type,...rest } = options;
			plainToClassFromExist(this, rest);
			this.id = id;
			this.type = type;
		}
	}
};
__decorate([IsUri(), __decorateMetadata("design:type", String)], W3cV2CredentialSchema.prototype, "id", void 0);
__decorate([IsString(), __decorateMetadata("design:type", String)], W3cV2CredentialSchema.prototype, "type", void 0);

//#endregion
export { W3cV2CredentialSchema };
//# sourceMappingURL=W3cV2CredentialSchema.mjs.map