You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
site: fix C#/Java/Kotlin code examples to match real generator output
An audit of all three ports (the launch review only covered TS+Python) found the
example blocks — which the page headlines as "what every port actually generates" —
diverged from real output:
- C#: regenerated from real `dotnet meta` output — nested lowercase enum, Data
Annotations ([Table]/[Key]/[Column]/[Required]/[MaxLength]/[MinLength]), `class`
(not partial/record), nullable CreatedAt, real DbContext/OnModelCreating.
- Java: enum members lowercase-verbatim + nested in the DTO record; controller uses
the real cross-port envelope (ResponseEntity<?>, limit/offset/sort/withCount,
get not findById, update = PATCH/PUT JsonNode) instead of a Spring-Data
Page/Pageable shape the tool never emits.
- Kotlin: SubscriberTable text("name") (not varchar 255), enum width 64 (not 20),
instantWithTimeZone (not timestamp); enum members lowercase; comparison table no
longer claims "@serializable data classes" (entities are plain).
- Intro/comparison prose: "records for C#" → classes; dropped "Postgres DDL (C#)".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XeGSV3StPCcJGZNNJ4ZfAb
@@ -230,7 +230,7 @@ <h2 class="section-label">Five ports. All installable today.</h2>
230
230
<!-- Canonical example: one schema → five languages -->
231
231
<sectionclass="example" id="example">
232
232
<h2class="section-label">From one schema, five languages.</h2>
233
-
<pclass="example-intro">A typed entity in metadata, side-by-side with what every port actually generates. Each output is idiomatic for that language — Drizzle + Zod for TypeScript, JPA + Spring records for Java, Exposed + KotlinPoet data classes for Kotlin, EF Core + ASP.NET records for C#, Pydantic + FastAPI for Python. Same metadata; five idiomatic outputs; conformance-gated to byte-identical canonical form.</p>
233
+
<pclass="example-intro">A typed entity in metadata, side-by-side with what every port actually generates. Each output is idiomatic for that language — Drizzle + Zod for TypeScript, JPA + Spring records for Java, Exposed + KotlinPoet data classes for Kotlin, EF Core + ASP.NET classes for C#, Pydantic + FastAPI for Python. Same metadata; five idiomatic outputs; conformance-gated to byte-identical canonical form.</p>
234
234
235
235
<pclass="example-section-label">The source: one YAML file in <code>metaobjects/</code></p>
<td>KotlinPoet-generated <code>@Serializable</code>data classes + Exposed Tables from the same metamodel that drives the Java / TS / Python / C# stacks. Same Kotlin idioms; cross-port lockstep.</td>
513
+
<td>KotlinPoet-generated data classes + Exposed Tables from the same metamodel that drives the Java / TS / Python / C# stacks. Same Kotlin idioms; cross-port lockstep.</td>
0 commit comments