---
title: "Discussion on \"OpenAPI additionalProperties: modeling maps, dictionaries, labels, and free-form objects without losing types\" | Hashnode"
description: "Discussion on \"OpenAPI additionalProperties: modeling maps, dictionaries, labels, and free-form objects without losing types\". A JSON object is sometimes a fixed record, sometimes a Map&lt;string, T&gt; of arbitrary keys, and sometimes genuinely free-form. Use additionalProperties for dictionaries, properties plus additionalProperties:false for strict records, and an empty object for anything-goes payloa"
url: "https://hashnode.com/posts/openapi-additionalproperties-freeform-objects-maps/6aca078c50151a1896677e1a"
---

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

Discussion

# [OpenAPI additionalProperties: modeling maps, dictionaries, labels, and free-form objects without losing types](https://blogs.powerduck.com/openapi-additionalproperties-freeform-objects-maps?utm_source=hashnode&utm_medium=feed)

A JSON object is sometimes a fixed record, sometimes a Map&lt;string, T&gt; of arbitrary keys, and sometimes genuinely free-form. Use additionalProperties for dictionaries, properties plus additionalProperties:false for strict records, and an empty object for anything-goes payloa

Oct 8 · 6 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#json-schema](https://hashnode.com/tag/json-schema)
-   [#codegen](https://hashnode.com/tag/codegen)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

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

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
