When using this module to rewrite paths, the OpenAPI description has invalid paths:

{
  "basePath": "/jsonapi",
  "paths": {
    "/api/recipes": ...
  }
  ...
}

If I'm reading the OpenAPI spec correctly, the paths are supposed to be concatenated to basePath. But that would result in /jsonapi/api/recipes, which is not a valid URL.

If I uninstall this module, the output is correct:

{
  "basePath": "/jsonapi",
  "paths": {
    "/node/recipe": ...
  }
  ...
}

Comments

ef4 created an issue. See original summary.

e0ipso’s picture

Again, this is probably missing code in the integration for JSON API in the Schemata module.

richgerdes’s picture

This issue was ultimately was caused by the way OpenApi handled the generation of the paths. This has been fixed and addressed in the dev version of the OpenApi module. See #2897665: Wrong Server URLs in /admin/api for more details.

e0ipso’s picture

Status: Active » Fixed

Thanks @richgerdes for fixing this and looping back into this issue!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.