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

Ticket 115 - Update LEI to meet character restrictions #117

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

nargis-sultani
Copy link
Contributor

closes #115

Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/entities/models
  dao.py
  dto.py
Project Total  

This report was generated by python-coverage-comment-action

Copy link
Contributor

@jcadam14 jcadam14 left a comment

Choose a reason for hiding this comment

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

Just one small update to the validation error message

match = re.match(r"^([a-zA-Z0-9]{20})", self.lei)
if not match:
raise ValueError(
f"Invalid lei {self.lei}. FinancialInstitution lei can only contain letters and numbers."
Copy link
Contributor

Choose a reason for hiding this comment

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

Include a mention of the 20 character limit in the error description here, in case they send 10 characters that are only letters and numbers and get confused ;)

Copy link
Contributor

@jcadam14 jcadam14 left a comment

Choose a reason for hiding this comment

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

Look good

@jcadam14 jcadam14 merged commit 236c19f into main Mar 15, 2024
4 checks passed
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.

Update LEI to meet character restrictions
2 participants