Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoid duplicating user-defined enum property names#1168

Open
wileykestner wants to merge 5 commits intoopenapi-generators:main from
wileykestner:avoid-duplicating-enum-property-names-1167
Open

Avoid duplicating user-defined enum property names #1168
wileykestner wants to merge 5 commits intoopenapi-generators:main from
wileykestner:avoid-duplicating-enum-property-names-1167

Conversation

@wileykestner
Copy link

@wileykestner wileykestner commented Nov 21, 2024
edited
Loading

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)

u840903 reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

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

Comments

AltStyle によって変換されたページ (->オリジナル) /