From 7216a0d5ae663231859928f695665292dc8ff2a7 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Wed, 22 Jan 2025 17:25:24 +0100 Subject: [PATCH] Change PK type to int --- netbox/core/api/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/core/api/schema.py b/netbox/core/api/schema.py index 647446434..e9655378d 100644 --- a/netbox/core/api/schema.py +++ b/netbox/core/api/schema.py @@ -292,7 +292,7 @@ class FixWritableNestedSerializerAllowPK(OpenApiSerializerFieldExtension): if direction == 'request' and self.target.nested: return { 'oneOf': [ - build_basic_type(OpenApiTypes.NUMBER), + build_basic_type(OpenApiTypes.INT), schema, ] }