We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Re discussion #215, add the feature back to convert method and parameter names to snake case.
The text was updated successfully, but these errors were encountered:
The user can do their own modifications to the request before calling dispatch.
dispatch
This was the code used in version 4.
def convert_camel_case_string(name: str) -> str: """Convert camel case string to snake case""" string = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name) return re.sub("([a-z0-9])([A-Z])", r"\1_\2", string).lower() def convert_camel_case_keys(original_dict: Dict[str, Any]) -> Dict[str, Any]: """Converts all keys of a dict from camel case to snake case, recursively""" new_dict = dict() for key, val in original_dict.items(): if isinstance(val, dict): # Recurse new_dict[convert_camel_case_string(key)] = convert_camel_case_keys(val) else: new_dict[convert_camel_case_string(key)] = val return new_dict
Sorry, something went wrong.
No branches or pull requests
Re discussion #215, add the feature back to convert method and parameter names to snake case.
The text was updated successfully, but these errors were encountered: