Giter Site home page Giter Site logo

Comments (5)

IvanGoncharov avatar IvanGoncharov commented on June 16, 2024

The WADL is the SEP2 WADL from ZigBee which can be retrieved for free from here:

@robogeek Can you please post a direct link or attach the file.

The data output from the util.inspect shows the root.$ object has a resource object but not a base object.

According to WADL spec:

A resources element has a base attribute of type xsd:anyURI that provides the base URI for each child resource identifier

So base is required field, moreover according to Swagger spec:

If the host is not included, the host serving the documentation is to be used (including the port).

So if we don't add any host in Swagger file it will confuse tooling.

A possible workaround would be to manually add base attribute.

On our side, we need to improve error reporting.

I didn't have a file to investigate so following analysis made based on your comment.
I still want to look at it, because it may have similar attribute under different name.

from api-spec-converter.

robogeek avatar robogeek commented on June 16, 2024

Okay, there doesn't seem to be a license attached to the file, so it's okay to share it here it seems. The .zip archive has both the sep_wadl.xml and corresponding sep.xsd

Archive 2.zip

from api-spec-converter.

IvanGoncharov avatar IvanGoncharov commented on June 16, 2024

@robogeek Thanks for attaching archive it allowed me to browse through the file.
I found that ZigBee uses their own vendor extensions: xmlns:wx="http://zigbee.org/wadlExt".
According to this issue:

This is because this WADL is intended to serve as normative guidance, with manufacturers first needing to transform the "wx:" elements and attributed to WADL equivalents.

So you need to do above transformation before doing a conversion.

from api-spec-converter.

robogeek avatar robogeek commented on June 16, 2024

Hm, thank you for the advice. This is my first time doing anything with WADL so I've got some things to learn ... did some remedial reading today, and I've got an inkling of what you said to do.

from api-spec-converter.

IvanGoncharov avatar IvanGoncharov commented on June 16, 2024

@robogeek I'm glad I could help 😄

from api-spec-converter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.