Skip to content

Commit 09ab677

Browse files
committed
site: Kotlin entity data class has no @serializable; TS @required Zod adds .min(1)
Two more code-example accuracy fixes (matching what the ports actually emit): - codegen-kotlin emits plain entity data classes — @serializable was dropped (decorative; jsonb uses Jackson). Only enums + prompt payloads keep it. Removed the stale annotation from the Subscriber data class (kept it on the enum). - The TS Zod insert schema for a @required string is `.min(1).max(N)` (FR-036 non-empty), not `.max(N)` alone. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XeGSV3StPCcJGZNNJ4ZfAb
1 parent 75a4465 commit 09ab677

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

www/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ <h2 class="section-label">From one schema, five languages.</h2>
265265
});
266266

267267
<span class="keyword">export const</span> SubscriberInsertSchema = z.object({
268-
email: z.string().max(320),
268+
email: z.string().min(1).max(320),
269269
name: z.string().optional(),
270270
status: z.enum([<span class="string">"active"</span>, <span class="string">"paused"</span>, <span class="string">"cancelled"</span>]),
271271
});
@@ -310,7 +310,6 @@ <h2 class="section-label">From one schema, five languages.</h2>
310310
<span class="keyword">import</span> java.time.Instant
311311
<span class="keyword">import</span> kotlinx.serialization.Serializable
312312

313-
@Serializable
314313
<span class="keyword">public data class</span> Subscriber(
315314
<span class="keyword">public val</span> id: Long? = <span class="keyword">null</span>,
316315
<span class="keyword">public val</span> email: String,

0 commit comments

Comments
 (0)