mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Change PK type to int
This commit is contained in:
parent
640e438ef6
commit
7216a0d5ae
@ -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,
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user