Unable to install this module as stable release

Created on 8 April 2023, about 1 year ago
Updated 5 September 2023, 10 months ago

Problem/Motivation

Can't enable this module to be able to see jsonapi's rest documentation on my site.

Steps to reproduce

I required with composer and enabled:

  • openapi 8.x-2.1
  • openapi_ui 8.x-1.0-rc4
  • openapi_ui_redoc 8.x-1.0-rc4
  • schemata (with schemata_json_schema) 8.x-1.x-dev
  • jsonapi, rest, restui (core 10.0.7)

but when I try to require drupal/openapi_jsonapi (this module, ^3.0) I get
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.

Proposed resolution

What am I doing wrong? ๐Ÿ™๐Ÿป

๐Ÿ› Bug report
Status

Active

Version

3.0

Component

Miscellaneous

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly kopeboy Mainland

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

Comments & Activities

  • Issue created by @kopeboy
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly kopeboy Mainland

    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 Mainland

    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 Mainland

    Thank you for the workaround (it worked), but isn't there still a problem if:

    1. this modules is marked as "stable",
    2. I had already installed the dependency separately with composer require drupal/schemata:1.0.0-beta3,
    3. 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

  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 10.0.7 + Environment: PHP 7.4 & MySQL 5.7
    last update 10 months ago
    Composer require failure
  • @jeya-sundhar opened merge request.
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 9.5.5 + Environment: PHP 8.1 & MySQL 5.7
    last update 10 months ago
    11 pass
Production build 0.69.0 2024