Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Validators for the number of responses in multiselect #362

Merged
merged 2 commits into from Jul 22, 2021

Conversation

MAD-py
Copy link
Contributor

@MAD-py MAD-py commented Jul 3, 2021

In order to have a more complete API and remove worries to the user, I propose to add a series of validators that can make things easier for the user, at this moment I only propose two very simple validators to validate the maximum and minimum of selected answers in a multiselect.

I would like to know what do you think about the proposal and if it is possible to make more validators that can be useful.

Personally I would like to have a number of validators similar to the Pydantic library of python.

@AlecAivazis
Copy link
Owner

Sorry i haven't gotten to this yet @MAD-py. work was really busy this week, will try to find some time to look at it over the weekend

@MAD-py
Copy link
Contributor Author

MAD-py commented Jul 10, 2021

@AlecAivazis no problem. Actually I had a pretty busy week too.

Copy link
Owner

@AlecAivazis AlecAivazis left a comment

Choose a reason for hiding this comment

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

Overall this looks pretty good - thanks for adding some tests. Do you mind adding something in the README? Also, I'm open to adding a bunch more validators, they're pretty harmless to throw into a survey/validators directory but we can do that in a separate PR

@MAD-py
Copy link
Contributor Author

MAD-py commented Jul 16, 2021

hi @AlecAivazis

I've already added the validators info in the README, I'll be working on more validators that are useful for the API and in a while I'll be doing the corresponding PR.

@MAD-py MAD-py requested a review from AlecAivazis July 16, 2021 01:15
@AlecAivazis
Copy link
Owner

Thanks for doing that! I'll merge this in once github gives us the 👍

@AlecAivazis AlecAivazis merged commit 3fff19a into AlecAivazis:master Jul 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants