IBM / openapi-validator

Configurable and extensible validator/linter for OpenAPI documents
Apache License 2.0
493 stars 88 forks source link

fix(ibm-resource-response-consistency): expand support to bulk operations #645

Closed dpopp07 closed 8 months ago

dpopp07 commented 8 months ago

PR summary

This commit adds support for recognizing bulk operations and recommending the collection schema be returned instead of the canonical schema. It also:

Previously, the rule would flag a bulk operation that didn't return the collection schema but it did so unintentionally (and with a bad heuristic) and the message would indicate that the canonical schema should be returned, which was false (often, the canonical schema was being returned).

Also, the warning would be tied to a specific schema and it was difficult to parse the debug logs to determine which operation was responsible for the warning.

PR Checklist

General checklist

Please make sure that your PR fulfills the following requirements:

ibm-devx-sdk commented 8 months ago

:tada: This PR is included in version 1.15.1 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

ibm-devx-sdk commented 8 months ago

:tada: This PR is included in version 1.16.1 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

ibm-devx-sdk commented 7 months ago

:tada: This PR is included in version 1.3.1 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: