---
title: "Discussion on \"Reusable JSON Schema components in OpenAPI: DRY models without $ref spaghetti\" | Hashnode"
description: "Discussion on \"Reusable JSON Schema components in OpenAPI: DRY models without $ref spaghetti\". Inline every schema and your request and response models drift apart. Extract everything and the document becomes a maze of one-off references. The middle path is a small set of rules for what becomes a component, what stays inline, and how to name and compose it."
url: "https://hashnode.com/posts/reusable-json-schema-components-openapi-ref/6aca0818645a621880c29685"
---

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

Discussion

# [Reusable JSON Schema components in OpenAPI: DRY models without $ref spaghetti](https://blogs.powerduck.com/reusable-json-schema-components-openapi-ref?utm_source=hashnode&utm_medium=feed)

Inline every schema and your request and response models drift apart. Extract everything and the document becomes a maze of one-off references. The middle path is a small set of rules for what becomes a component, what stays inline, and how to name and compose it.

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

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#json-schema](https://hashnode.com/tag/json-schema)
-   [#api-design](https://hashnode.com/tag/api-design)
-   [#architecture](https://hashnode.com/tag/architecture)

## Written by

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

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
