The JSON:API Cross Bundle module provide a NULL bundle value, which crashes jsonapi_schema
Error: Call to a member function label() on null in Drupal\jsonapi_schema\Controller\JsonApiSchemaController->getSchemaTitle() (line 310 of modules/contrib/jsonapi_schema/src/Controller/JsonApiSchemaController.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3091633-3.patch | 1.35 KB | mglaman |
Issue fork jsonapi_schema-3091633
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mglamanThis adjustment fixed the crash:
Comment #3
mglamanHere is a patch. I know the plan is to use an array of resource types for cross bundle over a union, but this way it won't crash and returns some data.
Comment #5
bradjones1Specifically this NW in the sense that the paths for these routes are broken (missing a slash after the jsonapi prefix) and the schema generation throws an exception for much the same reason as the title, e.g. there is no bundle. E.g.,
The "entity:profile:" plugin does not exist.Comment #6
anybodyFYI: This is still one of the patches required for commerce_api so would be GREAT to finish
#3116465: Document recommended patches
Comment #7
anybodyUpdate: This is now the last patch required to make commerce_api fully work: #3116465: Document recommended patches
Still NW as of #5, but close to the finish line.
Comment #8
m.stentaWe have automated testing now (#3257911: Add basic test coverage), so this will needs tests too.