---
title: "Discussion on \"Codegen and readOnly/writeOnly: Why Create Models Include Server Fields\" | Hashnode"
description: "Discussion on \"Codegen and readOnly/writeOnly: Why Create Models Include Server Fields\". readOnly and writeOnly let a generator split response and request models; collapsed create models force clients to fake server-owned fields."
url: "https://hashnode.com/posts/codegen-readonly-writeonly-create-models/6ae838c8be5036b082889bee"
---

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

Discussion

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

Nov 2 · 5 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.
