hapi-swagger: Failed to load API definition @hapi/joi 17.1.0

Issue

Environment

npx envinfo --npmPackages '*hapi*' --binaries

Binaries: Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node Yarn: 1.21.1 - ~/.nvm/versions/node/v12.14.1/bin/yarn npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman npmPackages: hapi-api-version: ^2.3.1 => 2.3.1 hapi-auth-jwt2: ^8.8.1 => 8.8.1 hapi-swagger: 12.0.0 => 12.0.0

Steps to Reproduce

  1. Upgrade from “@hapi/joi”: “17.0.2” to “@hapi/joi”: “17.1.0”
  2. Open the browser with the url to see the Swagger documentation
  3. See what the swagger page shows.
  4. Downgrade to joi 17.0.2 and repeats steps 2 and 3.

Expected Behavior

The expected behaviour is upgrade to @hapi/joi 17.1.0, access to the url to see the Swagger documentation and see it like using @hapi/joi 17.0.2.

Joi did not introduce breaking changes in the new minor release Joi Changelog

Actual Behavior

  1. Upgrade from “@hapi/joi”: “17.0.2” to “@hapi/joi”: “17.1.0”
  2. Open the browser with the url to see the Swagger documentation
  3. It is showed “Failed to load API definition instead”.
  4. Downgrade to joi 17.0.2 and starts to work again.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (5 by maintainers)

Most upvoted comments

Sorry for delay fixing this asap.

@mastepanoski i think those are great suggestions.