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

Add date validity checks #158

Open
SkylordA opened this issue Oct 31, 2024 · 0 comments
Open

Add date validity checks #158

SkylordA opened this issue Oct 31, 2024 · 0 comments
Assignees

Comments

@SkylordA
Copy link

Issue Description

There are currently no checks for date fields from the OED files.

  1. Correct Date Format of YYYY-MM-DD
  2. Expiry Dates occur after Inception Dates

This will be needed for any features which compare dates such as Support Risk Attaching 'RA' basis in reinsurance

Example data / logs

  1. Any functionality in OasisLMF which needs to compare dates needs to have the dates in the correct format. Currently these dates are stored as strings so any comparisons can have issues.
    1. "2023-07-01" < "2024-01-01" , but "01/01/2024" < "01/07/2023"
  2. Expiry dates occurring after Inception Dates is self explanatory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant