IBM / openapi-validator

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

fix(resource-response-consistency): avoid destructuring property of undefined values #646

Closed dpopp07 closed 7 months ago

dpopp07 commented 7 months ago

Addresses a bug reported in which a property is attempted to be deconstructed from an object type. When the getCanonicalSchema function was converted to return an object, a return statement was left unconverted and was still returning undefined. This caused the bug upon attempted deconstruction of the return value.

Also, I updated the project copyright string for the new year.

ibm-devx-sdk commented 7 months ago

:tada: This PR is included in version 1.15.2 :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.16.2 :tada:

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

Your semantic-release bot :package::rocket:

ibm-devx-sdk commented 6 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: