We had two PatientSerializers defined in our project; one of them was used for both views in the Swagger output when in fact each view used a different PatientSerializer; my workaround was to rename one of them (probably best that they are not identically named, but still an issue that might bite someone else)
Hello!
This is known and documented behaviour. I pondered a bit at the time and conisdered that it's preferable to the alternative (throwing an error). You can follow the steps from the link to resolve the conflict without having to rename the class.
I'm going to close this off for now. If you have a suggestion about how this situation could be handled better, feel free to reopen it.
Most helpful comment
Hello!
This is known and documented behaviour. I pondered a bit at the time and conisdered that it's preferable to the alternative (throwing an error). You can follow the steps from the link to resolve the conflict without having to rename the class.