# JSON reusable schema

**URL:** <https://community.postman.com/t/json-reusable-schema/1345>\
**Category:** Help Hub\
**Tags:** json\
**Created:** [April 1, 2018, 3:15pm UTC](https://community.postman.com/t/json-reusable-schema/1345 "2018-04-01T15:15:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![minja.ceranic](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@minja.ceranic](https://community.postman.com/u/minja.ceranic)\
**Post date:** [April 1, 2018, 3:15pm UTC](https://community.postman.com/t/json-reusable-schema/1345/1 "2018-04-01T15:15:06Z")

</div>

Hello,  
I need little help. I created JSON schema which I want to validate, and I want to reuse that schema in other requests. I tried to set up as an environment variable and then to call it from other test, but when I checked value in env variable it was storred as Object [object]

---

<div class="post-metadata">

**Author:** ![rmlira](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/rmlira/32/232_2.png) [@rmlira](https://community.postman.com/u/rmlira)\
**Post date:** [April 2, 2018, 5:01pm UTC](https://community.postman.com/t/json-reusable-schema/1345/2 "2018-04-02T17:01:47Z")

</div>

Hi. There’s no problem if the schema is stored in environment as object, when you retrieve it to validate using pm.environment.get(“schema\_var”) postman will read the data normally.

Do you have any problem during schema validation?

---

<div class="post-metadata">

**Author:** ![minja.ceranic](https://avatars.discourse-cdn.com/v4/letter/m/e495f1/32.png) [@minja.ceranic](https://community.postman.com/u/minja.ceranic)\
**Post date:** [April 9, 2018, 6:52am UTC](https://community.postman.com/t/json-reusable-schema/1345/3 "2018-04-09T06:52:52Z")

</div>

Hey @rmlira thanks a lot, yap it helped.  
I just called function environment.name\_of\_variable and I got proper reusable schema.  
Thanks once again 😊
