aboutsummaryrefslogtreecommitdiffstats
path: root/openapi
diff options
context:
space:
mode:
Diffstat (limited to 'openapi')
-rw-r--r--openapi/build.gradle29
-rw-r--r--openapi/src/main/resources/api/api.yml6
2 files changed, 19 insertions, 16 deletions
diff --git a/openapi/build.gradle b/openapi/build.gradle
index 505ac7b..63c32b5 100644
--- a/openapi/build.gradle
+++ b/openapi/build.gradle
@@ -4,14 +4,20 @@ plugins {
}
ext {
- openapiVersion = '6.0.1'
+ openapiVersion = '6.6.0'
}
dependencies {
implementation "org.openapitools:openapi-generator:$openapiVersion"
- // NOTE(KE) needed to add these dependencies, check in next version whether its removable...
- // https://github.com/OpenAPITools/openapi-generator/issues/8360
- compileOnly "io.springfox:springfox-swagger2:3.0.0"
+
+ constraints {
+ implementation('io.swagger.core.v3:swagger-annotations:2.2.5') {
+ because 'there is a dependency conflict between swagger-parser versions 2 and 3 (https://github.com/OpenAPITools/openapi-generator/issues/14901)'
+ }
+ implementation('javax.validation:validation-api:2.0.1.Final') {
+ because 'because min max validation wouldnt work with older version of dependency'
+ }
+ }
}
// https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator-gradle-plugin/README.adoc
@@ -21,13 +27,14 @@ openApiGenerate {
inputSpec = "$projectDir/src/main/resources/api/api.yml"
outputDir = "$buildDir/openapi"
configOptions = [
- openApiNullable: "false",
- skipDefaultInterface: "true",
- dateLibrary: "java8",
- interfaceOnly: "true",
- useTags: "true",
- useOptional: "true",
- reactive: "true"
+ hideGenerationTimestamp: "true",
+ openApiNullable: "false",
+ skipDefaultInterface: "true",
+ dateLibrary: "java8",
+ interfaceOnly: "true",
+ useTags: "true",
+ useOptional: "true",
+ reactive: "true"
]
generateApiTests = false
generateApiDocumentation = false
diff --git a/openapi/src/main/resources/api/api.yml b/openapi/src/main/resources/api/api.yml
index 1ab2d86..968a6f1 100644
--- a/openapi/src/main/resources/api/api.yml
+++ b/openapi/src/main/resources/api/api.yml
@@ -4,11 +4,7 @@ info:
version: '1.0'
description: API to provide actions for portal-history
servers:
- - url: 'http://localhost:9002/{base}'
- variables:
- base:
- default: 'portal-history'
- description: Basepath
+ - url: 'http://localhost:9002'
tags:
- name: actions
paths: