---
title: "Discussion on \"Stop letting examples lie: make your OpenAPI spec the single source of truth for docs, mocks, and agents\" | Hashnode"
description: "Discussion on \"Stop letting examples lie: make your OpenAPI spec the single source of truth for docs, mocks, and agents\". The same example payload is usually hand-copied into docs, a mock server, a Postman collection, and test fixtures, and then they drift. OpenAPI examples can drive all four from one document, but only if they are realistic, schema-valid, and cover success, empty, and error states."
url: "https://hashnode.com/posts/openapi-examples-single-source-of-truth/6aca07ff3e7c879e19646400"
---

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

Discussion

# [Stop letting examples lie: make your OpenAPI spec the single source of truth for docs, mocks, and agents](https://blogs.powerduck.com/openapi-examples-single-source-of-truth?utm_source=hashnode&utm_medium=feed)

The same example payload is usually hand-copied into docs, a mock server, a Postman collection, and test fixtures, and then they drift. OpenAPI examples can drive all four from one document, but only if they are realistic, schema-valid, and cover success, empty, and error states.

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

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#documentation](https://hashnode.com/tag/documentation)
-   [#mocking](https://hashnode.com/tag/mocking)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

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

@powerduck · hon

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
