swagger.json defines wrong type for available-ips #3631

Closed
opened 2025-12-29 18:30:16 +01:00 by adam · 1 comment
Owner

Originally created by @stefanmcshane on GitHub (May 4, 2020).

Environment

  • Python version: N/A
  • NetBox version: 2.7.11

Steps to Reproduce

  1. Query ipam/{id}/available-ips
  2. Receive array of NestedIPAddresses

Expected Behavior

  1. Receive array of NestedIPAddresses

Observed Behavior

Swagger.json defines the object as a prefix, which breaks any strongly-typed clients when using autogenerating .e.g GoNetbox

Originally created by @stefanmcshane on GitHub (May 4, 2020). ### Environment * Python version: N/A * NetBox version: 2.7.11 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Query ipam/{id}/available-ips 2. Receive array of NestedIPAddresses <!-- What did you expect to happen? --> ### Expected Behavior 1. Receive array of NestedIPAddresses <!-- What happened instead? --> ### Observed Behavior Swagger.json defines the object as a prefix, which breaks any strongly-typed clients when using autogenerating .e.g GoNetbox
adam closed this issue 2025-12-29 18:30:16 +01:00
Author
Owner

@stefanmcshane commented on GitHub (May 4, 2020):

Closed due to fix in 2.8 #3356

@stefanmcshane commented on GitHub (May 4, 2020): Closed due to fix in 2.8 #3356
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3631