Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Syntax error when processing this sample #57

Open
ernani opened this issue Nov 16, 2020 · 0 comments
Open

Syntax error when processing this sample #57

ernani opened this issue Nov 16, 2020 · 0 comments

Comments

@ernani
Copy link

ernani commented Nov 16, 2020

<cache-lookup-value key="@(context.Request.MatchedParameters.GetValueOrDefault("place="""))" variable-name="latlong"/>

It seems that this snippet:

context.Request.MatchedParameters.GetValueOrDefault("place=""") // fails with a missing comma.

whilst using it this way:

context.Request.MatchedParameters.GetValueOrDefault("place", "") // works without an issue.

The other parts where there is a variable with var="" under double quotes, the parser doesn't like much.

MarkusMeyer13 added a commit to MarkusMeyer13/api-management-policy-snippets that referenced this issue Apr 7, 2021
MarkusMeyer13 added a commit to MarkusMeyer13/api-management-policy-snippets that referenced this issue Apr 7, 2021
mikebudzynski pushed a commit that referenced this issue Oct 18, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant