mermade / openapi-webconverter Goto Github PK
View Code? Open in Web Editor NEWMermade Swagger 2.0 to OpenAPI 3.0.0 converter front-end
Home Page: https://mermade.org.uk/openapi-converter
License: BSD 3-Clause "New" or "Revised" License
Mermade Swagger 2.0 to OpenAPI 3.0.0 converter front-end
Home Page: https://mermade.org.uk/openapi-converter
License: BSD 3-Clause "New" or "Revised" License
Hi Mike. Great work!
Just a small improvement.
curl -k -i https://openapi-converter.herokuapp.com/api/v1/validate?url=https://openapi3.herokuapp.com:443/api/openapi.json -H
pplication/json"
Returns text/html
instead of application/json
:
HTTP/1.1 200 OK
Server: Cowboy
Connection: keep-alive
X-Powered-By: Express
Content-Type: text/html; charset=utf-8
Content-Length: 15
Etag: W/"f-NQVRlQfKHCoInEbhALgECMonhCE"
Vary: Accept-Encoding
Date: Wed, 08 Mar 2017 16:53:32 GMT
Via: 1.1 vegur
{"status":true}
Hi -
Your other tool (https://github.com/Mermade/openapi-gui) attempts to communicate with hosted "converter" (when provided swagger-json is v2); however, it won't work because of cross-domain configuration is missing on the target (https://openapi-converter.herokuapp.com/api/v1/convert). Just thought I should report this :)
Thanks.
Hari
Hi Mark,
Great job so far, thank you for maintaining the package.
I would like to flag an issue with the POST validate endpoint. If I send a yaml content with application/json
accept header, the response I get back has the header Content-Type: application/json
but the response payload is actually not a JSON but a status: true
in plain text without curly braces.
Happy to investigate and create a PR as needed.
Hello,
I found a LFI vulnerability in the validate endpoint by pointing the url parameter to any file the process has access to.
It's caused by using fs.readFileSync() without any kind of user input check in the superFetch function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.