Skip to content

Commit

Permalink
refactor(HMS-2191): remove metrics openapi
Browse files Browse the repository at this point in the history
This change remove metrics.openapi.* files, and update Makefile according to
that.

This is a special case as the /openapi.json endpoint, and to achieve this to
work, the openapi file becomes invalid with the specification for the path of
the endpoint; be aware the /metrics path could differ and the port where it will
be listening, depending on the clowder configuration.

Signed-off-by: Alejandro Visiedo <avisiedo@redhat.com>
  • Loading branch information
avisiedo authored and tiran committed Feb 5, 2024
1 parent eb02638 commit a4f6239
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 98 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ $(NODE_BIN)/%: package.json package-lock.json
validate: $(VALIDATOR)
$(VALIDATOR) public.openapi.yaml
$(VALIDATOR) internal.openapi.yaml
$(VALIDATOR) metrics.openapi.yaml

.PHONY: openapi-sort
openapi-sort: $(PYTHON_VENV)
Expand All @@ -50,7 +49,6 @@ openapi-sort: $(PYTHON_VENV)
vacuum: $(NODE_BIN)/vacuum
npm run vacuum:lint public.openapi.yaml
npm run vacuum:lint internal.openapi.yaml
npm run vacuum:lint metrics.openapi.yaml

.PHONY: swagger-editor
swagger-editor:
Expand All @@ -67,7 +65,7 @@ swagger-editor-stop:
podman stop $(SWAGGER_CONTAINER)

.PHONY: generate-json
generate-json: public.openapi.json internal.openapi.json metrics.openapi.json
generate-json: public.openapi.json internal.openapi.json

%.openapi.json: %.openapi.yaml $(PYTHON_VENV)
$(PYTHON_VENV) yaml2json.py $< $@
58 changes: 0 additions & 58 deletions metrics.openapi.json

This file was deleted.

37 changes: 0 additions & 37 deletions metrics.openapi.yaml

This file was deleted.

0 comments on commit a4f6239

Please sign in to comment.