Skip to content

JSON MarshallableDocument Raw function #51

Description

@juagargi

If an object is created programmatically (e.g. with a call to NewPolicyCertificate() to create a Policy), the JSONField is not set accordingly. Then if a call to Raw() is done, nothing is returned.
Same applies when a field of the object is changed.
Make the object read-only and cache the JSON in a variable, or make Raw() to always derive the JSON at call time.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions