FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

add support for validation rules by aryaniyaps · Pull Request #83 · graphql-python/graphql-server · GitHub

add support for validation rules - #83

Merged
jkimbo merged 5 commits into
graphql-python:masterfrom
aryaniyaps:master
Aug 10, 2021
Merged

add support for validation rules#83
jkimbo merged 5 commits into
graphql-python:masterfrom
aryaniyaps:master

Conversation

aryaniyaps commented Aug 9, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

allows passing validation rules as an argument to the graphqlview.
also updated docs regarding the same. fixes #82

(commited by mistake. updated .gitignore)

Copy link
Copy Markdown
Contributor Author

oops, committed venv by mistake. Updated .gitignore and removed the dir.

return self.middleware

def get_validation_rules(self):
return self.validation_rules

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This should return the default validation rules if validation_rules is None:

from graphql import specified_rules

aryaniyaps requested a review from jkimbo August 9, 2021 08:34
jkimbo previously approved these changes Aug 9, 2021

Copy link
Copy Markdown
Contributor Author

When would this be merged?🤔

jkimbo commented Aug 9, 2021

Copy link
Copy Markdown
Member

@CodeByAryan I just merged #84 Could you bring this branch up to date?

Copy link
Copy Markdown
Contributor Author

@jkimbo done!

jkimbo merged commit 86b7926 into graphql-python:master Aug 10, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

allow validation rules to be passed during schema execution

2 participants


Back | FazBrowse Home | New Git URL