Comments (13)
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:
from swagger-core.
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.
I'm seeing this issue also, has it been resolved.
from swagger-core.
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.
correction on my last post--the scala play2 app is updated, the java-play2 sample will be shortly. Apologies on that!
from swagger-core.
@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:
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):
Tested with latest swagger-ui and swagger-codegen
from swagger-core.
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.
@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.
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.
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.
That did it. You are the man!
The ivy cache can really mess things up. Thanks again.
from swagger-core.
Awesome, glad that did it
from swagger-core.
closing this out, if issue comes back, please reopen. Now pushed to master, artifacts in maven central
from swagger-core.
Related Issues (20)
- Tolerate JAX-RS 2.2 in swagger-core so that it can be deployed in Liberty alongside features which use 2.2 HOT 1
- ServletConfig as unsatisfied dependency injected into OpenApiResource during quarkus augmentation
- Lack of configuration option in ‘Swagger Gradle Plugin’, which allows to include additional models
- Lack of configuration option in ‘Swagger Gradle Plugin’, which allows to specify discriminator and discriminator mapping
- Forced lower-casing of some property names in generated OpenAPI spec
- OpenAPI spec generated via latest version of ‘Swagger Gradle Plugin’ is not compatible with latest OpenAPI Generator CLI
- Despite having the JsonView specified, swagger response is resulting with all the objects of the entity
- Support jakarta.xml.bind-api for spring boot 3 apps HOT 2
- ArraySchema annotation items() value does not appear to be properly supported HOT 1
- Discarded Explode attribute in Header and Parameter Annotation HOT 1
- How to define properties on @Schema?
- I am not able to use formData parameter
- swagger-core depends on wrong artifacts
- MavenGate (CVE)
- OpenAPI 3.1 SpecFilter.removeBrokenReferenceDefinitions brokes ArraySchema processing
- Resolve JsonSchema refs
- Where does the example json get rendered?
- SwaggerAnnotationIntrospector does not support JakartaEE apis HOT 4
- ArraySchema with anyOf is setting type of the items to "string"
- Why does Schema(description="foo") change generated openapi enum type to type: object?
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-core.