allOf is not properly merged
- 主要语言
- PHP
- 星标
- 500
- 派生
- 99
- PR 合并指标
- 30 天内没有已合并 PR
描述
Given a schema that uses `allOf` to combine two different `object` schemas, the properties of the two schemas are not combined:
```json
{
"components": {
"schemas": {
"identifier": {
"type": "object",
"properties": {
"id": {"type": "string"}
}
},
"person": {
"allOf": [
{"$ref": "#/components/schemas/identifier"},
{
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
]
}
}
}
}
```
Not 100% sure that schema validates, but it should be a good start.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,在项目的 schema 解析路径中复现所提供的 OpenAPI schema,并确认示例是否通过验证。跟踪 allOf schema 的组合方式,然后验证生成的 person schema 是否同时暴露 id 和 name 属性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100