Swagger auth0,在securityDefinitions.auth0处获取架构错误

Swagger auth0,在securityDefinitions.auth0处获取架构错误,swagger,auth0,Swagger,Auth0,在使用auth0时,我在swagger编辑器上遇到此错误 Schema error at securityDefinitions.auth0 is not exactly one from <#/definitions/basicAuthenticationSecurity>,<#/definitions/apiKeySecurity>,<#/definitions/oauth2ImplicitSecurity>,<#/definitions/oauth

在使用auth0时,我在swagger编辑器上遇到此错误

Schema error at securityDefinitions.auth0
is not exactly one from <#/definitions/basicAuthenticationSecurity>,<#/definitions/apiKeySecurity>,<#/definitions/oauth2ImplicitSecurity>,<#/definitions/oauth2PasswordSecurity>,<#/definitions/oauth2ApplicationSecurity>,<#/definitions/oauth2AccessCodeSecurity>
Jump to line 67

我缺少什么?

删除
tokenName
-该字段不受支持

检查规范以查看
securityDefinitions
中允许哪些字段:

您好,这不起作用,因为我收到了
{“errors”:[{“name”:“UnauthorizedError”,“message”:“jwt-mableformed”,“code”:“invalid_-token”,“status”:401,“internal”:{“name”:“JsonWebTokenError”,“message”:“jwt-mableformed”}
error@khinester:这是API的实际响应,与原始问题中的语法错误无关。你应该考虑一下。
securityDefinitions:
  auth0:
    type: oauth2
    authorizationUrl: https://domain.auth0.com/authorize
    flow: implicit
    tokenName: id_token
    scopes:
      openid: Grant access to user
  apiKey:
    type: apiKey
    name: api-key
    in: query
  apiKey1:
    type: apiKey
    name: api-key
    in: header