Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error validating GPX response with schema #170

Closed
aoles opened this issue May 3, 2018 · 2 comments
Closed

Error validating GPX response with schema #170

aoles opened this issue May 3, 2018 · 2 comments
Assignees
Labels
bug Erroneous behavior of the backend

Comments

@aoles
Copy link
Member

aoles commented May 3, 2018

There seem to be some problem with the GPX response format or the schema describing it. When I try to validate the resulting XML with XSD I get several errors:

Element '{https://raw.githubusercontent.com/GIScience/openrouteservice-schema/master/gpx/v1/ors-gpx.xsd}type': [facet 'enumeration'] The value '2' is not an element of the set {'11', '0', '1', '6', '5', '7', '4', '3'}.

These seem to be triggered by the presence of the <type>2</type> nodes which are not listed here.

<gpx version="1.0" creator="openrouteservice">
  <rte>
    <rtept>
      <extensions>
        <type>2</type>
      </extensions>
    </rtept>
  </rte>
</gpx>
@MichaelsJP
Copy link
Member

@aoles Thx for pointing this out. I will upload the fix in a minute!
Link to the correct issue --> GIScience/openrouteservice-schema#1

@aoles
Copy link
Member Author

aoles commented May 4, 2018

Thanks, I confirm that the now the XML validates fine.

@aoles aoles closed this as completed May 4, 2018
MichaelsJP pushed a commit that referenced this issue Jun 28, 2018
MichaelsJP pushed a commit that referenced this issue Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Erroneous behavior of the backend
Projects
None yet
Development

No branches or pull requests

2 participants