小编pet*_*son的帖子

Swagger 3.0 架构错误“不应具有其他属性”

下面这个错误是什么意思?(在 Swagger 编辑器中运行)

架构错误不应具有附加属性 additionalProperty: /buildinfo, /clearcache, /countries/{countryId}/cinemas/{theatreid}/screens/{screenid}/layout, /countries/{countryId}/cinemas/{theatreid}/screens跳到第 0 行

下面是我的 yaml 文件。

openapi: "3.0.1"
info:
  title: Mobile backend
  version: 1.0.0
  license:
    name: Apache 2.0
paths:
/buildinfo:
    get:
      description: Returns the build information (Version and Time stamp).
      operationId: getBuildInfo
      parameters:
        - name: LBPATH
          in: header
/clearcache:
    get:
      description: Clears the mobile backends cache (You need to be Admin to do this call)
      operationId: clearCache
      parameters:
        - name: LBPATH
          in: header
/countries/{countryId}/cinemas/{theatreid}/screens/{screenid}/layout:
    get:
      description: Returns a list of Auditoriums that …
Run Code Online (Sandbox Code Playgroud)

validation yaml swagger-editor openapi

5
推荐指数
1
解决办法
7977
查看次数

标签 统计

openapi ×1

swagger-editor ×1

validation ×1

yaml ×1