diff --git a/src/tests/comparisons.spec.ts b/src/tests/comparisons.spec.ts index b04335c..c306404 100644 --- a/src/tests/comparisons.spec.ts +++ b/src/tests/comparisons.spec.ts @@ -24,6 +24,7 @@ describe("Single File Comparisons", () => { sourceRoot: root, options: { dedupeTaggedUnions: true, + experimentalZodSupport: true, }, }); const out = sanitizeComparison(martok.generateMultiFile()); diff --git a/tests/comparisons/single/ZodStuff.kt b/tests/comparisons/single/ZodStuff.kt new file mode 100644 index 0000000..c642e39 --- /dev/null +++ b/tests/comparisons/single/ZodStuff.kt @@ -0,0 +1,21 @@ +/**************************************************** +** DO NOT EDIT THIS FILE BY HAND! ** +** This file was automatically generated by Martok ** +** More info at https://github.com/asarazan/martok ** +*****************************************************/ +package example + +import kotlinx.serialization.* +import kotlinx.serialization.json.* + +/** + * @expand + */ +@Serializable +data class FormData( + val firstName: String, + val lastName: String, + val email: String, + val phone: String? = null, + val url: String? = null +)