- Issue created by @afinnarn
- last update
11 months ago 1 pass - Status changed to Needs review
11 months ago 8:06pm 15 December 2023 - 🇺🇸United States afinnarn
I updated the composer.json file to pull swagger-ui 5.x but didn't add any tests yet. Feel free to review, and hopefully, I can help add tests.
- last update
8 months ago 1 pass - last update
8 months ago 1 pass - Status changed to RTBC
8 months ago 9:42am 1 April 2024 - 🇮🇳India vipin.mittal18 Greater Noida
Hello @richgerdes,
Swagger-api/swagger-ui have been updated from version 3 to version 5 with a number of bug fixes. so it would be good for us to use latest one.
Thanks! - 🇺🇸United States afinnarn
Hey @vipin.mittal18, are you getting the 5.x library with this patch? I thought I was, but when I look in the libraries directory, I still have 3.x . I think the patch might be applied after Composer installs and merges dependencies, but I'm not sure. I will continue to look into this and maybe try pointing Composer to the MR branch.
If you aren't getting 5.x either, then maybe this MR has to be merged for us to pick it up or at least the issue should go back to "Needs Work".
- 🇺🇸United States afinnarn
I will leave this at RTBC since I confirmed that once the patch is merged, it will update swagger-ui to 5.x. For now, I had to do the following:
Update composer.json repositories section:
"repositories": { "drupal": { "type": "composer", "url": "https://packages.drupal.org/8", "exclude": [ "drupal/openapi_ui_swagger" ] }, "drupal/openapi_ui_swagger": { "type": "git", "url": "https://git.drupal.org/issue/openapi_ui_swagger-3409145.git" }
Then run these commands:
- composer remove drupal/openapi_ui_swagger --no-update
- composer require drupal/openapi_ui_swagger:dev-3409145-update-swagger-ui#bd0b5aa612c5c49763e28f8d19dfef9940166f49 -W
Now when you look, you should see swagger_ui 5.x loaded instead of 3.x.