-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
Implement Code Action to Generate JSON Encoder #4229
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic! I've left one tiny note inline. Thank you
option.Some(value) -> json.int(value) | ||
}), | ||
#("something", todo as "Encoder for Something"), | ||
#("map", json.dict(wibble.map, fn(string) { string }, json.array(_, json.float(_)))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#("map", json.dict(wibble.map, fn(string) { string }, json.array(_, json.float(_)))), | |
#("map", json.dict(wibble.map, fn(string) { string }, json.array(_, json.float))), |
🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, that's fair. That was a bit I was a little iffy on
Ah, I've just found a bug. Let me fix that quickly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
ack, merge conflicts! |
Yep. I'm out at the moment, I'll resolve them when I get home |
I'm on it 😎 |
5182922
to
76a0171
Compare
Thanks! |
Closes #4227
This is basically a copy-paste-change of the generate dynamic decoder action.