Skip to content

Commit fa8b03b

Browse files
committed
fixed frontend build
1 parent 4bf3779 commit fa8b03b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

contract-typespec/api/acls.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ interface AclApi {
6262
@body payload: CreateProducerAcl,
6363
): void | ApiBadRequestResponse;
6464

65-
@route("/streamApp")
65+
@route("/streamapp")
6666
@doc("createStreamAppAcl")
6767
@post
6868
@operationId("createStreamAppAcl")

contract/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ tasks.register('generateBackendApi', GenerateTask) {
7272
}
7373

7474
openAPIStyleValidator {
75-
inputFile = "${project.projectDir}/src/main/resources/swagger/kafbat-ui-api.yaml"
75+
if (useTypeSpec) {
76+
inputFile = project(":contract-typespec").layout.buildDirectory.dir("tsp/api/openapi.yaml").get().asFile.absolutePath
77+
} else {
78+
inputFile = specDir.file("kafbat-ui-api.yaml").asFile.absolutePath
79+
}
7680
validateModelPropertiesDescription = false
7781
validateModelPropertiesExample = false
7882
parameterNamingConvention = "UnderscoreCase"

0 commit comments

Comments
 (0)