Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/scmi 124851 [Domain models initiative] validate method rules #1788

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

aleixadevinta
Copy link
Contributor

@aleixadevinta aleixadevinta commented Jul 19, 2024

Description

In this pull request we ensure that a doamin model class (value object or entity) has a static validate method.

Related Issue

SCMI-124851

@aleixadevinta aleixadevinta changed the title [Domain models iniciative] Feat/scmi 124851 validate method rules Feat/scmi 124851 [Domain models iniciative] validate method rules Jul 19, 2024
@aleixadevinta aleixadevinta changed the title Feat/scmi 124851 [Domain models iniciative] validate method rules Feat/scmi 124851 [Domain models initiative] validate method rules Jul 24, 2024
const filePath = context.getFilename()
const relativePath = path.relative(context.getCwd(), filePath)

// Check if the file is inside requierd folders (useCases, services, repositories, ...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update this comment or remove it 👀

Copy link
Contributor

@oriolpuig oriolpuig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

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

Successfully merging this pull request may close these issues.

4 participants