We have the following code:
<Flow name="SomeFlow">
<Condition>
(proxy.pathsuffix MatchesPath "/some/path") OR (proxy.pathsuffix MatchesPath "/another/path")
</Condition>
<Request>
<!-- Request steps -->
</Request>
<Response>
<Condition>(proxy.pathsuffix MatchesPath "/some/path")</Condition>
<!-- Response steps -->
</Response>
</Flow>
This deploys and documentation suggest Condition is a valid child of Response https://cloud.google.com/apigee/docs/api-platform/reference/flow-configuration-reference?hl=en#child...
However the Response steps run in all cases. Also apigeelint (version 2.63.0) would also suggest Condition is not a valid child:
`error │ Misplaced 'Condition' element child of Response │ EP002`
Solved! Go to Solution.
Hey Guyz
@GuyZ wrote:
This deploys and documentation suggest Condition is a valid child of Response https://cloud.google.com/apigee/docs/api-platform/reference/flow-configuration-reference?hl=en#child...
Ooooo, yes the documentation does more than SUGGEST that Condition is valid there, it states it clearly. But that isn't right. a Condition as a child of Response, is ineffectual. You can place a Condition as a child of Step, within the Response.
Thanks for pointing this out; I'll get the documentation fixed.
EDIT: Fixed.
Hey Guyz
@GuyZ wrote:
This deploys and documentation suggest Condition is a valid child of Response https://cloud.google.com/apigee/docs/api-platform/reference/flow-configuration-reference?hl=en#child...
Ooooo, yes the documentation does more than SUGGEST that Condition is valid there, it states it clearly. But that isn't right. a Condition as a child of Response, is ineffectual. You can place a Condition as a child of Step, within the Response.
Thanks for pointing this out; I'll get the documentation fixed.
EDIT: Fixed.