# Unable to validate Mock Server after changing the spec

**URL:** <https://community.postman.com/t/unable-to-validate-mock-server-after-changing-the-spec/22594>\
**Category:** Help Hub\
**Created:** [April 13, 2021, 5:49pm UTC](https://community.postman.com/t/unable-to-validate-mock-server-after-changing-the-spec/22594 "2021-04-13T17:49:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [April 13, 2021, 5:49pm UTC](https://community.postman.com/t/unable-to-validate-mock-server-after-changing-the-spec/22594/1 "2021-04-13T17:49:06Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-help-category/38) before creating a new topic.**

After adding one schema element to the spec definition, I am unable to validate **Mock Server**. PFB.

![postman](https://us1.discourse-cdn.com/getpostman/original/2X/2/27b64307fe00f49c350a5e2260e3ec2fd45aabf8.gif)

After I click on **Click to validate** it changes to → validating → Issues found → Click to validate

Postman Version: 8.2.2

Can someone please help 🙂

---

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [April 14, 2021, 5:10am UTC](https://community.postman.com/t/unable-to-validate-mock-server-after-changing-the-spec/22594/2 "2021-04-14T05:10:19Z")

</div>

I believe this could be a bug. I have raised an issue.

> <https://github.com/postmanlabs/postman-app-support/issues/9838>
>
> After adding one schema element to the spec definition, I am unable to validate Mock Server. PFB.
> After I click on Click...

---

<div class="post-metadata">

**Author:** ![satellite-specialist](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/satellite-specialist/32/8229_2.png) [@satellite-specialist](https://community.postman.com/u/satellite-specialist)\
**Post date:** [April 24, 2021, 7:40pm UTC](https://community.postman.com/t/unable-to-validate-mock-server-after-changing-the-spec/22594/3 "2021-04-24T19:40:06Z")

</div>

I am having the same issue. I am doing the API First Training program.

---

<div class="post-metadata">

**Author:** ![hannah.neil](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/hannah.neil/32/4477_2.png) [@hannah.neil](https://community.postman.com/u/hannah.neil)\
**Post date:** [April 26, 2021, 7:25pm UTC](https://community.postman.com/t/unable-to-validate-mock-server-after-changing-the-spec/22594/4 "2021-04-26T19:25:40Z")

</div>

Hi @satellite-specialist - welcome to the community! 🚀

Would you mind posting your issue in the [Training](https://community.postman.com/c/training/38) category?
