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

Code generator does not find class duplicates in subobjects #65

Open
MatPoppFHG opened this issue Sep 13, 2024 · 1 comment
Open

Code generator does not find class duplicates in subobjects #65

MatPoppFHG opened this issue Sep 13, 2024 · 1 comment

Comments

@MatPoppFHG
Copy link
Contributor

If two Categories have subobjects with the same title, the code generator will create only one pydantic class => an arror will occur in the (sub) class which has not been created

Possible solution(s):

  • add prefixes or suffixes for subclass definition names.
  • ceck by uuid if parent objects are the same or not.
@SimonStier
Copy link
Contributor

SimonStier commented Sep 13, 2024

possible implementation for 1. : koxudaxi/datamodel-code-generator#2042

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

No branches or pull requests

2 participants