We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c66887 commit 8ffc27dCopy full SHA for 8ffc27d
1 file changed
download-openapi.sh
@@ -2,7 +2,7 @@
2
3
for v in v1 v2 v3 v4 v5 v6 v7; do \
4
curl -s http://192.168.58.25/cgi-bin/mt/mt-data-api.cgi/${v}/ \
5
- | jq '.servers[0].url = "https://example.com/mt/mt-data-api.cgi/v1"' \
+ | jq ".servers[0].url = \"https://example.com/mt/mt-data-api.cgi/${v}\"" \
6
| jq -S . > src/openapi/${v}.json; \
7
perl json2yaml.pl src/openapi/${v}.json > src/openapi/${v}.yaml; \
8
done
0 commit comments