Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Documentation bug for Response child elements?

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 Solved
0 1 60
1 ACCEPTED 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.

dchiesa1_0-1744053498284.png

 

View solution in original post

1 REPLY 1

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.

dchiesa1_0-1744053498284.png