Hello,
Could you help me understanding why spectacular says that ?
I have the following code snippets:
group_preference_multi_by_id = SelfGroupMultiPreferenceViewSet.as_view({
"get": "retrieve",
"put": "update",
"delete": "destroy",
})
group_preference_urlpatterns = [
path(
"api/preferences/multi/by-group/<path:group>/<path:application>/<path:preference>/<int:pk>/",
group_preference_multi_by_id,
name="multi_preferences_by_given_group_by_id",
),
]
But the generated OpenAPI route uses "id" instead of "pk" and keep warning me that type could not be infered (and defaults to string while being actually integer).
Thanks in advance,
Hello,
Could you help me understanding why spectacular says that ?
I have the following code snippets:
But the generated OpenAPI route uses "id" instead of "pk" and keep warning me that type could not be infered (and defaults to string while being actually integer).
Thanks in advance,