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

How to get valid querying parameters? #51

Open
DeFilippis opened this issue Jun 26, 2019 · 0 comments
Open

How to get valid querying parameters? #51

DeFilippis opened this issue Jun 26, 2019 · 0 comments

Comments

@DeFilippis
Copy link

In the util.py file you have the following code:

        if param not in valid_params:
            error_msg = """
                '{0}' is not a valid query param for route of type: {1}.
                Valid types are [{2}].
             """.format(param, route_type, ', '.join(valid_params))
            raise exceptions.ValidationError(error_msg)

Is there a way to store the list of valid query types via a call to your API? If I'm trying to extract the bracket for Ultimate-Singles, it is helpful to know which of many different slug variants is actually used in the a given tournament, without iteratively trying each one.

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