Make split info a status #127

Open
opened 2025-12-28 18:12:39 +00:00 by sami · 1 comment
Owner

Originally created by @cthulhu-rider on GitHub (Jun 17, 2025).

are response body fields. In general, split info is a particular response payload. However, it is mutex with "normal" data - header and/or payload chunks. This makes it more of a response status

in Go SDK, https://pkg.go.dev/github.com/nspcc-dev/neofs-sdk-go/object#SplitInfoError is an error, and they are also kinda status

Describe the solution you'd like

dedicate new status code for split info. nspcc-dev/neofs-api@cf4caf57e9/object/types.proto (L314) itself will be a detail. Deprecate body field. Require servers to respond w/o body depending on the nspcc-dev/neofs-api@cf4caf57e9/session/types.proto (L164) field

Describe alternatives you've considered

no more

Additional context

developing new object GET API

Originally created by @cthulhu-rider on GitHub (Jun 17, 2025). ## Is your feature request related to a problem? Please describe. * https://github.com/nspcc-dev/neofs-api/blob/cf4caf57e98938fddbbee07369ee2999a5dd1ca2/object/service.proto#L303 * https://github.com/nspcc-dev/neofs-api/blob/cf4caf57e98938fddbbee07369ee2999a5dd1ca2/object/service.proto#L479 * https://github.com/nspcc-dev/neofs-api/blob/cf4caf57e98938fddbbee07369ee2999a5dd1ca2/object/service.proto#L678 are response body fields. In general, split info is a particular response payload. However, it is mutex with "normal" data - header and/or payload chunks. This makes it more of a response status in Go SDK, https://pkg.go.dev/github.com/nspcc-dev/neofs-sdk-go/object#SplitInfoError is an `error`, and they are also kinda status ## Describe the solution you'd like dedicate new status code for split info. https://github.com/nspcc-dev/neofs-api/blob/cf4caf57e98938fddbbee07369ee2999a5dd1ca2/object/types.proto#L314 itself will be a detail. Deprecate body field. Require servers to respond w/o body depending on the https://github.com/nspcc-dev/neofs-api/blob/cf4caf57e98938fddbbee07369ee2999a5dd1ca2/session/types.proto#L164 field ## Describe alternatives you've considered no more ## Additional context developing new object GET API
Author
Owner

@roman-khimov commented on GitHub (Jun 20, 2025):

It looks to me as something nice to have, but not worth the change at the same time.

@roman-khimov commented on GitHub (Jun 20, 2025): It looks to me as something nice to have, but not worth the change at the same time.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-api#127
No description provided.