sngular / scs-multiapi-plugin

This is a Maven plugin designed to help developers automatizing the creation of code classes from YML files based on AsyncApi and OpenAPI.
http://sngular.com
Mozilla Public License 2.0
48 stars 10 forks source link

Bug: processReference method unable to process references to files ending in .yaml #325

Closed MF-patino closed 9 months ago

MF-patino commented 9 months ago

There appears to be an error in the class file ReferenceProcessor.java, located in scs-multiapi-plugin\multiapi-engine\src\main\java\com\sngular\api\generator\plugin\asyncapi\util\ReferenceProcessor.java

In its method processReference, the following condition in line 51: if (referenceLink.toLowerCase().contains(YML) || referenceLink.toLowerCase().contains(JSON)) only considers files ending in .yml and .json, so files ending in .yaml will result in errors.

github-actions[bot] commented 9 months ago

Thank you for collaborating with the project by giving us feedback! Cheers!