From 5347bfe3c2928e7d0d0c8a3bde2b26d7bdb4648c Mon Sep 17 00:00:00 2001 From: Xinhao Luo Date: Tue, 25 Nov 2025 11:04:10 -0800 Subject: [PATCH] fix(rack-types): max_weight and mounting_depth are expected to be int (#3765) --- rack-types/APC/AR1300.yaml | 4 ++-- rack-types/APC/AR3107.yaml | 2 +- rack-types/APC/AR3157.yaml | 2 +- schema/racktype.json | 10 ++++------ 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/rack-types/APC/AR1300.yaml b/rack-types/APC/AR1300.yaml index 15926691..77fff105 100644 --- a/rack-types/APC/AR1300.yaml +++ b/rack-types/APC/AR1300.yaml @@ -11,8 +11,8 @@ outer_width: 600 outer_height: 1991 outer_depth: 1070 outer_unit: mm -mounting_depth: 914.9 +mounting_depth: 914 weight: 125.09 -max_weight: 1020.6 +max_weight: 1020 weight_unit: kg desc_units: false diff --git a/rack-types/APC/AR3107.yaml b/rack-types/APC/AR3107.yaml index c8a10d92..f3478659 100644 --- a/rack-types/APC/AR3107.yaml +++ b/rack-types/APC/AR3107.yaml @@ -12,6 +12,6 @@ outer_depth: 1070 outer_unit: mm mounting_depth: 710 weight: 138.23 -max_weight: 1022.73 +max_weight: 1022 weight_unit: kg desc_units: false diff --git a/rack-types/APC/AR3157.yaml b/rack-types/APC/AR3157.yaml index 20ca5cc3..d3935528 100644 --- a/rack-types/APC/AR3157.yaml +++ b/rack-types/APC/AR3157.yaml @@ -12,6 +12,6 @@ outer_depth: 1070 outer_unit: mm mounting_depth: 710 weight: 169.09 -max_weight: 1022.73 +max_weight: 1022 weight_unit: kg desc_units: false diff --git a/schema/racktype.json b/schema/racktype.json index 53492496..dccf610a 100644 --- a/schema/racktype.json +++ b/schema/racktype.json @@ -70,17 +70,15 @@ "multipleOf": 0.01 }, "max_weight": { - "type": "number", - "minimum": 0, - "multipleOf": 0.01 + "type": "integer", + "minimum": 0 }, "weight_unit": { "$ref": "urn:devicetype-library:generated-schema#/definitions/weight-unit" }, "mounting_depth": { - "type": "number", - "minimum": 0, - "multipleOf": 0.01 + "type": "integer", + "minimum": 0 }, "starting_unit": { "type": "number",