Problem/Motivation

Just came across following issue when installing jsonapi 1.17 & jsonapi_extras 2.1

  • jsonapi requires "justinrainbow/json-schema": "^4.1"
  • jsonapi_extra requires "e0ipso/shaper": "^1" which requires "justinrainbow/json-schema": "^5.2"

This seems to lead to a dead-lock.

Proposed resolution

Can we use "justinrainbow/json-schema": "^5.2" for jsonapi too?
Checking https://github.com/justinrainbow/json-schema I can't really tell if there are any breaking changes between 4.x / 5.x.

Potential patch: https://github.com/drupalprojects/jsonapi/pull/1

Remaining tasks

Figure out if it's save to upgrade dependency.
Change composer.json
Be happy.

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

das-peter created an issue. See original summary.

das-peter’s picture

Issue summary: View changes

Created https://github.com/drupalprojects/jsonapi/pull/1 - needed a fork for proper testing / using as you can't patch composer.json on the fly.

Wim Leers’s picture

Assigned: Unassigned » e0ipso

Thanks for reporting this!

Please post a patch, not a GitHub pull request. DrupalCI will tell whether this is an easy update or not.

Also, assigning to @e0ipso, because he understandably never likes jsonapi_extras to need to be kept in sync with jsonapi, but now apparently he did the opposite there? :P

e0ipso’s picture

e0ipso’s picture

Status: Needs work » Needs review

  • e0ipso committed 205157e on 8.x-1.x authored by das-peter
    Issue #2973151 by e0ipso, das-peter, Wim Leers: Composer dependency...
e0ipso’s picture

Status: Needs review » Fixed

Thanks everyone!

das-peter’s picture

Assigned: e0ipso » Unassigned

Sorry, I forgot to attach the patch. Wanted to get it a test run first do see if I find any obvious issues. But then I got carried away with jsonapi / webform rest and the silly elements attribute.
And you folks are simply to responsive! ;) Thanks for fixing that in no-time!!

  • Wim Leers committed 20c2352 on 8.x-2.x authored by das-peter
    Issue #2973151 by e0ipso, das-peter, Wim Leers: Composer dependency...
Wim Leers’s picture

This was only pushed to 1.x, also pushed to 2.x now.

Status: Fixed » Closed (fixed)

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