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

Metadata API: add Metadata.to_bytes() #1490

Merged
merged 1 commit into from
Jul 16, 2021

Commits on Jul 15, 2021

  1. Metadata API: add Metadata.to_bytes()

    Metadata.to_bytes() is missing from the API and that is now becoming
    annoying when writing the tests.
    I think it makes sense to add:
    it'll complete the serializing counterparts to from_bytes()/from_file().
    
    We can also reuse to_bytes() in to_file() and that way ensure we don't
    import the JSONSerializer locally twice.
    
    Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
    MVrachev committed Jul 15, 2021
    Configuration menu
    Copy the full SHA
    4f37de1 View commit details
    Browse the repository at this point in the history