Closed kevinresol closed 5 years ago
Since args/params/paths are tightly correlated we can't really split them completely.
So I decided to parse each route in the following order:
@:params
into Parameters
, with some prelim test against the raw arg list@:<method>
into Paths
, with some prelim test against the raw arg list (but not yet implemented)params
and paths
to create Arguments
, which is a "rich" arg list containing all useful information.I didn't (can't?) port the path deviation object because I am not sure what it is doing. @back2dos can you add a few test cases to illustrate it?
I removed the toCamelCase
transform (which is a breaking change) because we can now specify the exact header name by @:params(foo = header['x-tink-web'])
I removed the
toCamelCase
transform (which is a breaking change) because we can now specify the exact header name by@:params(foo = header['x-tink-web'])
and
function get(headers:{
@:name('x-bar') var bar:String;
});
Trying to cleanup the codebase to support #75. Old tests passes. Plus one new test case for #75 passing...
A few things missing:
routeMethod
, see code that are commented outNow I need to rest for a few days.