[PR #15037] [MERGED] fix: SerializedPKRelatedField schema for openapi (drf-spectacular) #14508

Closed
opened 2025-12-29 23:24:53 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15037
Author: @Smixi
Created: 2/4/2024
Status: Merged
Merged: 5/17/2024
Merged by: @jeremystretch

Base: developHead: 14982-serialiedpk-field


📝 Commits (1)

  • 832f745 fix: SerializedPKRelatedField schema now use nested serializer or response

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 netbox/core/api/schema.py (+11 -0)

📄 Description

Fixes: #14982

Added a schema extension for drf-spectular for SerializedPKRelatedField class, because request and response are different.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15037 **Author:** [@Smixi](https://github.com/Smixi) **Created:** 2/4/2024 **Status:** ✅ Merged **Merged:** 5/17/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `14982-serialiedpk-field` --- ### 📝 Commits (1) - [`832f745`](https://github.com/netbox-community/netbox/commit/832f7452f26b23906e6c8b174ca30a5428eb5570) fix: SerializedPKRelatedField schema now use nested serializer or response ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/core/api/schema.py` (+11 -0) </details> ### 📄 Description ### Fixes: #14982 Added a schema extension for drf-spectular for SerializedPKRelatedField class, because request and response are different. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:53 +01:00
adam closed this issue 2025-12-29 23:24:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14508