Don't show TypeHeader fields as being sent as headers in OpenAPI (#6679)

Fixes #6671
This commit is contained in:
Jim Kalafut
2019-05-03 15:12:24 -07:00
committed by GitHub
parent caa2a0698f
commit 8b6ea178b2
4 changed files with 34 additions and 30 deletions

View File

@@ -61,7 +61,11 @@ vault secrets enable ssh
vault secrets enable totp
vault secrets enable transit
curl -H "X-Vault-Token: root" "http://127.0.0.1:8200/v1/sys/internal/specs/openapi" > openapi.json
if [ "$1" == "-p" ]; then
curl -H "X-Vault-Token: root" "http://127.0.0.1:8200/v1/sys/internal/specs/openapi" | jq > openapi.json
else
curl -H "X-Vault-Token: root" "http://127.0.0.1:8200/v1/sys/internal/specs/openapi" > openapi.json
fi
kill $VAULT_PID
sleep 1