Change PK type to int

This commit is contained in:
Marcus Weiner 2025-01-22 17:25:24 +01:00
parent 640e438ef6
commit 7216a0d5ae

View File

@ -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,
]
}