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

topology: memory: allow encode/decode cycle (#283) #284

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

ffromani
Copy link
Collaborator

After we fixed #275 (allow marshal/unmarshal cycle for block.Info),
we discovered few more occourrences which also prevented
full JSON encode/decode/encode cycles (aka roundtrips).

All of the new findings still see unnecessary limitations,
so this patch adds the missing functions.

Fixes: #283
Signed-off-by: Francesco Romani [email protected]

@ffromani ffromani force-pushed the json-marshal-unmarshal branch from a50c09c to 2ad85e0 Compare October 21, 2021 21:38
@ffromani ffromani requested a review from jaypipes October 21, 2021 21:38
@ffromani ffromani force-pushed the json-marshal-unmarshal branch from 2ad85e0 to cfff754 Compare October 21, 2021 21:42
After we fixed jaypipes#275 (allow marshal/unmarshal cycle for block.Info),
we discovered few more occourrences which also prevented
full JSON encode/decode/encode cycles (aka roundtrips).

All of the new findings still see unnecessary limitations,
so this patch adds the missing functions.

Fixes: jaypipes#283
Signed-off-by: Francesco Romani <[email protected]>
@ffromani ffromani force-pushed the json-marshal-unmarshal branch from cfff754 to e3bdbc8 Compare October 21, 2021 21:46
@Techno-Fox
Copy link

Thanks for working on this so fast

Copy link
Owner

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Great stuff, @fromanirh, thank you! :)

@jaypipes jaypipes merged commit 17b5707 into jaypipes:main Oct 26, 2021
@ffromani ffromani deleted the json-marshal-unmarshal branch November 23, 2021 07:12
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.

json: cannot unmarshal string into Go struct field Info.architecture of type topology.Architecture
3 participants