-
Notifications
You must be signed in to change notification settings - Fork 273
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
Encountered 2 components with identical names #90
Comments
If you have 2 serializers with identical name spectacular notifies your of the conflict. spectacular cannot decide for you what a proper name is. it only has
this is related to #51. default collision resolution is a pending change, but would just add a random suffix anyway as an intermediate solution to have a correct schema even it is not nice looking. |
A related issue I am running into is that the Router ordering of paths is not understood by the schema generator, which makes the current handling of identical names especially painful. See #92 |
@tfranzel adding a random suffix does indeed work, but as you mentioned is not nice looking. suppose "Error" model is used in 10 endpoints. then we have Error1, Error2 .... Error10. |
@jayvdb we will deal with that in #92 @MahmoudAljabary you have to understand that each with that warning the spectacular notifies you that it found an issue. for the warning to disappear we would need a resolution for this issue. can you make a alternate suggestion for uniquely name the serializers? because i currently don't see no other good options here. |
closing because this more a feature than a bug. even with a different conflict solution the warning would remain to inform about the "auto conflict resolution" component names. |
When reusing the same schema model. i encounter the following: Warning #1: Encountered 2 components with identical names "Error". This will very likely result in an incorrect schema. Try renaming one.
Is there is a way to overcome this, disable this or hide it?
The text was updated successfully, but these errors were encountered: