Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json 招摇过市错误:结构错误我应该修改什么?_Json_Xml_Api_Yaml_Swagger - Fatal编程技术网

Json 招摇过市错误:结构错误我应该修改什么?

Json 招摇过市错误:结构错误我应该修改什么?,json,xml,api,yaml,swagger,Json,Xml,Api,Yaml,Swagger,我正在构建一个API文档,我对编程基本上是新手,这是我第一次在Swagger中工作 这是我的代码: /stareMesaj: post: tags: - Metode disponibile summary: Stare mesaj description: Call de verificat stare mesaj. More soon. operationId: stareMesaj responses: '200': description:

我正在构建一个API文档,我对编程基本上是新手,这是我第一次在Swagger中工作

这是我的代码:

/stareMesaj:
post:
  tags:
    - Metode disponibile
  summary: Stare mesaj
  description: Call de verificat stare mesaj. More soon.
  operationId: stareMesaj
  responses:
    '200':
      description: Ultimele 60 zile -  Nu aveti drept de interogare     stare pentru mesaj
      headers:
        X-Rate-Limit:
          description: calls per hour allowed by the user
          schema:
            type: integer
            format: int32
        X-Expires-After:
          $ref: '#/components/headers/ExpiresAfter'
      content:
        application/json:
          schema:
            type: string
          examples:
            response:
              value: Hello world!
        application/xml:
          schema:
            type: string
        text/csv:
          schema:
            type: string
在responses标签上,我得到以下错误:

Structural error at paths./stareMesaj.post.responses
should only have three-digit status codes, `default`, and vendor      extensions (`x-*`) as properties
Jump to line 395

我不知道该怎么办。我用谷歌搜索错误,但找不到。这里的问题是什么?

您的API定义是“2.0”还是“openapi:3.0.0”?395线有什么?你能发布整个编辑器的截图吗?也许YAML indentation.openapi:3.0.0信息:版本:2.0.0也请回答这些问题-第395行有什么内容?你能发布整个编辑器的截图吗?(可能在屏幕截图上可以看到YAML缩进存在问题。)