Skip to content

Commit 55f5af5

Browse files
fix openapi spec validation
1 parent f8145be commit 55f5af5

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

services/api-server/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ reqs: ## compiles pip requirements (.in -> .txt)
1515

1616

1717
# specification of the used openapi-generator-cli (see also https://github.com/ITISFoundation/openapi-generator)
18-
OPENAPI_GENERATOR_NAME := itisfoundation/openapi-generator-cli-openapi-generator-v4.2.3
19-
OPENAPI_GENERATOR_TAG := v0
18+
OPENAPI_GENERATOR_NAME := openapitools/openapi-generator-cli
19+
OPENAPI_GENERATOR_TAG := latest
2020
OPENAPI_GENERATOR_IMAGE := $(OPENAPI_GENERATOR_NAME):$(OPENAPI_GENERATOR_TAG)
2121

2222
define _create_and_validate_openapi
@@ -25,10 +25,6 @@ define _create_and_validate_openapi
2525
export API_SERVER_DEV_FEATURES_ENABLED=$1; \
2626
python3 -c "import json; from $(APP_PACKAGE_NAME).main import *; print( json.dumps(the_app.openapi(), indent=2) )" > $@
2727

28-
# patching version until tools adapted
29-
@sed -i 's/"openapi": "3.1.0",/"openapi": "3.0.2",/g' $@
30-
31-
3228
# validates OAS file: $@
3329
docker run --rm \
3430
--volume "$(CURDIR):/local" \

services/api-server/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"openapi": "3.0.2",
2+
"openapi": "3.1.0",
33
"info": {
44
"title": "osparc.io public API",
55
"description": "osparc-simcore public API specifications",

0 commit comments

Comments
 (0)