opentripmodel / otm5-change-requests

Tracking and reporting bugs and change requests of the OTM5 specification.
5 stars 1 forks source link

Extend result reasons on actions #89

Open bmeesters opened 3 months ago

bmeesters commented 3 months ago

Type of request

Is your feature request related to a problem? The current actions contain a result that has a status and a reason. This result can be used to indicate how the action was completed (succeeded, failed, partially succeeded) and if something went wrong why it went wrong. The current possible reasons are damage and receiverAbsent. These reasons are not complete enough for most use cases.

Describe the solution you'd like Extend the reason list with:

I expect that these reasons are widely applicable for different type of logistic operations and fairly complete, at least looking at it from a higher level (why the location is unreachable does not need to be a status code).

Describe alternatives you've considered Currently we need to fallback to the remark, which is a free text string.

Additional context Add any other context or screenshots about the feature request here.

bmeesters commented 2 months ago

After some discussion I would like to add the option deliverPerInstructions to indicate the difference between something that was physically handed over to the receiving party, or the receiver was absent, but left instructions that could be successfully followed.