Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(path-order): don't trash previous parameter names (#504)
There's a routine which patches parameter names and it trashes previous attempts when it runs twice. I'm not sure this is meant to work but it seems that the only time we need this function is when we don't have param names, example: _p: web::Path<(bool, u32, String)> We seem to completely ignore param names and just name things from the path, example: get(ace: web::Path<bool>, user_id: web::Path<u32>, friend: web::Path<String>) This can actually be written as get(user_id: web::Path<bool>, ace: web::Path<u32>, friend: web::Path<String>) Which actually swaps parameters in the generate json!! Resolves: #501 Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information