I can't create a Gateway API Google Error: "Cannot convert to service config. 'location: "unknown location"

I can't create a Gateway API Google Error: "Cannot convert to service config. 'location: "unknown location"

我正在尝试在 Google 云平台上创建一个 API 网关,在填写所有字段并单击创建网关后出现以下错误消息:

无法转换为服务配置。 '位置:“未知位置”种类:错误消息:“无法解析内容。在 'reader' 中解析块 mapping\n 时,第 1 行,第 1 列:\n swagger:'2.0'\n ^\n预期 ,但在 'reader' 的第 2 行第 5 列中找到了 BlockMappingStart\n:\n 信息:\n ^\n\n 在 [来源:(StringReader);行:1,列: 15]" '

我认为这与 API Spec 字段中所需的 Yaml 文件的配置有关,如下图所示:

我的yaml文件配置如下:

swagger: '2.0'
    info:
      title: API Gateway for Cycle
      description: "Send a deal object for the data to be treated"
      version: "1.0.0"
    host: teste.apigateway.project-teste-homolog.cloud.goog
    schemes:
      - "https"
    produces:
      - "application/json"
    paths:
      "/data-verification-homologation":
        post:
          x-google-backend: 
            address: URL.example
          description: "Jailson esteve aqui =)"
          operationId: "dataVerification"
          parameters:
            -
              name: iataCode
              in: query
              required: true
              type: string
          responses:
            200:
              description: "Sucess"
              schema:
                type: string
            400:
              description: "Error"

我已经检查了以下 google 文档 https://cloud.google.com/endpoints/docs/grpc/troubleshoot-config-deployment,但我无法解决错误。

您的缩进不正确。

swagger: "2.0"
info:
  title: "API Gateway for Cycle"
  description: ... 

YAML 要求非常精确的缩进。

在此处查看 YAML Swagger (OpenAPI) 示例:https://swagger.io/docs/specification/basic-structure/