我想用我的安全范围OAS3做类似的事情,以表明(user:write & user:read) | user:admin
/user:
post:
responses:
'200':
description: Successful operation
security:
- app_auth:
- or:
- 'user:admin'
- and:
- 'user:write'
- 'user:read'
这可能吗?
答案 0 :(得分:1)
这可以定义为:
security:
- app_auth:
- 'user:admin'
- app_auth:
- 'user:write'
- 'user:read'