Comments (5)
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.
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
from api-spec-converter.
@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.
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.
@robogeek I'm glad I could help 😄
from api-spec-converter.
Related Issues (20)
- Failed to fetch file
- High vulnerability?
- the example value not convert
- how to convert open api 3.1 to swagger 2.0 HOT 1
- Online version returns TypeError: NetworkError when attempting to fetch resource.
- Sequence of schema fields are always ordered alphabetical
- Add original sort order as top fields ordering HOT 1
- not able to load the openapi 3 json definition
- https://github.com/LucyBot-Inc/api-spec-converter/pull/131#issue-259070526
- teste
- g
- Fails to generate valid OpenAPI from API Blueprint
- try to run project local
- Error in /var/www/node/node_modules/drafter.js/lib/drafter.nomem.js:1 HOT 2
- swagger_2 -> openapi_3: Crash when body parameter is missing schema
- convert open API3 to API 2
- Conversion to yml HOT 1
- Firestore discovery specification
- Application as a new Maintainer HOT 1
- TypeError: NetworkError when attempting to fetch resource.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-spec-converter.