socotecio / django-socio-grpc

gRPC for Django.
https://django-socio-grpc.readthedocs.io/
Apache License 2.0
104 stars 22 forks source link

model fields with default values -> shoud be generated as "optional" in the proto file #227

Closed markdoerr closed 1 year ago

markdoerr commented 1 year ago

Hi, in the current implementation, model fields with a default value will be generated as "mandatory" in the proto file (see, e.g. model.py and the generated proto file

Expected behavior: Since there is default value provided for this field, it should be optional to provide a different value.

legau commented 1 year ago

Same as #171