Duplicate OperationIds should be considered invalid
- Dominant language
- PHP
- Stars
- 500
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
## 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)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, php
- Domain
- api, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100