Unable to install this module as stable release

Created on 8 April 2023, over 1 year ago
Updated 21 July 2024, 4 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

Fixed

Version

3.0

Component

Miscellaneous

Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly kopeboy Milan

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

Comments & Activities

  • 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:

    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 about 1 year 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 about 1 year ago
    11 pass
  • Status changed to Fixed 5 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡นItaly kopeboy Milan

    schemata and schemata_json_schema now have beta releases

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

Production build 0.71.5 2024