Giter Site home page Giter Site logo

Comments (13)

geeksville avatar geeksville commented on May 2, 2024

swagger-ui is working well for me, but I had to make a few small fixes. I suspect the one you want for this is:

Xeralux@688616e

from swagger-core.

angeloh avatar angeloh commented on May 2, 2024

I tried you patch.

First, I git pull latest changes from swagger-core repo, and publish local for swagger-play2. Make java-play2 to use local repo jars.
Then, I tried you patch. Remove local cache. Republish and recompile.

The result looks the same to me with or without your patch. Only /store.{format} have shown up on swagger-ui, not the other two (/pet and /user). Did you try java-play2 example at your local env?

from swagger-core.

cainj avatar cainj commented on May 2, 2024

I'm seeing this issue also, has it been resolved.

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

Hi, please pull from this branch:

https://github.com/wordnik/swagger-core/tree/1.1.0-spec

Which will be merged with master shortly. It should work fine and has been tested with the latest swagger-ui

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

correction on my last post--the scala play2 app is updated, the java-play2 sample will be shortly. Apologies on that!

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

@cainj, @angelokh, this is now fixed--I've committed the java-play2 sample changes here:

https://github.com/wordnik/swagger-core/tree/1.1.0-spec/samples/java-play2

The updated support is in the 1.1.0-SNAPSHOT for swagger-core as well as swagger-play2. You can build each module as needed, or you can grab them from Sonatype:

https://oss.sonatype.org/content/repositories/snapshots/com/wordnik/swagger-core_2.9.1/1.1.0-SNAPSHOT/

And swagger-play2 from our github repo:

http://wordnik.github.com/repository/com.wordnik/swagger-play2_2.9.1/1.1.0-SNAPSHOT/ivys/ivy.xml

Thanks for your patience with this--I'm going to keep this open until I hear that it's resolved the issue, which was based on reading the host class from the route + method name, which was different from java & scala (per our implementation at least):

e2bfd57

Tested with latest swagger-ui and swagger-codegen

from swagger-core.

cainj avatar cainj commented on May 2, 2024

I'm still see these errors. Everything works fine with scala-play, but the java-play not so well. PathParams are not showing up in swagger-ui

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

@cainj you mean the stock sample here:

https://github.com/wordnik/swagger-core/tree/1.1.0-spec/samples/java-play2

is not showing up in the ui for you? can you please wipe your ivy cache?

rm -rf ~/.ivy2/local && rm -rf ~/.ivy2/cache

and try again? I'm baffled, just ran the project and it's behaving nicely with the swagger ui.

from swagger-core.

cainj avatar cainj commented on May 2, 2024

Did as you suggested and came to the following conclusion. It works like a charm, when I run the sbt console, but if I use the play console, that's when the errors happen. So I think it's a play issue and not swagger. Although, if I run the scala-play2 with the play console it works fine.

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

aha! ivy strikes again. Please nuke your play ivy cache as follows:

rm -rf $PLAY_HOME/repository/cache/com.wordnik*  && rm -rf $PLAY_HOME/repository/local/com.wordnik*

That should do it--please post back after you give it a shot.

from swagger-core.

cainj avatar cainj commented on May 2, 2024

That did it. You are the man!

The ivy cache can really mess things up. Thanks again.

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

Awesome, glad that did it

from swagger-core.

fehguy avatar fehguy commented on May 2, 2024

closing this out, if issue comes back, please reopen. Now pushed to master, artifacts in maven central

from swagger-core.

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.