Skip to content

Commit 52566a3

Browse files
committed
Merge branch 'main' into issues/445-clusterinfo
2 parents d874a37 + 451ecf5 commit 52566a3

File tree

3 files changed

+30
-13
lines changed

3 files changed

+30
-13
lines changed

contract/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
33
plugins {
44
id "java-library"
55
alias(libs.plugins.openapi.generator)
6+
alias(libs.plugins.openapi.validator)
67
}
78

89

@@ -60,6 +61,21 @@ tasks.register('generateBackendApi', GenerateTask) {
6061
"""]
6162
}
6263

64+
openAPIStyleValidator {
65+
inputFile = "${project.projectDir}/src/main/resources/swagger/kafbat-ui-api.yaml"
66+
validateModelPropertiesDescription = false
67+
validateModelPropertiesExample = false
68+
parameterNamingConvention = "UnderscoreCase"
69+
propertyNamingConvention = "camelCase"
70+
queryParamNamingConvention = "camelCase"
71+
pathParamNamingConvention = "camelCase"
72+
validateOperationDescription = false
73+
validateInfoLicense = false
74+
validateInfoDescription = false
75+
validateInfoContact = false
76+
}
77+
78+
6379
tasks.register('generateConnectClient', GenerateTask) {
6480
generatorName = "java"
6581
inputSpec = specDir.file("kafka-connect-api.yaml").asFile.absolutePath

contract/src/main/resources/swagger/kafbat-ui-api.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2157,7 +2157,7 @@ paths:
21572157
204:
21582158
description: Existing quota deleted
21592159

2160-
/api/clusters/{clusterName}/acl/streamApp:
2160+
/api/clusters/{clusterName}/acl/streamapp:
21612161
post:
21622162
tags:
21632163
- Acls
@@ -2486,7 +2486,6 @@ components:
24862486
- KAFKA_ACL_EDIT # create & delete ACLs
24872487
- CLIENT_QUOTA_MANAGEMENT
24882488
required:
2489-
- id
24902489
- name
24912490
- status
24922491

@@ -3237,7 +3236,6 @@ components:
32373236
type: integer
32383237
format: int64
32393238
required:
3240-
- topic
32413239
- partition
32423240
- offsetMax
32433241
- offsetMin
@@ -3577,21 +3575,21 @@ components:
35773575
type: integer
35783576
state:
35793577
$ref: '#/components/schemas/ConnectorTaskStatus'
3580-
worker_id:
3578+
workerId:
35813579
type: string
35823580
trace:
35833581
type: string
35843582
required:
35853583
- id
35863584
- state
3587-
- worker_id
3585+
- workerId
35883586

35893587
ConnectorStatus:
35903588
type: object
35913589
properties:
35923590
state:
35933591
$ref: '#/components/schemas/ConnectorState'
3594-
worker_id:
3592+
workerId:
35953593
type: string
35963594
required:
35973595
- state
@@ -3656,7 +3654,7 @@ components:
36563654
- STRING
36573655
required:
36583656
type: boolean
3659-
default_value:
3657+
defaultValue:
36603658
type: string
36613659
importance:
36623660
type: string
@@ -3675,7 +3673,7 @@ components:
36753673
- MEDIUM
36763674
- LONG
36773675
- NONE
3678-
display_name:
3676+
displayName:
36793677
type: string
36803678
dependents:
36813679
type: array
@@ -3691,7 +3689,7 @@ components:
36913689
type: string
36923690
value:
36933691
type: string
3694-
recommended_values:
3692+
recommendedValues:
36953693
type: array
36963694
items:
36973695
type: string
@@ -3715,7 +3713,7 @@ components:
37153713
properties:
37163714
name:
37173715
type: string
3718-
error_count:
3716+
errorCount:
37193717
type: integer
37203718
groups:
37213719
type: array
@@ -3801,7 +3799,7 @@ components:
38013799
type: string
38023800
name:
38033801
type: string
3804-
connector_class:
3802+
connectorClass:
38053803
type: string
38063804
type:
38073805
$ref: '#/components/schemas/ConnectorType'
@@ -3811,9 +3809,9 @@ components:
38113809
type: string
38123810
status:
38133811
$ref: '#/components/schemas/ConnectorStatus'
3814-
tasks_count:
3812+
tasksCount:
38153813
type: integer
3816-
failed_tasks_count:
3814+
failedTasksCount:
38173815
type: integer
38183816
required:
38193817
- name

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ spring-boot = { id = 'org.springframework.boot', version.ref = 'spring-boot' }
4646
spring-dependency-management = { id = 'io.spring.dependency-management', version = '1.1.3' }
4747
git-properties = { id = 'com.gorylenko.gradle-git-properties', version = '2.4.2' }
4848
openapi-generator = { id = 'org.openapi.generator', version = '7.9.0' }
49+
openapi-validator = {id = "org.openapitools.openapistylevalidator", version = "1.10" }
4950
allure = { id = 'io.qameta.allure', version = '2.10.0' }
5051
nexus-publish-plugin = { id = 'io.github.gradle-nexus.publish-plugin', version = '1.1.0' }
5152
node-gradle = { id = 'com.github.node-gradle.node', version = '7.1.0' }
5253
#jib = { id = 'com.google.cloud.tools.jib', version = '3.4.4' }
5354
docker-remote-api = { id = 'com.bmuschko.docker-remote-api', version = '9.4.0' }
5455
sonarqube = { id = "org.sonarqube", version = "6.0.1.5171" }
5556

57+
58+
5659
[libraries]
5760
spring-starter-actuator = { module = 'org.springframework.boot:spring-boot-starter-actuator', version.ref = 'spring-boot' }
5861
spring-starter-test = { module = 'org.springframework.boot:spring-boot-starter-test', version.ref = 'spring-boot' }

0 commit comments

Comments
 (0)