Comments (7)
I didn't realize this was still in the core! Looking into alternatives to it and will get back to you soon.
from swagger-core.
Yikes! Thanks for reporting this.
from swagger-core.
btw - here's a possible fix if you want it. Worked well for my case: Xeralux@8dac1cf
from swagger-core.
@geeksville that'll work but we probably want to externalize this to make it configurable in swagger.
from swagger-core.
Opened issue 51 which I believe is related to this issue and can possibly resolve this issue along the way.
from swagger-core.
This is addressed in the 1.1-spec branch:
https://github.com/wordnik/swagger-core/tree/1.1.0-spec
You can configure the package in you web.xml through an init-param:
<init-param>
<param-name>api.model.packages</param-name>
<param-value>com.your.project</param-value>
</init-param>
This isn't typically needed--there is a default exclusion criteria which passes all the unit tests in SpecReaderTest.scala
. But if you want to only include a certain package, please use the web.xml param per above
from swagger-core.
pushed to master and released in 1.1.0. You can take the default filtering which is sensible--or put your own in web.xml or via programmatic configuration in the TypeUtil:
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.