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

Map [string]: ? into their correct Result<string, ?> #66

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

spinillos
Copy link
Member

It maps maps values into their correct Result. Works for:

  • [string]: bool --> Result<string, boolean>
  • [string]: string --> Result<string, string>
  • [string]: int64 | float32 --> Result<string, number>

For non-string maps, we need to investigate and iterate it again. So maps like map[in64]: ? are still generating the Result<string, unknown> result.

Copy link
Contributor

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉 🎉

@sdboyer sdboyer merged commit d1c08a6 into main Dec 19, 2022
@sdboyer sdboyer deleted the check-string-maps branch December 19, 2022 18:02
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.

None yet

2 participants