我如何在swagger集线器打开的API 3.0.0 YAML文件中使用字段名@ odata.count?

问题描述

我正在尝试基于Azure搜索输出为我们的API之一创建架构,该架构包含这样的字段

@odata.count

当我尝试在YAML文件模式中使用它时,出现错误

这就是我正在尝试的

  schemas:
    Azure-Search-Schema:
      type: object
      properties:
        continuationToken:
          type: string
        @odata.count:
          type: string

但这在@ odata.count行上给了我错误消息

错误如下:

Should be object
Bad indentation of a mapping entry

我假设@或。或者也许都需要以某种方式逃脱,但我无法找到方法

如何在架构中使用该字段?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)