Skip to content

Swagger UI generating incorrect schemas for /users/users/ endpoint #20638

@bctiemann

Description

@bctiemann

NetBox Edition

NetBox Community

NetBox Version

v4.4.4

Python Version

3.10

Steps to Reproduce

Make a POST or PUT request to /users/users/

Expected Behavior

POST: swagger suggests this only accepts a single object

PUT: swagger suggests this is a single object

Observed Behavior

POST: Endpoint permits either a single object or a list

PUT: Posting to a single object yields "id is a required field" - but this isn't documented within the swagger documentation

Metadata

Metadata

Assignees

Labels

netboxseverity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtopic: OpenAPItype: bugA confirmed report of unexpected behavior in the application

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions