Skip to content

Conversation

@rooooooooob
Copy link
Collaborator

When used as a key Int requires more traits, which can't be auto-generated when used as a tuple enum. This switches it to a named enum any ignores encoding fields for those traits. This also stops duplicate keys which were possible previously when the encoding differed.

We now only generate Int when it is actually referenced within the CDDL definitions being generated.

When used as a key `Int` requires more traits, which can't be
auto-generated when used as a tuple enum. This switches it to a named
enum any ignores encoding fields for those traits. This also stops
duplicate keys which were possible previously when the encoding
differed.

We now only generate `Int` when it is actually referenced within the
CDDL definitions being generated.
@rooooooooob
Copy link
Collaborator Author

I'm just going to merge this now since it's a minor change and likely wouldn't be reviewed for a while.

@rooooooooob rooooooooob merged commit 57ed9cb into master Oct 4, 2022
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.

2 participants