Interface written like this will fail at build time with a message:
android/business/api/_StoresApiImpl.kt:35:47 This declaration needs opt-in. Its usage must be marked with @kotlin.uuid.ExperimentalUuidApi or @OptIn(kotlin.uuid.ExperimentalUuidApi::class)
What did you expect to happen?
I expected build to be successful and for Ktorfit to propagate @OptIn(ExperimentalUuidApi::class) annotation to generated classes.
Ktorfit version
2.1.0
What happened and how can we reproduce this issue?
I am using new Uuid API that was shipped with kotlin 2.0.20 and have an interface defining Stores API implemented like this:
Interface written like this will fail at build time with a message:
What did you expect to happen?
I expected build to be successful and for Ktorfit to propagate
@OptIn(ExperimentalUuidApi::class)
annotation to generated classes.Is there anything else we need to know about?
No response