You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warning #6: could not derive type of path parameter "ballot_pk" because because it is untyped and obtaining queryset from <class 'polls_app.views.BallotPolls'> failed. consider adding a type to the path (e.g. <int:ballot_pk>) or annotating the parameter type with @extend_schema. defaulting to "string".
The same warning repeats to all nested viewsets. I could extend schema for each nested view, but if we have ability to configure the pk type for parent routes, it'd save so much of boilerplate configuration w.r.t @extend_schema!
The text was updated successfully, but these errors were encountered:
I'm using https://github.com/tfranzel/drf-spectacular for OpenAPI documentation.
Warning #6: could not derive type of path parameter "ballot_pk" because because it is untyped and obtaining queryset from <class 'polls_app.views.BallotPolls'> failed. consider adding a type to the path (e.g. <int:ballot_pk>) or annotating the parameter type with @extend_schema. defaulting to "string".
The same warning repeats to all nested viewsets. I could extend schema for each nested view, but if we have ability to configure the pk type for parent routes, it'd save so much of boilerplate configuration w.r.t
@extend_schema
!The text was updated successfully, but these errors were encountered: