cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
469 stars 89 forks source link

Added validation for duplicate operationId. #192

Open Aribros opened 1 year ago

Aribros commented 1 year ago

Added validation for duplicate operationId.

Fix #181

charjr commented 1 year ago

@Aribros What happens if there are duplicate operationIds in two separate paths?

Unique string used to identify the operation. The id MUST be unique among all operations described in the API.

Aribros commented 1 year ago

@Aribros What happens if there are duplicate operationIds in two separate paths?

Unique string used to identify the operation. The id MUST be unique among all operations described in the API.

This has been taken care of. More tests were added to cover duplicate IDs in separate paths .