DRD-spectacular integration with depth parameter #9897
Unanswered
antonkozel-az
asked this question in
Question & Answer
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Encountered this warning when accessing swagger in DRF with drf-spectacular when using depth=1 in a code example bellow.
Have i done something wrong or this is a known issue? Can we make the names unique by default?
Warning [CoreSystemReleaseViewSet > CoreSystemReleaseSerializer > NestedSerializer]: Encountered 2 components with identical names "Nested" and different identities <class 'rest_framework.serializers.ModelSerializer.build_nested_field..NestedSerializer'> and <class 'rest_framework.serializers.ModelSerializer.build_nested_field..NestedSerializer'>. This will very likely result in an incorrect schema. Try renaming one.
Here is the code.
Beta Was this translation helpful? Give feedback.
All reactions