Skip to content

fix: preserve resource_name in URLs without the attribute name mangling #52

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

Merged

Conversation

leorochael
Copy link
Contributor

Since resource_name maps directly to the URL, it should not be changed
before creating the resource.

The name should only be fixed for the attribute name that will be used
to attach it to the API instance.

Fixes #32.

Since `resource_name` maps directly to the URL, it should not be changed
before creating the resource.

The name should only be fixed for the attribute name that will be used
to attach it to the API instance.
@leorochael leorochael changed the title fix: preserve resource_name as given fix: preserve resource_name in URLs without the attribute name mangling Dec 9, 2021
@allisson allisson merged commit 166954a into allisson:master Dec 10, 2021
@allisson
Copy link
Owner

@leorochael thanks!

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.

Dash in resource name: Mangling of resource names in add_resource() breaks compatibility
2 participants