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

Switch from bool to Compatibool for ACL entries #307

Merged
merged 1 commit into from Sep 23, 2021

Conversation

Integralist
Copy link
Collaborator

This PR introduces a breaking change, which is necessary because currently the logic is broken (e.g. passing a bool type to the API doesn't work).

NOTE: We switch the input struct types from bool to Compatibool which is a custom type with a custom implementation of encoding.TextMarshaler and encoding.TextUnmarshaler. When coercing data back and force, the Compatibool type, results in a boolean being changed from false to 0, and true to 1. This means the request will work with our API endpoint as it expects (and returns) an integer.

@Integralist Integralist requested review from a team and triblondon and removed request for a team September 22, 2021 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants