apigee / api-platform-samples

Working samples for the Apigee API Platform
Apache License 2.0
498 stars 713 forks source link

HTTPTargetConnection not part of TargetEndpoint within the configuration_schemas.xsd #116

Open patrick-zinner opened 4 years ago

patrick-zinner commented 4 years ago

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>
michaelpaesold commented 4 years ago

Yeah, while the XSDs for the policies seem to be pretty complete, this one seems incomplete.