cebe / cebe/php-openapi

Duplicate OperationIds should be considered invalid

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.