[PR #4492] [MERGED] Fix #4361 Set correct type of connection_status in swagger schema #12856

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4492
Author: @kobayashi
Created: 4/15/2020
Status: Merged
Merged: 4/15/2020
Merged by: @jeremystretch

Base: developHead: 4361-type-connection_status


📝 Commits (1)

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 docs/release-notes/version-2.8.md (+1 -0)
📝 netbox/utilities/custom_inspectors.py (+1 -1)

📄 Description

Fixes:#4361

This changes type of connection_status from integer to boolean in properties.

"connection_status": {
    "readOnly": true,
    "properties": {
        "value": {
            "x-nullable": true,
            "enum": [
                false,
                true
            ],
            "type": "boolean"
        },
        "label": {
            "enum": [
                "Not Connected",
                "Connected"
            ],
            "type": "string"
        }
    }
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4492 **Author:** [@kobayashi](https://github.com/kobayashi) **Created:** 4/15/2020 **Status:** ✅ Merged **Merged:** 4/15/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4361-type-connection_status` --- ### 📝 Commits (1) - [`1ce0191`](https://github.com/netbox-community/netbox/commit/1ce0191a744231bf7b04a65a4625a4f2ed7330b2) Fixes #4361: Set correct type of connection_state ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/release-notes/version-2.8.md` (+1 -0) 📝 `netbox/utilities/custom_inspectors.py` (+1 -1) </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be opened for approval prior to filing a pull request. This helps avoid wasting time and effort on something that we might not be able to accept. Please indicate the relevant feature request or bug report below. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ACCEPTED BUG REPORT OR FEATURE REQUEST, IT WILL BE MARKED AS INVALID AND CLOSED. --> ### Fixes:#4361 <!-- Please include a summary of the proposed changes below. --> This changes type of `connection_status` from `integer` to `boolean` in properties. ``` "connection_status": { "readOnly": true, "properties": { "value": { "x-nullable": true, "enum": [ false, true ], "type": "boolean" }, "label": { "enum": [ "Not Connected", "Connected" ], "type": "string" } } } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:24:00 +01:00
adam closed this issue 2025-12-29 22:24:00 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12856