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

Avoid duplicating user-defined enum property names #1168

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

wileykestner
Copy link

@wileykestner wileykestner commented Nov 21, 2024

This is a naive attempt at dynamically avoiding name collisions between the generated name for a Schema object's enum property and the name of another, user-defined, Schema type.

Pros: All tests pass (at least when I run them locally with pdm run test)
Cons: I have no idea what I'm doing.

This is proposed to advance the discussion, all suggestions and guidance are most welcome.

Resolves #1167 (Allegedly)

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.

Generator creates enum property types that can collide with user-defined types, causing generation failures
2 participants