Siyali Gupta started this conversation 9 months ago.
Why does the OpenAPI generated code have unresolved references in my Kotlin Multiplatform app?
OpenAPI generated code has 'unresolved referances' in Kotlin Multiplatofrm app
codecool
Posted 9 months ago
Unresolved references in the OpenAPI generated code for a Kotlin Multiplatform app can be caused by several issues. Here are some common reasons and potential solutions:
Common Issues: Incorrect Dependencies: Ensure that all necessary dependencies are correctly included in your build.gradle or build.gradle.kts files. Missing dependencies can cause unresolved references.
Version Mismatch: Make sure that the versions of the OpenAPI generator and Kotlin are compatible. Sometimes, using incompatible versions can lead to issues.
Namespace Issues: Verify that the namespaces or packages used in the generated code match those in your project. Any mismatch can cause unresolved references.
Configuration Errors: Check the configuration settings in your build.gradle or build.gradle.kts files. Ensure that the input specification, output directory, and other settings are correctly set up.
Generated Code Issues: Sometimes, the generated code itself might have errors or missing parts. Review the generated code to see if there are any obvious issues.