We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling validate on a \cebe\openapi\spec\OpenApi object containing duplicate operationIds will return false.
validate
\cebe\openapi\spec\OpenApi
OperationIds MUST be unique among all operations described in the API.
Calling validate on a \cebe\openapi\spec\OpenApi object containing duplicate operationIds returns true.
$api = Reader::readFromJson(<<<JSON { "openapi": "3.0.0", "info": { "title": "Test API", "version": "1.0.0" }, "paths": { "/path": { "get": { "operationId": "op1", "responses": { "200": { "description": "Success" } } }, "post": { "operationId": "op1", "responses": { "200": { "description": "Success" } } } } } } JSON); var_dump($api->validate()); // bool(true)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
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.
Actual
Calling
validate
on a\cebe\openapi\spec\OpenApi
object containing duplicate operationIds returns true.Example
The text was updated successfully, but these errors were encountered: