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 String representations for object types. #114

Merged
merged 3 commits into from
Jan 10, 2024
Merged

Add String representations for object types. #114

merged 3 commits into from
Jan 10, 2024

Conversation

lolepezy
Copy link
Contributor

  • I have updated the changelog in README.md

Crl("crl"),
Gbr("gbr"),
Aspa("asa"),
Unknown("unknown");
Copy link
Member

Choose a reason for hiding this comment

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

I like having a mapping between the IANA registry and strings somewhere, hhis one is a hard one since it does not map to the registry.

Maybe we can just use the name of the enum, or the extension, instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we can just use the name of the enum, or the extension, instead?

What do you mean?

Copy link
Member

Choose a reason for hiding this comment

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

If we do not use the value internally, I expected most uses to also be able to just use the .name() of the enum. But if we use it internally here as well it makes sense.

@ties
Copy link
Member

ties commented Jan 10, 2024

Merging this: This would have prevented a bug I had

@ties ties merged commit 63bbdd6 into main Jan 10, 2024
10 checks passed
@ties ties deleted the object-types branch January 10, 2024 15:55
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.

4 participants