Object count fields are documented in Swagger for REST API GET requests but not included in the response #16085
Labels
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: needs owner
This issue is tentatively accepted pending a volunteer committed to its implementation
topic: OpenAPI
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v4.0.1
Python Version
3.11
Steps to Reproduce
The
RelatedObjectCountField
REST API serializer fields are being documented in the REST API Swagger for GET requests but not actually returned in the response.The behavior seems consistent wherever
RelatedObjectCountField
is used.Expected Behavior
Based on the serializer classes, I assume the intention is to include these count fields since they're included in the brief fields. Either way, the Swagger scheme documentation should match the response content.
Observed Behavior
The Swagger documented schemes differ from the response content.
The text was updated successfully, but these errors were encountered: