pysmash
pysmash copied to clipboard
How to get valid querying parameters?
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.