Comments (7)
I was wondering this same thing. Does the spec have to be in JSON? If so, can you add this note in the theme's documentation?
from swagger-ui.
This is not supported by swagger-ui.
Please check:
swagger-api#595
from swagger-ui.
Swagger UI does work with YAML currently, it's just not clearly documented. The "tricky" part is that you actually have to make sure your server is sending the YAML file with the content type set to "application/yaml". Once that's in place it works as expected.
from swagger-ui.
Confirmed. I tried to merge this theme with newest swagger-ui (2.1.4). YAML file load, but it looks like some CSS styles don't apply anymore (did they change HTML structure?).
from swagger-ui.
@KamilKopaczyk did you ever get this working? Do you have a fork I could take a look at?
from swagger-ui.
I changed the package.json
file from:
"swagger-client": "git+https://github.com/jensoleg/swagger-js.git"
to:
"swagger-client": "git+https://github.com/swagger-api/swagger-js.git"
And ran:
npm update
gulp
After that, this project supports YAML ;-) But, some little things (like label colors) are broken...
from swagger-ui.
@gabrielrcouto I change the package.json file but after npm update causing me some error.
It would be benefit for all if you could give the link to your repository so we can fork it
from swagger-ui.
Related Issues (20)
- Installation Doc
- Failed to load resource: the server responded with a status of 504 (Outdated Optimize Dep) HOT 1
- Ability to split body params into single input boxes
- No CURL support (?)
- How to re-publish updated source? HOT 2
- JsonEdittor Configuration Css not working properly
- Try out form does not work when POST with application/x-www-form-urlencoded
- Deeper reference does not work
- Array or list parameter does not seem to work ! HOT 1
- How can i display 'Introduction'
- Not working enum references
- I will rebuild css in SASS (scss) if someone can walk me through current version
- The navigation seems to get buggy sometimes
- Installation guide?
- Is this still maintained? HOT 3
- Support for OAS 3.0?
- Angular
- Custom Layout
- SideBar not expanding HOT 1
- Any pre-built docker image available?
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 swagger-ui.