OpenAPI spec should include servers property #7918

Closed
opened 2025-12-29 20:29:58 +01:00 by adam · 0 comments
Owner

Originally created by @abhi1693 on GitHub (Apr 18, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.5.0-beta2

Feature type

Change to existing functionality

Proposed functionality

Add servers property to the spec

Use case

Having servers allows the client to easily run on targetted systems as a sane default value.

Log snippet from OpenAPI client generator

[main] INFO  o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]

Database changes

No response

External dependencies

No response

Originally created by @abhi1693 on GitHub (Apr 18, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.5.0-beta2 ### Feature type Change to existing functionality ### Proposed functionality Add `servers` property to the spec ### Use case Having `servers` allows the client to easily run on targetted systems as a sane default value. Log snippet from OpenAPI client generator ``` [main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/] ``` ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurebeta labels 2025-12-29 20:29:58 +01:00
adam closed this issue 2025-12-29 20:29:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7918