Closed (outdated)
Project:
OpenAPI
Version:
3.0.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jun 2024 at 10:22 UTC
Updated:
23 Jul 2024 at 03:48 UTC
Jump to comment: Most recent
3.0.x branches info file only specifies drupal 8 and 9
openapi.info.yml
core_version_requirement: '^8 || ^9'
While composer.json supports 8, 9 and 10
core_version_requirement: ^8 || ^9 || ^10
This means one can use composer to download it, but then can not enable it on drupal 10.
composer require 'drupal/openapi:3.0.x-dev@dev'
drush en openapi -y
In ModuleInstaller.php line 123:Unable to install modules: module 'openapi' is incompatible with this version of Drupal core.
just update the composer.json, easy.
update composer.json
none
none
none
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sepa_cleversoft commentedIs enough to change the yaml file to make the version 4.x of the module compatible with Drupal 10?
Do you know if it is working with json:API to serve openAPI version 3 version of the Drupal jsonapi resources? Or are still there some issue to make it fully compatible?
Comment #4
sepa_cleversoft commentedI've tried with Drupal 10, openapi 4 and openapi_jsonapi 3.
Everything was fine during composer requires and crush installations.
When I tried to open the page with the json output I got the white page with error.
Then something strage happened: composer, for example with composer up, started trying to apply 2 patches to the core, failing.
Then the website became inaccessible and drush was broken. My only chance was to restore a backup.
I'm not sure what was the event that fired the Armageddon, but it happened.
Do anybody have a clue on what happened? :D
Comment #5
ankitv18 commentedI guess this should be covered into D11 compatibility.
Comment #6
bradjones1This module is not yet stable. Thanks for pointing this out. Please do not use 3.x in production (yet).
Comment #7
bradjones1https://git.drupalcode.org/project/openapi/-/commit/31ce21815e3885812bdc...