Comments (4)
Hi Micah,
Thanks for the feedback, answers see below.
May I ask in which context you are using this tool?
Thanks in advance
Ralf
Swagger/OpenAPI 2.0
The Swagger/OpenAPI 2.0 specification allows arrays of string values for type
in the Schema Object; the cited restriction to a single string value is only for headers and URL parameters.
The metadata url you mention is the origin of example odata-rw-v3.xml. Its OpenAPI 2.0 transformation output odata-rw-v3.openapi.json works fine in Swagger UI 2.x and Swagger Editor 2.10.5.
The online instance of Swagger Editor at http://editor.swagger.io is based on the brand new version 3.x of the combined Swagger UI/Editor, which does not yet cover all features of Swagger 2.0.
The online instance of Swagger UI (also based on the brand new version 3.x) is a little further ahead and works fine with the example, showing a green validator badge: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/oasis-tcs/odata-openapi/master/examples/odata-rw-v3.openapi.json
OpenAPI 3.0.0
The XSL transformation produces OpenAPI 3.0.0 output when setting the script parameter openapi-version
to 3.0.0
, e.g. odata-rw-v3.openapi3.json. It produces the new nullable
keyword for nullable properties.
This works fine with the online instance of Swagger UI; http://petstore.swagger.io/?url=https://raw.githubusercontent.com/oasis-tcs/odata-openapi/master/examples/odata-rw-v3.openapi3.json
It works less well with the online instance of Swagger Editor, which has some problems resolving external references during validation: http://editor.swagger.io/?url=https://raw.githubusercontent.com/oasis-tcs/odata-openapi/master/examples/odata-rw-v3.openapi3.json
from odata-openapi.
Hi Ralfhandl,
Thank you for the response and explanation. I am looking for something to use in a Node.js API gateway project that would dynamically display a Swagger UI for Odata endpoints. We are currently using this project https://github.com/akorchev/odata2openapi but it has fallen behind a bit and definitely not as crisp as the json generated from this project.
from odata-openapi.
Hi Micah,
Cool! Which XSLT processor are you planning to use?
Thanks in advance
Ralf
from odata-openapi.
from odata-openapi.
Related Issues (20)
- Specific OData XML file cannot be converted, only .tmp file is created HOT 2
- Error: spawnSync java ENOENT HOT 3
- Unexpected Token Error HOT 3
- Edm.Int64 PrimitiveType translated to anyOf["string", "integer"] HOT 2
- Support for /$count operation HOT 4
- Openapi specification only documents DELETE and PATCH for single entity URLs HOT 6
- SAP R3 FunctionImport: Documentation Tag in Parameter fails the generation HOT 4
- Property sap:label is not handled HOT 2
- <Key> in Schema creates errors HOT 1
- Empty output while converting `https://graph.microsoft.com/beta/$metadata` HOT 6
- FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory HOT 5
- More than two annotation target path segments HOT 5
- Unexpected node HOT 4
- Error in Conversion .edmx to OpenAPI format HOT 1
- documentation item HOT 2
- Could it be possible to generate for a part of the odataModel ? HOT 31
- Support annotation Core.ComputedDefaultValue
- TypeError: model.element(...).find is not a function HOT 4
- Missing cli feature: Add $metadata operation and root HOT 4
- Covert XMl to open api failes HOT 4
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 odata-openapi.