api-platform-samples
api-platform-samples copied to clipboard
HTTPTargetConnection not part of TargetEndpoint within the configuration_schemas.xsd
I've created a TargetEndpoint and used the configuration_schemas.xsd. My IDE (IntelliJ) complains that HTTPTargetConnection
is not allowed and IMO the reason is, that its missing in the xsd.
The same is true for the HTTPProxyConnection
in the ProxyEndpoint
.
Example:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TargetEndpoint
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/apigee/api-platform-samples/master/schemas/configuration/configuration_schemas.xsd"
name="default">
<PreFlow name="PreFlow">
<Request>
<Step>
<Name>am-custompathprefix-default</Name>
</Step>
</Request>
<Response/>
</PreFlow>
<Flows>
<Flow name="add-user-path">
<Description>Adds /user as path prefix to certain endpoints</Description>
<Request>
<Step>
<Name>am-custompathprefix-user</Name>
</Step>
</Request>
<Response/>
</Flow>
</Flows>
<PostFlow name="PostFlow">
<Request/>
<Response/>
</PostFlow>
<HTTPTargetConnection>
<LoadBalancer>
<Server name="test"/>
</LoadBalancer>
<Path>{customPathPrefix}</Path>
</HTTPTargetConnection>
</TargetEndpoint>
Yeah, while the XSDs for the policies seem to be pretty complete, this one seems incomplete.