Skip to content

Commit

Permalink
♻️ Maintenance/removing-old-json-schemas 🚨 (#3966)
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 authored Apr 4, 2023
1 parent 0850c25 commit df669a5
Show file tree
Hide file tree
Showing 41 changed files with 16,658 additions and 4,345 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ new-service: .venv ## Bakes a new project from cookiecutter-simcore-pyservice an
openapi-specs: ## bundles and validates openapi specifications and schemas of ALL service's API
@$(MAKE_C) services/web/server $@
@$(MAKE_C) services/storage $@
@$(MAKE_C) services/director $@


.PHONY: settings-schema.json
settings-schema.json: ## [container] dumps json-schema settings of all services
Expand Down
15 changes: 13 additions & 2 deletions api/specs/common/schemas/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.PHONY: all build clean help

objects = $(wildcard *.json)
outputs := $(objects:.json=-converted.yaml)
objects = $(wildcard *-pydantic.json)
outputs := $(objects:.json=-converted-clean.yaml)

depreciated_files = node-meta-v0.0.1-converted.yaml

TOOL_IMAGE_NAME := json-schema-to-openapi-schema

Expand All @@ -15,6 +17,15 @@ all: check $(outputs)
-v ${CURDIR}:/output \
$(TOOL_IMAGE_NAME)

rm -f ${depreciated_files}

.PRECIOUS: %-converted.yaml
%-converted-clean.yaml:%-converted.yaml
# remove the "definition" key from %-converted.yaml
python scripts/remove_definitions.py $^ $@

rm -f $^

# target: check – Checks whether tool is installed
check:
@docker history $(TOOL_IMAGE_NAME) 2>/dev/null \
Expand Down
348 changes: 0 additions & 348 deletions api/specs/common/schemas/node-meta-v0.0.1-converted.yaml

This file was deleted.

Loading

0 comments on commit df669a5

Please sign in to comment.