-
Notifications
You must be signed in to change notification settings - Fork 65
Open API 3.0 #86
Comments
At this time the JSON schema of OpenAPI 3.0 is not available yet (OAI/OpenAPI-Specification#1032). Please skip the validation. Other tools seem:
|
Is the plugin able to generate code when skipping the validation for OpenAPI 3.0? |
Yes. Just run the Sorry I have tested code generation with the latest snapshot version of |
Just an FYI, the JSON Schema will not be able to completely validate an OpenAPI document. It can partially validate it, but if you need a valid OpenAPI description you should not rely on JSON Schema. |
I've used jitpack to get plugin working. Used the commit I used to test my fix to generators: // Substitute generators module
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'io.swagger' && details.requested.name == 'swagger-codegen-generators' && details.requested.version == '1.0.0-SNAPSHOT') {
details.useTarget "com.github.motorro:swagger-codegen-generators:772f1c3e8b9efc7d7220c96067870471895054cb"
}
}
}
dependencies {
// Codegen dependency
swaggerCodegen 'com.github.swagger-api:swagger-codegen:b5c8b2162f5f34ff8db10c87461ea6e8aa066f76'
// Generators dependency
swaggerCodegen 'com.github.motorro:swagger-codegen-generators:772f1c3e8b9efc7d7220c96067870471895054cb'
} Used as a temporary solution of course - just to get my model and API definition in a client project. |
Hi! Caused by: java.lang.IllegalStateException: Add swagger-codegen-cli to dependencies of the project as follows: It is now: When can we expect support for this one? |
Yes, the new 3.x line will be supported in the near future. |
I have released 2.14.0 and now it supports Swagger Codegen V3. Note that it does not yet support OpenAPI 3 YAML validation. |
Hi! 16:56:54.780 [Thread-388] WARN io.swagger.codegen.v3.utils.URLPathUtil - Not valid URL: https://test.api.com:{port}/{basePath} |
It would be great to get Open API v3 validation. |
I am using 2.18.1 version. The validateSwagger task is failed when it validates openapi.yaml (3.0.2). |
Does the plugin support pOpen API 3.0?
I tried using the petstore example and the validation fails.
The text was updated successfully, but these errors were encountered: