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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added btreemap flag to toggle BTreeMap/HashMap for map types #218

Merged
merged 2 commits into from
Apr 1, 2024

Conversation

tyrone-wu
Copy link
Contributor

@tyrone-wu tyrone-wu commented Mar 31, 2024

Hi! 馃憢 Nice name project name! 馃槃 Here's my stab at #78.

Added boolean flag btreemap that toggles whether to to use BTreeMap or HashMap for representing map/additional_properties type.

Fixes: #78

Added boolean flag `btreemap` that toggles whether to to use BTreeMap or
HashMap for representing map/additional_properties type.

Fixes: kube-rs#78

Signed-off-by: tyrone-wu <wudevelops@gmail.com>
@tyrone-wu tyrone-wu marked this pull request as ready for review March 31, 2024 01:54
Signed-off-by: Eirik A <sszynrae@gmail.com>
@clux
Copy link
Member

clux commented Apr 1, 2024

hey, thanks for this! I have one self-doubt here about changing the default (since it's been so long and the more i think about it BTreeMap is a good default), but the implementation here is a great jumping off point! i might change it to an enum'd var in main and keep HashMap as default

@clux clux merged commit 6138b40 into kube-rs:main Apr 1, 2024
4 of 5 checks passed
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.

allow toggling what map containers to use
2 participants