将API文档部署到GCP Cloud端点

时间:2020-04-30 16:36:57

标签: yaml

我正在尝试将我的API文档上载到GCP Cloud端点,但是当我使用以下命令时:

gcloud endpoints services deploy openapi.yaml

我收到以下错误:

ERROR: (gcloud.endpoints.services.deploy) INVALID_ARGUMENT: Cannot convert to service config.
'location: "unknown location"
kind:ERROR
message: "Cannot find a valid OpenAPI 2.0 spec in the input files"'

有人知道为什么会这样吗?

0 个答案:

没有答案