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

Recurrence rules BY* validations #80

Open
allenporter opened this issue Aug 11, 2022 · 1 comment
Open

Recurrence rules BY* validations #80

allenporter opened this issue Aug 11, 2022 · 1 comment

Comments

@allenporter
Copy link
Owner

Is your feature request related to a problem? Please describe.
Need to enforce constraints on the BY* fields for recurrence rules.

Describe the solution you'd like
Add pydantic validations to enforce the #s used (e.g. month is between 1 and 12, day of month is between 1 and 31, etc)

@allenporter
Copy link
Owner Author

Another example:

  • The BYDAY rule part MUST NOT be specified with a numeric value when the FREQ rule part is not set to MONTHLY or YEARLY. Furthermore, the BYDAY rule part MUST NOT be specified with a numeric value with the FREQ rule part set to YEARLY when the BYWEEKNO rule part is specified.

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

No branches or pull requests

1 participant