UNPKG

contentful-migration

Version:
16 lines 509 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TagSchemaValidator = void 0; const __1 = require("../"); const schema_validation_1 = require("./schema/schema-validation"); class TagSchemaValidator { constructor() { this.hooks = [__1.ApiHook.SaveTag]; } validate(tag) { const tagErrors = (0, schema_validation_1.validateTag)(tag); return tagErrors; } } exports.TagSchemaValidator = TagSchemaValidator; //# sourceMappingURL=tag.js.map