mirror of
https://github.com/nspcc-dev/neofs-api.git
synced 2026-03-01 04:28:54 +00:00
Clarify the absence of fields with nested messages #67
Labels
No labels
I0
I1
I2
I3
I4
S0
S1
S2
S3
S3
S4
U2
U3
U4
bug
discussion
discussion
documentation
enhancement
enhancement
enhancement
feature
good first issue
question
task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-api#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cthulhu-rider on GitHub (Apr 12, 2022).
There are plenty of fields of
messagetype. I propose to explicitly write in docs whether the field MUST be set.Where it is not written otherwise, I suggest to require field presence. Later we can relax the requirement, which would be a backwards compatible change.
These requirements will reduce the number of uncertainties when writing software.
Note: this only applies to fields in requests/responses.
@cthulhu-rider commented on GitHub (May 26, 2022):
We decided to consider all nested fields mandatory by default (where would you explicitly write about this?), and if an empty field is allowed, explicitly state this in the containing message.