

const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.97.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.97.0/helpers/decorate.js');
const require_validators = require('../../../../utils/validators.js');
require('../../../../utils/index.js');
let class_transformer = require("class-transformer");
let class_validator = require("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;
			(0, class_transformer.plainToClassFromExist)(this, rest);
			this.id = id;
			this.type = type;
		}
	}
};
require_decorate.__decorate([require_validators.IsUri(), require_decorateMetadata.__decorateMetadata("design:type", String)], W3cV2CredentialSchema.prototype, "id", void 0);
require_decorate.__decorate([(0, class_validator.IsString)(), require_decorateMetadata.__decorateMetadata("design:type", String)], W3cV2CredentialSchema.prototype, "type", void 0);

//#endregion
exports.W3cV2CredentialSchema = W3cV2CredentialSchema;