- Issue created by @kopeboy
- ๐ฎ๐นItaly kopeboy Milan
Isn't this a bug? Requiring "*" should work with any version?
I've tried both with schemata_json_schema dev and 1.0.0-beta3 - ๐ฎ๐ณIndia n_nelson350
I am also getting the same error:
Problem 1
- drupal/openapi_jsonapi[3.0.0, ..., 3.0.4] require drupal/schemata_json_schema * -> found drupal/schemata_json_schema[dev-1.x, 1.0.0-alpha1, ..., 1.x-dev (alias of dev-1.x)] but it does not match your minimum-stability.
- Root composer.json requires drupal/openapi_jsonapi ^3.0 -> satisfiable by drupal/openapi_jsonapi[3.0.0, ..., 3.0.4].If anyone is having issues and have a fix for it, please share.
- ๐ฎ๐นItaly kopeboy Milan
I was able to resolve by manually adding the second line in my composer.json in my drupal's project root folder:
"drupal/schemata": "^1.0@dev", "drupal/schemata_json_schema": "^1.0@dev",
After doing this, I could run
composer require drupal/openapi_jsonapi
without errors. - ๐ช๐ธSpain psf_ Huelva
In root composer.json change:
"minimum-stability": "stable",
with:
"minimum-stability": "dev",
- ๐ฎ๐นItaly kopeboy Milan
Thank you for the workaround (it worked), but isn't there still a problem if:
- this modules is marked as "stable",
- I had already installed the dependency separately with
composer require drupal/schemata:1.0.0-beta3
, - and still get an error with
composer require drupal/openapi_jsonapi
or a specific version!?
Could the bug be requiring schemata_json_schema "*" for as a dependency?
- ๐ช๐ธSpain psf_ Huelva
This module have a mark of minimum-stability of dev:
https://git.drupalcode.org/project/openapi_jsonapi/-/blob/3.x/composer.j...
{ "name": "drupal/openapi_jsonapi", "description": "OpenAPI support for the JSON:API module.", "type": "drupal-module", "require": { "drupal/openapi": "^2", "drupal/schemata": "^1" }, "minimum-stability": "dev", "license": "GPL-2.0-or-later", "authors": [ { "name": "Mateu Aguilรณ Bosch", "email": "mateu.aguilo.bosch@gmail.com" } ] }
I don't know why, but this look like a common practice:
https://stackoverflow.com/questions/45019784/but-these-conflict-with-you...
- ๐ฎ๐ณIndia Jeya sundhar Coimbatore
Jeya sundhar โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia Jeya sundhar Coimbatore
In composer.json add following repository
{ "type": "package", "package": { "name": "drupal/openapi_jsonapi", "type": "drupal-module", "version": "dev-3.x", "source": { "type": "git", "url": "https://git.drupalcode.org/issue/openapi_jsonapi-3353029.git", "reference": "743172b90a26208653e39835749d3524219c32b3" } } },
before
{ "type": "composer", "url": "https://packages.drupal.org/8" }
Then run
composer require drupal/openapi_jsonapi:dev-3.x
- last update
about 1 year ago Composer require failure - @jeya-sundhar opened merge request.
- last update
about 1 year ago 11 pass - Status changed to Fixed
5 months ago 4:33pm 7 July 2024 - ๐ฎ๐นItaly kopeboy Milan
schemata
andschemata_json_schema
now have beta releases Automatically closed - issue fixed for 2 weeks with no activity.