You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To put you in context, I'm developing an API with Loopback 4 using datasource templating and they use {} as delimiters. My idea was to join their bindings with my own thanks to your lib.
Maybe it could also be related with #12 because with custom delimiters, this error could be work-arounded.
The text was updated successfully, but these errors were encountered:
ericzon
changed the title
Ignore slots without provided value
Ignore slots without value provided
Nov 2, 2019
I think the code could be modified to do this but it would be a breaking change if not flagged. The module was designed for use where the named values are supplied every time and this was a performance tradeoff.
I will also mention that your example is dangerous and not a good use case for string template as these values need to be escaped properly to form a valid URL, otherwise it is subject to url rewriting though setting a malicious user variable.
First of all, thank you for your lib :)
I'm experiencing a possible bug. If I try this example:
The result is like this:
parameterValue1 is lost. I should expect an output like this:
"https://Eric:a [email protected]/api/endpoint1?parameter1={parameterValue1}";
To put you in context, I'm developing an API with Loopback 4 using datasource templating and they use {} as delimiters. My idea was to join their bindings with my own thanks to your lib.
Maybe it could also be related with #12 because with custom delimiters, this error could be work-arounded.
The text was updated successfully, but these errors were encountered: