generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: kotlin schema extractor fixes (#940)
fixes #938 fixes #934 fixes #929 This change fixes the java class resolution issue in module POMs, but I still unfortunately haven't figured out how to do the same for unit tests run from `kotlin-runtime/ftl-runtime`. So, the change was validated locally instead of in unit tests. with the given Echo.kt: ``` package ftl.echo import ftl.builtin.Empty import xyz.block.ftl.Context import xyz.block.ftl.Verb import java.time.OffsetDateTime import java.util.ArrayList import java.util.HashMap class InvalidInput(val field: String) : Exception() data class EchoRequest(val name: String?) data class EchoResponse( val message: String, val time: OffsetDateTime? = null, val arrayList: ArrayList<Empty> = ArrayList(), val hashMap: HashMap<String, String> = HashMap() ) @throws(InvalidInput::class) @verb fun echo(context: Context, req: EchoRequest): EchoResponse { return EchoResponse(message = "Hello, ${req.name ?: "anonymous"}!") } ``` <img width="642" alt="Screenshot 2024-02-14 at 4 11 10 PM" src="https://github.com/TBD54566975/ftl/assets/72891690/7cb0ecc7-7061-4e48-adc9-c9b9c9dc57a1">
- Loading branch information
Showing
4 changed files
with
70 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters