Swagger doesn't show required field "prefix_length" in available-prefixes POST request #2651

Closed
opened 2025-12-29 18:20:52 +01:00 by adam · 5 comments
Owner

Originally created by @KhaledTo on GitHub (Jun 4, 2019).

Change Type

[X ] Addition
[ ] Correction
[ ] Deprecation
[ ] Cleanup (formatting, typos, etc.)

Environment

NetBox version: 2.5.13

Proposed Change

Add prefix_length field in Swagger docs, something like:

prefix_length* integer
title: Prefix length
Size of this prefix

In /ipam/prefixes/{id}/available-prefixes/ POST request

prefixes

Originally created by @KhaledTo on GitHub (Jun 4, 2019). <!-- Please indicate the nature of the change by placing an X in one of the boxes below. --> ### Change Type [X ] Addition [ ] Correction [ ] Deprecation [ ] Cleanup (formatting, typos, etc.) ### Environment NetBox version: 2.5.13 <!-- Describe the proposed change(s). --> ### Proposed Change Add `prefix_length` field in Swagger docs, something like: prefix_length* integer title: Prefix length Size of this prefix In /ipam/prefixes/{id}/available-prefixes/ POST request ![prefixes](https://user-images.githubusercontent.com/20525775/58911018-397cf980-8717-11e9-9964-d82a805f0778.png)
adam added the type: bugstatus: accepted labels 2025-12-29 18:20:53 +01:00
adam closed this issue 2025-12-29 18:20:53 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 24, 2019):

Marking this as blocked by #2769

@jeremystretch commented on GitHub (Jun 24, 2019): Marking this as blocked by #2769
Author
Owner

@chbndrhnns commented on GitHub (May 12, 2020):

The blocker seems to be resolved. I also faced that issue today.

@chbndrhnns commented on GitHub (May 12, 2020): The blocker seems to be resolved. I also faced that issue today.
Author
Owner

@thadc23 commented on GitHub (May 14, 2020):

Same here. Using swagger codegen to create the client forces me to try to provide an entire WritablePrefix object as opposed to an object with a single field prefix_length. It may just be a matter of creating a new object with a single field to be used as the data to the POST.

@thadc23 commented on GitHub (May 14, 2020): Same here. Using swagger codegen to create the client forces me to try to provide an entire WritablePrefix object as opposed to an object with a single field `prefix_length`. It may just be a matter of creating a new object with a single field to be used as the data to the POST.
Author
Owner

@jeremystretch commented on GitHub (May 14, 2020):

@chbndrhnns @thadc23 If you're willing to commit to working on this I'm happy to assign you the issue.

@jeremystretch commented on GitHub (May 14, 2020): @chbndrhnns @thadc23 If you're willing to commit to working on this I'm happy to assign you the issue.
Author
Owner

@jeremystretch commented on GitHub (Jul 15, 2020):

Reclassified this as a bug since the fix will involve manipulating code.

@jeremystretch commented on GitHub (Jul 15, 2020): Reclassified this as a bug since the fix will involve manipulating code.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2651