Description
The RequiredId validator currently uses CommonJS syntax (require, module.exports).
To maintain consistency across the codebase and align with the ongoing ES6 migration, we need to refactor it to use ES6 module syntax.
File(s) to Update
validators/RequiredBody.js
validators/RequiredId.js
Tasks
Notes
This change is part of the ongoing ES6 Migration effort to modernize the backend codebase and ensure compatibility with modern Node.js and bundler environments. Integration testing will be conducted separately in fix/es6-migration branch
Description
The
RequiredIdvalidator currently uses CommonJS syntax (require,module.exports).To maintain consistency across the codebase and align with the ongoing ES6 migration, we need to refactor it to use ES6 module syntax.
File(s) to Update
validators/RequiredBody.jsvalidators/RequiredId.jsTasks
requirewithimport.module.exportswithexport default.Notes
This change is part of the ongoing ES6 Migration effort to modernize the backend codebase and ensure compatibility with modern Node.js and bundler environments. Integration testing will be conducted separately in fix/es6-migration branch