---
title: "#codegen articles | Hashnode"
description: "Explore 28 articles tagged #codegen on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/codegen"
---

Tag

# #codegen

28 posts · 2 followers

[Dhruv](https://hashnode.com/@materwelon) · [4h ago](https://hashnode.com/posts/seedcord-v0-23-release/6b008d0c39b81cc695ae3a62)

### [seedcord v0.23 release](https://materwelon.hashnode.dev/seedcord-v0-23-release?utm_source=hashnode&utm_medium=feed)

A key-value store, natural language search in the guide, templates for new files, plugins that write their own types, and ~40 fixes.

10 min read · [materwelon.hashnode.dev](https://materwelon.hashnode.dev/seedcord-v0-23-release?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 6](https://hashnode.com/posts/codegen-string-format-uri-email-uuid-ignored/6aed8ea838ffa176dbfb8826)

### [When Codegen Ignores format: uuid, email, and uri and Gives You a Plain String](https://blogs.powerduck.com/codegen-string-format-uri-email-uuid-ignored?utm_source=hashnode&utm_medium=feed)

Why codegen turns format hints into plain strings and how to validate UUIDs, emails, and URIs yourself.

6 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-string-format-uri-email-uuid-ignored?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 4](https://hashnode.com/posts/codegen-binary-download-streaming-blob/6aeaec267b04bd97735e17e6)

### [Codegen for Binary Downloads: Streaming a File Response Instead of Decoding It as Text](https://blogs.powerduck.com/codegen-binary-download-streaming-blob?utm_source=hashnode&utm_medium=feed)

Quick guidance on codegen for binary downloads: streaming a file response instead of decoding it as text.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-binary-download-streaming-blob?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 3](https://hashnode.com/posts/codegen-error-responses-typed-exceptions/6ae991715a71ad06bd94d1da)

### [Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind](https://blogs.powerduck.com/codegen-error-responses-typed-exceptions?utm_source=hashnode&utm_medium=feed)

Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind — a practical, contract-based look at the failure mode and how to handle it.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-error-responses-typed-exceptions?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 3](https://hashnode.com/posts/codegen-circular-references-recursive-types/6ae96aa25fa6734954805fe9)

### [Codegen and Circular References: Where Generated Types Recurse or Break](https://blogs.powerduck.com/codegen-circular-references-recursive-types?utm_source=hashnode&utm_medium=feed)

How generators handle circular OpenAPI references, where they fall back to any, and how to validate recursive output.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-circular-references-recursive-types?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 2](https://hashnode.com/posts/codegen-readonly-writeonly-create-models/6ae838c8be5036b082889bee)

### [Codegen and readOnly/writeOnly: Why Create Models Include Server Fields](https://blogs.powerduck.com/codegen-readonly-writeonly-create-models?utm_source=hashnode&utm_medium=feed)

readOnly and writeOnly let a generator split response and request models; collapsed create models force clients to fake server-owned fields.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-readonly-writeonly-create-models?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 2](https://hashnode.com/posts/codegen-oneof-discriminator-unions-narrowing/6ae803955e46d3a5967eaed2)

### [Codegen on oneOf: Discriminated Unions and Where Clients Flatten Them](https://blogs.powerduck.com/codegen-oneof-discriminator-unions-narrowing?utm_source=hashnode&utm_medium=feed)

Model oneOf with an explicit discriminator and tag, inspect the generated type, and accept only a tagged union; contain flattening generators at a narrowing boundary.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-oneof-discriminator-unions-narrowing?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Nov 1](https://hashnode.com/posts/codegen-date-time-string-timezone-bugs/6ae748516a165ed245c9ac65)

### [Codegen Turned Every date-time into a String and Nobody Parsed It](https://blogs.powerduck.com/codegen-date-time-string-timezone-bugs?utm_source=hashnode&utm_medium=feed)

Generators map date-time to raw strings, pushing timezone and ordering bugs onto every caller, so map to a real temporal type or centralize parsing.

5 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-date-time-string-timezone-bugs?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Oct 30](https://hashnode.com/posts/codegen-additionalproperties-freeform-maps/6ae44108ec6645a0efe600ed)

### [Codegen vs additionalProperties: When Free-Form Maps Break Typed Clients](https://blogs.powerduck.com/codegen-additionalproperties-freeform-maps?utm_source=hashnode&utm_medium=feed)

Keep map keys open but pin the value type, and verify the generated client preserves it.

4 min read · [blogs.powerduck.com](https://blogs.powerduck.com/codegen-additionalproperties-freeform-maps?utm_source=hashnode&utm_medium=feed)

[Powerduck](https://hashnode.com/@powerduck) · [Oct 30](https://hashnode.com/posts/generated-enums-break-new-value/6ae414d356b4fa242a2e9568)

### [Generated Enums Break When the API Adds a New Value](https://blogs.powerduck.com/generated-enums-break-new-value?utm_source=hashnode&utm_medium=feed)

Decide whether each enum is closed or open; tolerate unknown values for evolving categories instead of crashing on additive changes.

6 min read · [blogs.powerduck.com](https://blogs.powerduck.com/generated-enums-break-new-value?utm_source=hashnode&utm_medium=feed)
