Closed
Description
Deployment Type
Self-hosted
NetBox Version
v4.1.1
Python Version
3.12
Steps to Reproduce
1: Create a new custom field choice set called "MY_CHOICE_SET" under Customization -> Custom Field Choices. In the "Extra choices" field enter:
A:A
B:B
C:C
2: Try to execute following graphql query from the API or from the web interface. Replace MY_CHOICE_SET with
query {
custom_field_choice_set_list {
id
extra_choices
}
}
Expected Behavior
Returned JSON:
{
"data": {
"custom_field_choice_set_list": [
{
"id": "5",
"extra_choices": [
[
"A",
"A"
],
[
"B",
"B"
],
[
"C",
"C"
]
]
}
]
}
}
Observed Behavior
Returned JSON:
{
"data": {
"custom_field_choice_set_list": [
{
"id": "5",
"extra_choices": null
},
{
"id": "1",
"extra_choices": null
},
{
"id": "2",
"extra_choices": null
},
{
"id": "3",
"extra_choices": null
},
{
"id": "4",
"extra_choices": null
}
]
},
"errors": [
{
"message": "String cannot represent value: ['A', 'A']",
"locations": [
{
"line": 4,
"column": 5
}
],
"path": [
"custom_field_choice_set_list",
0,
"extra_choices",
0
]
}
]
}