以下 YAML:
openapi: 3.0.0
info:
title: test
version: 1.0.0
paths:
/test:
get:
summary: test
responses:
'200':
description: Test
content:
application/json:
schema:
oneOf:
- allOf:
- type: object
properties:
firstA:
type: string
- type: object
properties:
firstB:
type: string
- allOf:
- type: object
properties:
secondA:
type: string
- type: object
properties:
secondB:
type: string
根本不渲染招摇编辑器.
In ReDoc它也无法正确渲染:
如果嵌套多个allOf
直接在内部的实例oneOf
无效,我怎样才能用有效的规范获得相同的结果?
ReDoc 作者在这里。
这是一个 ReDoc 错误。您的规格有效。
它已经修复并将在2.0.0-alpha.40
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)