Closed molon closed 5 years ago
And sometimes we need write-only fields. eg: password
with the first question, I have used protoc-gen-atlas-validate
and field_presence
to solve it.
But I disable the FieldMasks
for gateway to prevent wrong usage(https://github.com/agilab/atlas-app-toolkit/commit/c2a67b5120c88db3acb51181a4021fcfd18579b3).
@molon how did you create a password field? and probably the password_hash field?
There are readonly fields many time.
I have tried this library. https://github.com/infobloxopen/protoc-gen-atlas-validate Then I cant assign the
created_at
field inrequest.payload
. But~ thecreated_at
was still be updated to empty. Because If I don't assign thecreated_at
field, it will be transfer into request as empty value.