Skip to content
Snippets Groups Projects
Commit 4964720a authored by David Schwarzmann's avatar David Schwarzmann
Browse files

Include the json schema for Antragsmetadaten in the openAPI schema listing

parent 6a7a5995
No related branches found
No related tags found
1 merge request!27Erste Dokumentation des Antragsmetadatenschemas
...@@ -27,6 +27,7 @@ build: ...@@ -27,6 +27,7 @@ build:
- yq e '.info.description.$ref = "../dist/docs.bundled.md"' -i spec/zustelldienst.yml - yq e '.info.description.$ref = "../dist/docs.bundled.md"' -i spec/zustelldienst.yml
- cp metadata-schema/antragsmetadaten.schema.json dist/ - cp metadata-schema/antragsmetadaten.schema.json dist/
- swagger-cli bundle -t yaml -o dist/zustelldienst.yml spec/zustelldienst.yml - swagger-cli bundle -t yaml -o dist/zustelldienst.yml spec/zustelldienst.yml
- yq e '.components.schemas.Antragsmetadaten.$ref = "./antragsmetadaten.schema.json"' -i dist/zustelldienst.yml
# find ./spec -type f -name "*.yml" -exec sh -c 'swagger-cli bundle -t yaml -o dist/$(basename {}) {}' \; # find ./spec -type f -name "*.yml" -exec sh -c 'swagger-cli bundle -t yaml -o dist/$(basename {}) {}' \;
artifacts: artifacts:
expose_as: 'Built API spec' expose_as: 'Built API spec'
...@@ -53,8 +54,8 @@ upload: ...@@ -53,8 +54,8 @@ upload:
- sed "s,API_VERSION,$CI_COMMIT_TAG/zustelldienst.yml,g" ui/config.js.template > ui/config.js - sed "s,API_VERSION,$CI_COMMIT_TAG/zustelldienst.yml,g" ui/config.js.template > ui/config.js
- sed "-i "s,API_VERSION,$CI_COMMIT_TAG" dist/zustelldienst.yml - sed "-i "s,API_VERSION,$CI_COMMIT_TAG" dist/zustelldienst.yml
- sed "-i "s,API_VERSION,$CI_COMMIT_TAG" dist/antragsmetadaten.schema.json - sed "-i "s,API_VERSION,$CI_COMMIT_TAG" dist/antragsmetadaten.schema.json
- rsync -rLvz --size-only --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./assets/. fitko@dorado.uberspace.de:html/assets
- rsync -rLvz --size-only --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./ui/. fitko@dorado.uberspace.de:html/ - rsync -rLvz --size-only --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./ui/. fitko@dorado.uberspace.de:html/
- rsync -rLvz --size-only --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./assets/. fitko@dorado.uberspace.de:html/$CI_COMMIT_TAG/
- rsync -rLvz --size-only --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./dist/. fitko@dorado.uberspace.de:html/$CI_COMMIT_TAG/ - rsync -rLvz --size-only --checksum -e "ssh -o CheckHostIP=no" --ipv4 --progress ./dist/. fitko@dorado.uberspace.de:html/$CI_COMMIT_TAG/
#release-new-api-version: #release-new-api-version:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment