Hi,
In my Dev portal, I am not able to install Swagger UI Field Formatter (swagger_ui_formatter)
The Drupal version is 8.9 and I installed swagger UI library
It shows to me this error
InvalidArgumentException: Class "Drupal\swagger_ui_formatter\Service\SwaggerUiLibraryDiscovery" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition() (line 24 of core/lib/Drupal/Core/DependencyInjection/ClassResolver.php).
I am wondering, is there anything I am missing. If anybody has pointers on this issue, it will be very helpful.
Thanks
Solved! Go to Solution.
Did you followed all the steps to install module and Swagger UI library mentioned at https://www.drupal.org/project/swagger_ui_formatter
Did you followed all the steps to install module and Swagger UI library mentioned at https://www.drupal.org/project/swagger_ui_formatter
Hi @Roaa ,
Try swagger_ui_formatter 8.x-2.4
'SwaggerUiLibraryDiscovery' was introduced from version 8.x-3.0 so try 8.x-2.4 which works for me.
When installing it to Drupal 9.3.2 shows this below error when enabling the Module.
This version is not compatible with drupal 9.3.2 and should be replaced.
Incompatible with version 9.3.2.
Most likely you're installing the module with tar.gz / .zip file. Install the module with composer - they way it is given in documentation, it should work.
Here is the issue queue for swagger_ui_formatter module