-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(fix): support audiences on query parameters #4067
Conversation
for (const audience of this.audiences.audiences) { | ||
const parametersByAudience = queryParametersNode.parametersByAudience[audience]; | ||
if (parametersByAudience != null) { | ||
parametersForEndpoint.forEach((parameter) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be the following?
parametersForEndpoint.forEach((parameter) => { | |
parametersByAudience.forEach((parameter) => { |
if (properties == null) { | ||
// No audiences were configured. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amckinney how does this check differ from if the value is undefined
vs. the value is not present in the map?
Going to merge for now |
Previously audiences were only respected on inlined request parameters, but not query parameters.