cebe / cebe/php-openapi

Duplicate OperationIds should be considered invalid

オープン
#181 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
500
フォーク
99
PR マージ指標
30日以内にマージされた PR はありません

説明

## Expected
Calling `validate` on a `\cebe\openapi\spec\OpenApi` object containing duplicate operationIds will return false.
### Reasoning
[OperationIds MUST be unique among all operations described in the API.](https://spec.openapis.org/oas/v3.1.0#operation-object)

## Actual
Calling `validate` on a `\cebe\openapi\spec\OpenApi` object containing duplicate operationIds returns true.

### Example

```php
$api = Reader::readFromJson(<<validate()); // bool(true)
```

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

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

調査の方向性

Reproduce the duplicate-operationId example with Reader::readFromJson, then trace the OpenApi::validate entry point and the validation it delegates to. Check how operations are collected and how uniqueness is represented. Done means the same example returns false, with coverage for duplicate operationIds.

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

評価

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

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

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