Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency Swagger schema vs API (model Interface) #16423

Closed
janhlavin opened this issue Jun 6, 2024 · 3 comments
Closed

Inconsistency Swagger schema vs API (model Interface) #16423

janhlavin opened this issue Jun 6, 2024 · 3 comments
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available topic: OpenAPI type: bug A confirmed report of unexpected behavior in the application

Comments

@janhlavin
Copy link

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"

@janhlavin janhlavin added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Jun 6, 2024
@arthanson arthanson added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: low Does not significantly disrupt application functionality, or a workaround is available and removed status: needs triage This issue is awaiting triage by a maintainer labels Jun 6, 2024
@arthanson arthanson removed their assignment Jun 6, 2024
@Julio-Oliveira-Encora
Copy link
Contributor

Could you please assign it to me?

@DanSheps DanSheps added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Jun 6, 2024
@Julio-Oliveira-Encora Julio-Oliveira-Encora removed their assignment Jun 18, 2024
@jeremystretch jeremystretch added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation and removed status: accepted This issue has been accepted for implementation labels Jul 8, 2024
@arthanson
Copy link
Collaborator

I think this is related to #16670

@arthanson
Copy link
Collaborator

closing as dupe of #16670

@arthanson arthanson removed the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Aug 6, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available topic: OpenAPI type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants