Skip to content

Commit

Permalink
[#1893] improvement(build): treat warnings as errors in lint OpenAPI (#…
Browse files Browse the repository at this point in the history
…1905)

### What changes were proposed in this pull request?

treat warnings as errors in lint OpenAPI

### Why are the changes needed?

Fix: #1893

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?
about `recommended-strict`, see
[here](Redocly/redocly-cli#1311)

before:

<img width="1417" alt="image"
src="https://github.com/datastrato/gravitino/assets/24897598/e610696b-76ff-4d80-8c25-a13d11fdde8c">

after:

<img width="1415" alt="image"
src="https://github.com/datastrato/gravitino/assets/24897598/b7f0aec8-70b6-48ab-9d3c-45dc74f52a9c">

Co-authored-by: mchades <[email protected]>
  • Loading branch information
jerryshao and mchades authored Feb 2, 2024
1 parent d7e6e1e commit 56530c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.github.gradle.node.npm.task.NpxTask
tasks {
val lintOpenAPI by registering(NpxTask::class) {
command.set("@redocly/[email protected]")
args.set(listOf("lint", "${project.projectDir}/open-api/openapi.yaml"))
args.set(listOf("lint", "--extends=recommended-strict", "${project.projectDir}/open-api/openapi.yaml"))
}

build {
Expand Down

0 comments on commit 56530c2

Please sign in to comment.