Skip to content

Bug When using rax:anyMatch on XSD headers #383

Description

@RackerWilliams

The following results in a error where there are multiple occurances of header steps with the same ID. It describes a tenant header that can simultaneously be an integer and a boolean value. Removing rax:anyMatch resolves the issue, but performance an all match.

    <application xmlns="http://wadl.dev.java.net/2009/02"
             xmlns:rax="http://docs.rackspace.com/api"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <resources base="https://test.api.openstack.com">
        <resource path="/v1/resource"
                  rax:roles="a:admin/{X-TENANT}">
            <param name="X-TENANT" style="header" required="true" type="xsd:int"
                   repeating="true" rax:anyMatch="true"/>
            <param name="X-TENANT" style="header" required="true" type="xsd:boolean"
                   repeating="true" rax:anyMatch="true"/>
            <param name="X-OTHER" style="header" required="true" type="xsd:string"
                   repeating="false"/>
            <method name="POST" rax:roles="a:creator/{X-TENANT}"/>
            <method name="GET"  rax:roles="a:observer/{X-TENANT}"/>
            <method name="PUT" rax:roles="a:updater/{X-TENANT}"/>
            <method name="DELETE"/>
            <resource path="other">
                <method name="POST" rax:roles="a:creator/{X-TENANT}"/>
                <method name="GET"  rax:roles="#all"/>
                <method name="PUT"  rax:roles="a:updater/{X-TENANT}"/>
                <method name="DELETE"/>
            </resource>
        </resource>
    </resources>
      </application>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions