Comments (6)
Hi !
This should not be the way to fix the issue ...
Do you mind sending your swagger descriptor as i can't reproduce using my samples?
from angular-swagger-ui.
Can't reproduce the issue with your file on the demo: http://orange-opensource.github.io/angular-swagger-ui/
Could you please show how you use the component ?
from angular-swagger-ui.
actually I am having the very same issue but only when I use the swagger-ui directive in a partial as part of a singe page app. if I put it in the index.html page like your example it works fine.
from angular-swagger-ui.
should be fixed in 0.2.2, can you confirm ?
from angular-swagger-ui.
0.2.2 did fix the ngRepeat:dupes error but now I have a new issue. every
time I hit the "open/hide", "list operations", "expand operations" buttons
I get two additional duplicate operations in the list. (see attached).
there should only be one. I also see the "error{}" now, which use to be
verify.
thanks
--greg
swagger doc:
{"info": {"version": "1.0.0", "contact": {"name":
"[email protected]"}, "description": "#### base connectors return the
contents of a file\n", "license": {"url":
"http://www.test.com/legal/license-agreements.aspx", "name": "Test
Inc."}, "title": "Base - Cloud Connectors", "copyright": "2015 Test
Inc. ALL RIGHTS RESERVED"}, "paths": {"/base": {"get": {"description":
"base connector description for get verb", "tags": ["base"],
"summary": "base connector summary for get verb", "responses": {"200":
{"description": "successful operation"}}, "produces":
["application/json"]}}}, "schemes": ["http"], "produces":
["application/json"], "basePath": "/connector", "tags": [{"name":
"base", "description": "base connector"}], "host": "localhost:8080",
"swagger": "2.0"}
[image: Inline images 1]
when I click the "error {}" I see the following:
[{"level":"error","message":"Can't read from file
http://localhost:8080/connectors/base"}]
but if I go to that link directly I get the swagger doc back like above.
On 21 August 2015 at 09:13, Mathieu Alès [email protected] wrote:
should be fixed in 0.2.2, can you confirm ?
β
Reply to this email directly or view it on GitHub
#17 (comment)
.
from angular-swagger-ui.
I finally reproduced the issue when using 'ngRoute'. If you do so, you can fix the issue by adding reloadOnSearch = false in your route configuration
from angular-swagger-ui.
Related Issues (20)
- render curl
- Html5 UI-router compatibiltiy HOT 1
- URL Parse Error when adding swagger-ui div HOT 2
- Publish older version on npm HOT 2
- Unable to npm install [email protected] HOT 3
- Node 8 support HOT 2
- Issue with rendering multiple api key in angular-swagger-ui HOT 3
- how to validate yaml by schema? HOT 1
- Syntax Error cant show petstore example HOT 8
- Question: Benefits & Comparisons HOT 2
- doesn't it support external references? HOT 4
- Works with any version lower than 0.5.0, but stops working from 0.5.0 HOT 5
- always the same model and sample when operationId is not specified HOT 3
- api key authorization configuration thru swaggerUiAuthProvider.credentials not working HOT 5
- Swagger UI page unresponsive for large swagger json HOT 6
- have a config to expand/list operations on load HOT 1
- Unknown provider: $swaggerTranslatorProvider HOT 1
- swagger ui fails to show sample response with items in response HOT 1
- Angular 7 support? HOT 2
- how to avoid sanitize? HOT 1
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 angular-swagger-ui.