Closed plwai closed 4 years ago
Close this issue since this is not applicable.
For the first case, the handler will not be hit if :id
is not found.
For the second case, forms, json and string query come with keyvalue
pair. If there is no struct, it is not possible to map the value.
Enable Option as the type.
Proposal
Params
If
:id
cannot be parsed, it will be None.Forms/Query
If
item
cannot be found, it will be None. Apply to fields in struct as well.