cebe / cebe/php-openapi

allOf is not properly merged

オープン
#31 コメント 16 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug help wanted needs investigation
主要言語
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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、提供された OpenAPI スキーマをプロジェクトのスキーマ解析パスで再現し、例が検証に通るか確認します。allOf スキーマがどのように結合されるかを追跡し、その後、結果として得られる person スキーマが id と name の両方のプロパティを公開していることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
api
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。