Skip to content

Fix/es6 validators - Refactor Validators to ES6 Module Syntax#68

Merged
agaesh merged 2 commits intofix/es6-migrationfrom
fix/es6-validators
Oct 11, 2025
Merged

Fix/es6 validators - Refactor Validators to ES6 Module Syntax#68
agaesh merged 2 commits intofix/es6-migrationfrom
fix/es6-validators

Conversation

@agaesh
Copy link
Owner

@agaesh agaesh commented Oct 11, 2025

Description

This pull request updates the following validator files to use ES6 module syntax for consistency with the ongoing migration effort:

  • validators/RequiredBody.js
  • validators/RequiredId.js

Changes Made

  • Replaced require statements with import.
  • Replaced module.exports with export default.
  • Ensured file structure aligns with ES6 standards used across controllers and services.

Notes

This refactor is part of the ES6 Migration initiative aimed at modernizing the backend and improving compatibility with current Node.js environments.
Integration testing for these changes will be handled separately in the fix/es6-migration branch.


Status: 🧩 Code refactored successfully — pending integration testing.

@agaesh agaesh self-assigned this Oct 11, 2025
@agaesh agaesh changed the base branch from main to fix/es6-migration October 11, 2025 15:57
@agaesh agaesh linked an issue Oct 11, 2025 that may be closed by this pull request
2 tasks
@agaesh agaesh merged commit d288a6e into fix/es6-migration Oct 11, 2025
1 check failed
@agaesh
Copy link
Owner Author

agaesh commented Oct 11, 2025

Succesfully merged es validators branch into es6-migration where feature testing will be handled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🧩 Issue: Convert ValidatoSr to ES6 Module Syntax

1 participant