Skip to content

Commit 3058104

Browse files
authored
[HCK-12579]feat: migrate from avsc custom module in FE to a patch and update avsc from 5.4.11 to 5.7.9 (#201)
* Remove custom module and use a patched version of avsc library * feat: migrate avsc patch from 5.4.11 to 5.7.9 - Update avsc dependency from 5.4.11 to 5.7.9 - Migrate custom patch for error collection functionality - Replace throw new Error() calls with Type.addError() for non-blocking validation - Add errorsCollector array and Type.addError function for error aggregation - Maintain backward compatibility with existing error handling behavior - Update package-lock.json to reflect new avsc version This migration ensures the plugin continues to work with the latest avsc version while preserving the custom error collection functionality that prevents validation errors from blocking the schema processing workflow. * clean the patch by removing the backup file * Expose errorCollector in the barel file and align with studio patch to add the schema validation helper
1 parent 3dd5dca commit 3058104

22 files changed

Lines changed: 727 additions & 9505 deletions

forward_engineering/helpers/validateAvroScript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const _ = require('lodash');
2-
const avsc = require('../modules/avsc');
2+
const avsc = require('avsc');
33
const { parseJson } = require('./generalHelper');
44
const { SCRIPT_TYPES } = require('../../shared/constants');
55

forward_engineering/modules/avsc/LICENSE

Lines changed: 0 additions & 19 deletions
This file was deleted.

forward_engineering/modules/avsc/README.md

Lines changed: 0 additions & 131 deletions
This file was deleted.

forward_engineering/modules/avsc/etc/browser/avsc-protocols.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

forward_engineering/modules/avsc/etc/browser/avsc-services.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

forward_engineering/modules/avsc/etc/browser/avsc-types.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

forward_engineering/modules/avsc/etc/browser/avsc.js

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)