Inconsistency Swagger schema vs API (model Interface) #9804

Closed
opened 2025-12-29 21:22:55 +01:00 by adam · 3 comments
Owner

Originally created by @janhlavin on GitHub (Jun 6, 2024).

Deployment Type

Self-hosted

NetBox Version

v4.0.3

Python Version

3.11

Steps to Reproduce

  1. create Manufacturer, Device type, Device role, Site and Device+Interface
  2. call GET to /api/dcim/interfaces/$InterfaceID/

Expected Behavior

return property "device" as "model.NestedDevice" in Swagger schema

Observed Behavior

by Swagger schema object type of "device" is "model.Device", but API return "model.NestedDevice"

Originally created by @janhlavin on GitHub (Jun 6, 2024). ### Deployment Type Self-hosted ### NetBox Version v4.0.3 ### Python Version 3.11 ### Steps to Reproduce 1. create Manufacturer, Device type, Device role, Site and Device+Interface 2. call GET to /api/dcim/interfaces/$InterfaceID/ ### Expected Behavior return property "device" as "model.NestedDevice" in Swagger schema ### Observed Behavior by Swagger schema object type of "device" is "model.Device", but API return "model.NestedDevice"
adam added the type: bugseverity: lowtopic: OpenAPI labels 2025-12-29 21:22:55 +01:00
adam closed this issue 2025-12-29 21:22:55 +01:00
Author
Owner

@Julio-Oliveira-Encora commented on GitHub (Jun 6, 2024):

Could you please assign it to me?

@Julio-Oliveira-Encora commented on GitHub (Jun 6, 2024): Could you please assign it to me?
Author
Owner

@arthanson commented on GitHub (Jul 12, 2024):

I think this is related to #16670

@arthanson commented on GitHub (Jul 12, 2024): I think this is related to #16670
Author
Owner

@arthanson commented on GitHub (Aug 6, 2024):

closing as dupe of #16670

@arthanson commented on GitHub (Aug 6, 2024): closing as dupe of #16670
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9804