Wrong value types on custom fields #5021

Closed
opened 2025-12-29 19:23:15 +01:00 by adam · 0 comments
Owner

Originally created by @avisom on GitHub (Jun 21, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.7

Python version

3.6

Steps to Reproduce

  1. Create a custom field for a ipam > prefix.
  2. Select a value type as a text.
  3. Update prefix through the API and set a integer value equal to 51 for the new custom field in the same request

Expected Behavior

Error should be returned.
If a prefix updated through the GUI this works fine.

Observed Behavior

The prefix has an integer value on the custom field

Originally created by @avisom on GitHub (Jun 21, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.7 ### Python version 3.6 ### Steps to Reproduce 1. Create a custom field for a ipam > prefix. 2. Select a value type as a text. 3. Update prefix through the API and set a integer value equal to 51 for the new custom field in the same request ### Expected Behavior Error should be returned. If a prefix updated through the GUI this works fine. ### Observed Behavior The prefix has an integer value on the custom field
adam added the type: bugstatus: accepted labels 2025-12-29 19:23:15 +01:00
adam closed this issue 2025-12-29 19:23:15 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5021