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

common: Should we sanitize enum names? #3656

Merged
merged 1 commit into from
May 28, 2022
Merged

Conversation

zml2008
Copy link
Member

@zml2008 zml2008 commented Mar 23, 2022

This resolves issues where mods add enum entries with names that are not valid resource locations

Are cases where there are enum entries differing only by case a concern we have?

Should other registries be converted?

This resolves issues where mods add enum entries with names that are not valid resource locations
@Zidane
Copy link
Member

Zidane commented Mar 26, 2022

I've taken a hard stance in API 8+ on mods adding stuff like this without valid names. However, this has been made a registry by us. Per Vanilla spec...there is no spec. We're adding it. So therefore, someone could snap back on us and state we're overstepping if we ask them on an issue to fix their name.

Therefore, if it is an Enum value which isn't in a registry by Vanilla, we will sanitize the name.

@dualspiral dualspiral merged commit 453c7f5 into api-8 May 28, 2022
@dualspiral dualspiral deleted the api8/sanitize-names branch May 28, 2022 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants