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

Add comment notation to disable generation to to to/from json for type #96

Open
SebastienGllmt opened this issue Sep 7, 2022 · 1 comment
Labels
CDDL feature Feature that is required for proper parsing of CDDL files

Comments

@SebastienGllmt
Copy link
Collaborator

Some types such as addresses require a custom to/from json that converts them to base58 or bech32. It would be nice if there was a way to get the codegen to avoid adding the automatic to/from json if specified

@SebastienGllmt
Copy link
Collaborator Author

This is partially addressed by _CDDL_CODEGEN_EXTERN_TYPE_ introduced in #130 which is useful for types that are represented entirely outside the codegen.

However, this ticket is for a slightly less extreme case where we still want to generate code, but just want to override the string representation of the type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDDL feature Feature that is required for proper parsing of CDDL files
Projects
None yet
Development

No branches or pull requests

1 participant