<parameterTokens>
<token name="direction">{string} direction (optional) The direction that the results are sorted.</token>
</parameterTokens>
@api-param:private {direction} [asc|default|desc] Sort direction
Is compiled into API Blueprint as:
- `direction` (enum[string]) - The direction that the results are sorted. Sort direction
+ Members
+ `asc`
+ `default`
+ `desc`
The problem with fixing this is that right now we're doing a straight string replace for the token, and that doesn't care about the existing data.
I don't exactly know how to fix this other than running a quick parse of the existing parameter (pre-token replacement) to parse out its data, then drop the token in, re-parse and replace the tokens' data with the previously parsed content.
This is also going to be problematic with the coming MOSN work (#42), but that's going to most likely require revisiting the entire concept of parameter tokens.
Is compiled into API Blueprint as:
The problem with fixing this is that right now we're doing a straight string replace for the token, and that doesn't care about the existing data.
I don't exactly know how to fix this other than running a quick parse of the existing parameter (pre-token replacement) to parse out its data, then drop the token in, re-parse and replace the tokens' data with the previously parsed content.
This is also going to be problematic with the coming MOSN work (#42), but that's going to most likely require revisiting the entire concept of parameter tokens.