Azure / Azure/openapi-diff

Allowing circular references

オープン
#274 コメント 5 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
290
フォーク
50
平均マージ
5日 13時間
マージ済み PR(30日)
5

説明

Is there a way to generate the report allowing for circular dependencies on the parameters?

```
OpenApiDiffErrorImpl [VError]: ReferenceError: Circular $ref pointer found at /builds/#/components/schemas/Content/properties/children/items
at /usr/local/lib/node_modules/openapi-diff/dist/openapi-diff/spec-differ/diff-finder/json-schema-diff.js:27:15
at Generator.throw ()
at rejected (/usr/local/lib/node_modules/openapi-diff/dist/openapi-diff/spec-differ/diff-finder/json-schema-diff.js:6:65) {
jse_shortmsg: 'ReferenceError: Circular $ref pointer found at /builds/#/components/schemas/Content/properties/children/items',
jse_info: {},
code: 'OPENAPI_DIFF_DIFF_ERROR'
}
```

Thank you!

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

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

調査の方向性

$ref の循環エラーが報告される openapi-diff/dist/openapi-diff/spec-differ/diff-finder/json-schema-diff.js から始め、Content スキーマがどのように比較されるかを追跡します。/components/schemas/Content/properties/children/items に対する意図された動作を特定し、完了条件を、その循環参照で失敗せずにレポートを生成でき、サンプル仕様に対するカバレッジがあることと定義します。

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

評価

技術スタック
javascript, openapi
領域
api, backend-api-design
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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