Skip to content

Commit

Permalink
chore(oapi): update oapi tool (#12576)
Browse files Browse the repository at this point in the history
## Motivation

Because there was a bug in previous one that polluted the top level of
the doc.

## Implementation information

All in kumahq/ci-tools#60

## Supporting documentation

Just version bump

Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka authored Jan 16, 2025
1 parent 75d9e4e commit fd46589
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/generated/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ info:
title: Kuma API
description: Kuma API
version: v1alpha1
x-ref-schema-name: MeshService
paths:
/:
get:
Expand Down
4 changes: 2 additions & 2 deletions mk/docs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ docs/generated/openapi.yaml:
for i in $$( find $(MESH_API_DIR) -name '*.yaml'); do DIR=$(OAPI_TMP_DIR)/protoresources/$$(echo $${i} | awk -F/ '{print $$(NF-1)}'); mkdir -p $${DIR}; cp $${i} $${DIR}/$$(echo $${i} | awk -F/ '{print $$(NF)}'); done

ifdef BASE_API
docker run --rm -v $$PWD/$(dir $(BASE_API)):/base -v $(OAPI_TMP_DIR):/specs ghcr.io/kumahq/openapi-tool:v0.12.0 generate /base/$(notdir $(BASE_API)) '/specs/**/*.yaml' '!/specs/kuma/**' > $@
docker run --rm -v $$PWD/$(dir $(BASE_API)):/base -v $(OAPI_TMP_DIR):/specs ghcr.io/kumahq/openapi-tool:v1.1.3 generate /base/$(notdir $(BASE_API)) '/specs/**/*.yaml' '!/specs/kuma/**' > $@
else
docker run --rm -v $(OAPI_TMP_DIR):/specs ghcr.io/kumahq/openapi-tool:v0.12.0 generate '/specs/**/*.yaml' > $@
docker run --rm -v $(OAPI_TMP_DIR):/specs ghcr.io/kumahq/openapi-tool:v1.1.3 generate '/specs/**/*.yaml' > $@
endif

0 comments on commit fd46589

Please sign in to comment.