Comments (7)
@MahatmaFatalError agreed, let me take a look on this.
from swagger-brake.
Thanks for fixing. Is there a plan for the 2.0.0 release? Maybe SNAPSHOT?
from swagger-brake.
@MahatmaFatalError plan is there but I dont have an exact date yet, most probably it will happen in the upcoming 2 weeks or so. In the meantime you can give it a try with the snapshot version. In case you are looking for a CLI, you can do a build yourself from master.
In case its the lib you are looking for, then its 1.2.0-SNAPSHOT.
from swagger-brake.
I build master locally via gradlew clean build shadowJar
and run the jar file. However, it crashes with
Exception occured
io.redskap.swagger.brake.runner.exception.LatestArtifactDownloadException: Error while downloading the latest version of the artifact
at io.redskap.swagger.brake.runner.download.ArtifactDownloaderHandler.handle(ArtifactDownloaderHandler.java:44)
at io.redskap.swagger.brake.runner.Runner.run(Runner.java:37)
at io.redskap.swagger.brake.runner.Starter.start(Starter.java:15)
at io.redskap.swagger.brake.cli.Cli.start(Cli.java:34)
at io.redskap.swagger.brake.cli.SwaggerBrakeMain.main(SwaggerBrakeMain.java:16)
Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file
at io.redskap.swagger.brake.maven.jar.ApiFileJarResolver.resolve(ApiFileJarResolver.java:43)
at io.redskap.swagger.brake.runner.download.ArtifactDownloaderHandler.handle(ArtifactDownloaderHandler.java:39)
... 4 common frames omitted
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:225)
at java.util.zip.ZipFile.<init>(ZipFile.java:155)
at java.util.jar.JarFile.<init>(JarFile.java:166)
at java.util.jar.JarFile.<init>(JarFile.java:130)
at io.redskap.swagger.brake.maven.jar.JarScanner.find(JarScanner.java:25)
at io.redskap.swagger.brake.maven.jar.ApiFileJarResolver.findSwaggerFile(ApiFileJarResolver.java:48)
at io.redskap.swagger.brake.maven.jar.ApiFileJarResolver.resolve(ApiFileJarResolver.java:35)
... 5 common frames omitted
BTW, why is --maven-snapshot-repo-url
still mandatory? Wouldn't it be sufficient to specify either --maven-repo-url
or --maven-snapshot-repo-url
that gets compared to local?
from swagger-brake.
@MahatmaFatalError Making either of those 2 options optional was on the table already, didn't have the time to do so until now. I just pushed a new commit. Please try that and let me know if it works.
If not, let's open a new issue with your actual problem. Thanks!
from swagger-brake.
I tried with the lastest commit and omitting the snapshot repo uri and got:
Seems like latest artifact resolution is intended to be used but missing some of the parameters
Exception occured
java.lang.IllegalArgumentException: oldApiPath must be provided
at io.redskap.swagger.brake.runner.Runner.run(Runner.java:40)
at io.redskap.swagger.brake.runner.Starter.start(Starter.java:15)
at io.redskap.swagger.brake.cli.Cli.start(Cli.java:34)
at io.redskap.swagger.brake.cli.SwaggerBrakeMain.main(SwaggerBrakeMain.java:16)
However, I think this issue is not related to the new code changes but rather on our infrastructure where the jar containing the swagger is packed in a mtar file.
from swagger-brake.
@MahatmaFatalError the implementation had a bug. Please check out the latest commit and let me know how it goes. :-)
from swagger-brake.
Related Issues (20)
- Include version number into report and filename HOT 5
- UnsupportedClassVersionError: SwaggerBrakeMain has been compiled by a more recent version HOT 3
- Add support for packaging type .yaml HOT 3
- Exception when comparing swagger files HOT 2
- Recursive schema throws NPE HOT 1
- swagger-brake not reporting violation in breaking changes | MIN/MAX validation | POST object mandatory field validation HOT 6
- Support for String minLength/maxLength constraints
- Support for Array minItems/maxItems/uniqueItems constraints
- Required fields in nested definitions are being reported as breaking when they are not HOT 3
- Add support for war files
- Schema class attributeRequiredMap.get(attrToSearchFor); returning null HOT 5
- java.lang.OutOfMemoryError upon first try HOT 16
- Dependency Dashboard
- JDK upgrade
- JUnit 4 migration to JUnit 5
- Upgrade OpenAPI parser
- Switch Docker image build to Google Jib
- Report all changes optionally HOT 1
- Swagger brake cli jar in maven repository HOT 1
- False negatives when removing deprecated properties from models HOT 4
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-brake.