Skip to content

🧩 Issue: Convert ValidatoSr to ES6 Module Syntax #67

@agaesh

Description

@agaesh

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

  • Replace require with import.
  • Replace module.exports with export 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions