e0ipso/schema-forms requires an out of date version of jsonrainbow/json-schema

Created on 6 August 2025, 7 days ago

Problem/Motivation

In my current project, the dependencies on jsonrainbow/json-schema are:

Packages Requiring jsonrainbow/json-schema v6.x:

- composer/composer 2.8.10 → requires ^6.3.1 (forces v6.x)
- ergebnis/composer-normalize 2.47.0 → requires ^5.2.12 || ^6.0.0 (accepts both)
- ergebnis/json-normalizer 4.9.0 → requires ^5.2.12 || ^6.0.0 (accepts both)
- ergebnis/json-schema-validator 4.4.0 → requires ^5.2.12 || ^6.0.0 (accepts both)

Flexible Dependencies:

- drupal/core-dev 11.2.2 → requires ^5.2 || ^6.3 (accepts both)

The Problem

composer/composer itself forces json-schema to be ^6.3.1, which means my project must use version 6.x.

But when you try to install the module
- e0ipso/schema-forms v2.5.1 requires ^5.2 (which excludes 6.x)
- This creates an irreconcilable conflict

Proposed resolution

1. Update e0ipso/schema-forms to allow ^6 of jsonrainbow/json-schema
2. Update this module to use that version.

Remaining tasks

Implementing.

User interface changes

TBD

API changes

TBD

Data model changes

TBD

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States thejimbirch Cape Cod, Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @thejimbirch
  • @thejimbirch opened merge request.
  • 🇺🇸United States thejimbirch Cape Cod, Massachusetts

    I added a merge request that calls out to a forked repo of the the e0ipso/schema-forms which has the update dependency justinrainbow/json-schema: ^5.2 || ^6.3.

    I was able to test this by adding the MR branch as a repository.

    composer config repositories.sdc_display '{"type": "package", "package": {"name": "drupal/sdc_display", "version": "2.0.0-beta4", "type": "drupal-module", "source": {"url":
      "https://git.drupalcode.org/issue/sdc_display-3540006.git", "type": "git", "reference": "3540006-e0ipsoschema-forms-requires-an"}, "require": {"php": ">=8.1", "kanopi/schema-forms": "^v2.5.2",
      "drupal/cl_editorial": "^2.0@rc || ^3.0@rc"}}}'
    

    Which gave me the following (Note the repo must be before the normal Drupal one):

        "repositories": [
            {
                "type": "package",
                "package": {
                    "name": "drupal/sdc_display",
                    "version": "2.0.0-beta4",
                    "type": "drupal-module",
                    "source": {
                        "url": "https://git.drupalcode.org/issue/sdc_display-3540006.git",
                        "type": "git",
                        "reference": "3540006-e0ipsoschema-forms-requires-an"
                    },
                    "require": {
                        "php": ">=8.1",
                        "kanopi/schema-forms": "^v2.5.2",
                        "drupal/cl_editorial": "^2.0@rc || ^3.0@rc"
                    }
                }
            },
            ...
    

    The actual module needs to be tested to make sure everything still works as expected.

Production build 0.71.5 2024