You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple OpenAPI Schemas Not Processed Correctly in Tapir Codegen
Environment:
Tapir version: 1.11.16
Scala version: 3.3.5
SBT version: 1.10.1
Issue Description:
When attempting to generate tapir-clients using multiple OpenAPI YAML files, the code generation fails during compilation. Despite following the instructions from the official Tapir documentation, the process cannot locate the expected files, resulting in a FileNotFoundException.
Steps to Reproduce:
Project Setup:
Create a new Scala project with the following build.sbt configuration:
Place two OpenAPI YAML files in the project root: bot.openapi.yml scrapper.openapi.yml
Compilation:
Run sbt compile.
Observed Behavior:
The compilation fails with the following error: [error] (Compile / managedSources) java.io.FileNotFoundException: /Users/haskiindahouse/scala-haskiindahouse/swagger.yaml (No such file or directory)
Notice that the error references swagger.yaml instead of either of the provided YAML files.
Expected Behavior:
Both specified OpenAPI YAML files should be processed correctly, and the tapir-clients should be generated without a file not found error.
Additional Information:
The error suggests that the code generation plugin might be defaulting to look for a file named swagger.yaml even when multiple schemas are specified.
If further logs or debugging details are needed to troubleshoot this issue, please let me know.
Questions:
Is this behavior a known limitation when using multiple OpenAPI schemas?
Are there any recommended workarounds or additional configuration steps to support multiple YAML files?
Thank you for your assistance in resolving this issue. Please let me know if additional information is required.
The text was updated successfully, but these errors were encountered:
Multiple OpenAPI Schemas Not Processed Correctly in Tapir Codegen
Environment:
Tapir version:
1.11.16
Scala version:
3.3.5
SBT version:
1.10.1
Issue Description:
When attempting to generate tapir-clients using multiple OpenAPI YAML files, the code generation fails during compilation. Despite following the instructions from the official Tapir documentation, the process cannot locate the expected files, resulting in a
FileNotFoundException
.Steps to Reproduce:
Project Setup:
Create a new Scala project with the following build.sbt configuration:
File Placement:
Place two OpenAPI YAML files in the project root:
bot.openapi.yml
scrapper.openapi.yml
Compilation:
Run
sbt compile
.Observed Behavior:
The compilation fails with the following error:
[error] (Compile / managedSources) java.io.FileNotFoundException: /Users/haskiindahouse/scala-haskiindahouse/swagger.yaml (No such file or directory)
Notice that the error references swagger.yaml instead of either of the provided YAML files.
Expected Behavior:
Both specified OpenAPI YAML files should be processed correctly, and the tapir-clients should be generated without a file not found error.
Additional Information:
The error suggests that the code generation plugin might be defaulting to look for a file named swagger.yaml even when multiple schemas are specified.
If further logs or debugging details are needed to troubleshoot this issue, please let me know.
Questions:
Thank you for your assistance in resolving this issue. Please let me know if additional information is required.
The text was updated successfully, but these errors were encountered: