Host to be dynamic in Openapi 2.0?
Clash Royale CLAN TAG#URR8PPP
Host to be dynamic in Openapi 2.0?
I am using GCP Endpoints
to secure my endpoint. I want to know how can I set my host
to be dynamic in openapi.yaml as I want to deploy the same openapi file across different environment. Check the example below
GCP Endpoints
host
swagger: '2.0'
info:
title: Example
version: 1.0.0
host: $PROJECT // Errors here
basePath: /v1
When I validate the yaml file using gcloud endpoints services deploy --validate-only openapi.yaml
it gives me the following error (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: $PROJECT contains illegal characters '[$, , P, R, O, J, E, C, T, ]'. Only '[0-9], [a-z], and '-'' are allowed.
Any suggestions as to how to make this accept environment variables?
gcloud endpoints services deploy --validate-only openapi.yaml
(gcloud.endpoints.services.deploy) INVALID_ARGUMENT: $PROJECT contains illegal characters '[$, , P, R, O, J, E, C, T, ]'. Only '[0-9], [a-z], and '-'' are allowed.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.