contentful-migration
Version:
Migration tooling for contentful
16 lines • 641 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EditorInterfaceSchemaValidator = void 0;
const __1 = require("..");
const schema_validation_1 = require("./schema/schema-validation");
class EditorInterfaceSchemaValidator {
constructor() {
this.hooks = [__1.ApiHook.SaveEditorInterface];
}
validate(editorInterface) {
const editorInterfaceErrors = (0, schema_validation_1.validateEditorInterface)(editorInterface);
return editorInterfaceErrors;
}
}
exports.EditorInterfaceSchemaValidator = EditorInterfaceSchemaValidator;
//# sourceMappingURL=editor-interface.js.map