Open viktorvsk opened 6 months ago
Describe the bug
Having this model definition:
class MyModel(ModelSchema): class Meta: model = MyModel fields = ["id"]
Produces next definition on Swagger: id > (integer | null).
id > (integer | null)
However this definition:
class MyModel(ModelSchema): id: int class Meta: model = MyModel
Produces id* integer as expected. SQL is default — id bigint NOT NULL
id* integer
id bigint NOT NULL
Versions (please complete the following information):
Probably a duplicate of https://github.com/vitalik/django-ninja/issues/907
What does your MyModel orm model look like?
Describe the bug
Having this model definition:
Produces next definition on Swagger:
id > (integer | null)
.However this definition:
Produces
id* integer
as expected. SQL is default —id bigint NOT NULL
Versions (please complete the following information):
Probably a duplicate of https://github.com/vitalik/django-ninja/issues/907