thiyagu06 / zally-gradle-plugin Goto Github PK
View Code? Open in Web Editor NEWGradle plugin for using the Zally linter
Home Page: https://thiyagu06.github.io/zally-gradle-plugin/
License: MIT License
Gradle plugin for using the Zally linter
Home Page: https://thiyagu06.github.io/zally-gradle-plugin/
License: MIT License
The zallyLint is failing now because, in the src/main/resources/rules-config.conf
, we have swagger pointing to "http://swagger.io/v2/schema.json" and its being redirected to "http://23.22.16.221/v2/schema.json".
This seems to be causing below issue.
2023-12-06T14:20:15.044+0530 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@52af4ba45 pairs: {GET /v2/schema.json HTTP/1.1: null}{User-Agent: Java/17.0.7}{Host: swagger.io}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}{Connection: keep-alive}
2023-12-06T14:20:15.279+0530 [DEBUG] [sun.net.www.protocol.http.HttpURLConnection] sun.net.www.MessageHeader@2772b71210 pairs: {null: HTTP/1.1 301 Moved Permanently}{Date: Wed, 06 Dec 2023 08:50:15 GMT}{Transfer-Encoding: chunked}{Connection: keep-alive}{Cache-Control: max-age=3600}{Expires: Wed, 06 Dec 2023 09:50:15 GMT}{Location: https://swagger.io/v2/schema.json}{Server: cloudflare}{CF-RAY: 831347bea8660664-IAD}{alt-svc: h3=":443"; ma=86400}
2023-12-06T14:20:15.298+0530 [ERROR] [org.zalando.zally.ruleset.zalando.UseOpenApiRule] Unable to load schema: http://swagger.io/v2/schema.json
java.lang.ClassCastException: class com.fasterxml.jackson.databind.node.NullNode cannot be cast to class com.fasterxml.jackson.databind.node.ObjectNode (com.fasterxml.jackson.databind.node.NullNode and com.fasterxml.jackson.databind.node.ObjectNode are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @4a9417a8)
at org.zalando.zally.ruleset.zalando.UseOpenApiRule.getSchemaValidators(UseOpenApiRule.kt:91)
at org.zalando.zally.ruleset.zalando.UseOpenApiRule.<init>(UseOpenApiRule.kt:38)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.zalando.zally.core.RulesManager$Companion$fromClassLoader$3.invoke(RulesManager.kt:19)
at org.zalando.zally.core.RulesManager$Companion$fromClassLoader$3.invoke(RulesManager.kt:10)
at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:786)
at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:816)
at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:807)
at org.zalando.zally.core.RulesManager$Companion.fromClassLoader(RulesManager.kt:25)
at org.thiyagu.zally.internal.ZallyFactory.<clinit>(ZallyFactory.kt:13)
at org.thiyagu.zally.internal.ZallyLintTask.action(ZallyLintTask.kt:29)
.....
.....
I believe the URL needs to changed for Swagger maybe to this ().
Also, is there a way to let the zallyLint use schema_urls.openapi3 instead of swagger?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.