Sites fields in generated API have incorrect type #2576
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
type: documentation
A change or addition to the documentation
Environment
Steps to Reproduce
Visit
/api/docs/
and then select the GET/dcim/sites
API endpoint. In the Responses section you'll seecount_prefixes
and all thecount_
fields have astring
type.Expected Behavior
Since the JSON response for these fields are integer this should be an
integer
type in the generated API.Observed Behavior
The JSON response is an integer for these fields, but the generated types are
string
. This causes generated clients trouble.The text was updated successfully, but these errors were encountered: