---
title: "Discussion on \"Codegen vs additionalProperties: When Free-Form Maps Break Typed Clients\" | Hashnode"
description: "Discussion on \"Codegen vs additionalProperties: When Free-Form Maps Break Typed Clients\". Keep map keys open but pin the value type, and verify the generated client preserves it."
url: "https://hashnode.com/posts/codegen-additionalproperties-freeform-maps/6ae44108ec6645a0efe600ed"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [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.

Oct 30 · 4 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#codegen](https://hashnode.com/tag/codegen)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
