Coder Social home page Coder Social logo

Comments (6)

mathieuales avatar mathieuales commented on September 24, 2024

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.

mathieuales avatar mathieuales commented on September 24, 2024

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.

bodinegl avatar bodinegl commented on September 24, 2024

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.

mathieuales avatar mathieuales commented on September 24, 2024

should be fixed in 0.2.2, can you confirm ?

from angular-swagger-ui.

bodinegl avatar bodinegl commented on September 24, 2024

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.

mathieuales avatar mathieuales commented on September 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.