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

Fix #730: Add default schema for waitlists #731

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

leplatrem
Copy link
Contributor

@leplatrem leplatrem commented Jul 5, 2023

Fix #730

With this PR, incoming data for unknown waitlists can have anything in the JSON fields. However, if geo or platform fields are used, then they are validated.

Currently, validation follows what was already in place (max_length=100), but maybe for future waitlists via this default schema, we could start being a bit more strict, at least for countries. What do you think?

@leplatrem leplatrem requested a review from a team as a code owner July 5, 2023 10:51
@leplatrem leplatrem added the enhancement New feature or request label Jul 5, 2023
ctms/schemas/waitlist.py Show resolved Hide resolved
ctms/schemas/waitlist.py Show resolved Hide resolved
ctms/schemas/waitlist.py Show resolved Hide resolved
@leplatrem leplatrem merged commit dd11a1f into main Jul 10, 2023
@leplatrem leplatrem deleted the add-default-schema-waitlist branch July 10, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default validation for waitlist fields
2 participants