vapor-ware / netbox-virtual-circuit-plugin

A plugin for NetBox that supports Virtual Circuit management
GNU General Public License v3.0
57 stars 19 forks source link

Breaks Swagger API #22

Closed jdrew82 closed 4 years ago

jdrew82 commented 4 years ago

It appears that this plugin is causing the Swagger API interface to bomb. Upon doing some investigation it seems like your VLAN serializer is using the same ref_name as the actual VLAN serializer.

"Schema for <class 'spam.api.serializers.VLANSerializer'> would override distinct serializer <class 'netbox_virtual_circuit_plugin.api.serializers.VLANSerializer'> because they implicitly share the same ref_name; explicitly set the ref_name atribute on both serializers' Meta classes"

hoanhan101 commented 4 years ago

Thanks for looking into this. I have fixed this issue since the 0.1.4 release. I'm using the latest version 0.2.0 and it seems to have no problem as well.