---
title: "Discussion on \"Response Templating: Dynamic Stubs vs Reusing OpenAPI Examples\" | Hashnode"
description: "Discussion on \"Response Templating: Dynamic Stubs vs Reusing OpenAPI Examples\". Anchor stub responses to OpenAPI examples and template only genuinely dynamic fields, so the mock cannot overfit the test."
url: "https://hashnode.com/posts/response-templating-dynamic-stubs-vs-openapi-examples/6ae83dd0d9db3a407c83aa63"
---

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

Discussion

# [Response Templating: Dynamic Stubs vs Reusing OpenAPI Examples](https://blogs.powerduck.com/response-templating-dynamic-stubs-vs-openapi-examples?utm_source=hashnode&utm_medium=feed)

Anchor stub responses to OpenAPI examples and template only genuinely dynamic fields, so the mock cannot overfit the test.

Nov 2 · 5 min read · blogs.powerduck.com  
Read the article

-   [#mocking](https://hashnode.com/tag/mocking)
-   [#api](https://hashnode.com/tag/api)
-   [#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.
