-
Notifications
You must be signed in to change notification settings - Fork 1
Validators, and Query scanning #4
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
base: generate-frontend
Are you sure you want to change the base?
Conversation
| return False | ||
|
|
||
| def error_message(self, **kwargs): | ||
| return "Django validator failed in field {}".format(self.field_name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Toto by graphql melo umet samo od sebe priradit ke konkretnimu fieldu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevím jak by to vymyslela, protože tak teď nezjistí z toho které políčko to v té funkci z build_validation_fn pokazilo
| return "Django validator failed in field {}".format(self.field_name) | ||
|
|
||
|
|
||
| class ForeignKeyValidator(Validator): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zatim asi OK takhle, podle me se casem ukaze, ze je to prilis coarse-grained
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible, uvidíme
simple_api/object/validators.py
Outdated
| for validator in validators: | ||
| if not validator.validation_statement(kwargs["request"], value=kwargs["params"][param_field]): | ||
| if param_field in kwargs["params"] and \ | ||
| not validator.validation_statement(kwargs["request"], value=kwargs["params"][param_field]): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
potom prosim sjednot API s permissions:
def is_valid(...):
return self.validation_statement(...)a potom validator.is_valid(...)
9e46b75 to
6923442
Compare
Change metadata merge, now to fixing tests
…n on no limit on paginated data
… not multiplied by it
…alled is checked for limits
…chema is clearer)
Documentation push Submodule connection remove documentation Documentation submodule remove documentation gitmodules Documentation commit Try to track the master branch Gitmodules
Documentation update
No description provided.