Duplicate OperationIds should be considered invalid
- 主要语言
- 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