netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.91k stars 2.55k forks source link

Wrong type for region on get dcim devices in swagger #13580

Closed aopdal closed 1 year ago

aopdal commented 1 year ago

NetBox version

v3.5.8

Python version

3.10

Steps to Reproduce

  1. Click on REST API documentation icon in NetBox web interface
  2. Go to GET /api/dcim/devices/
  3. Click on Try it out
  4. Go down to region
  5. Click add integer item -> should be add string item to register region slug
  6. Write a valid region slug
  7. Go down to Execute and click it

Expected Behavior

Should list devices belonging to a Region

Observed Behavior

The following error message comes up: Please correct the following validation errors and try again. index0errorValue must be an integer

abhi1693 commented 1 year ago

Duplicate of #13459