mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 19:08:38 -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:
|
if direction == 'request' and self.target.nested:
|
||||||
return {
|
return {
|
||||||
'oneOf': [
|
'oneOf': [
|
||||||
build_basic_type(OpenApiTypes.NUMBER),
|
build_basic_type(OpenApiTypes.INT),
|
||||||
schema,
|
schema,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user