django-ninja
django-ninja copied to clipboard
[WIP] fix: OpenAPI schema with duplicated payload name
I couldn't find any issue/PR reporting this.
When we have two schemas with the same name, only one goes to the OpenAPI schema. I added a test case to show the issue, but I don't know the expected behavior. Options:
- Add a number in the end Payload, Payload2, PayloadN.
- Raise an exception during the startup.
- Add a warning.
- Any other ideas?