# Include a .json file to reuse a JSON schema

**URL:** <https://community.postman.com/t/include-a-json-file-to-reuse-a-json-schema/27372>\
**Category:** Help Hub\
**Tags:** schema\
**Created:** [September 1, 2021, 12:41pm UTC](https://community.postman.com/t/include-a-json-file-to-reuse-a-json-schema/27372 "2021-09-01T12:41:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefano.rotini](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@stefano.rotini](https://community.postman.com/u/stefano.rotini)\
**Post date:** [September 1, 2021, 12:41pm UTC](https://community.postman.com/t/include-a-json-file-to-reuse-a-json-schema/27372/1 "2021-09-01T12:41:11Z")

</div>

Hello,

I’m using the JSON schema for the validation under the tab “Tests”.  
I need to reuse the same script for differents endpoints. How can I do it?  
Is it possible to import a file such shown below [see $ref]?

```
    {
      "type": "object",
      "required": [
        "data",
        "meta"
      ],
      "properties": {
        "meta": {
          "$ref": "../api/members/MetaObject-v2.json"
        },
        "data": {
          "type": "array",
          "items": {
            "$ref": "./device/Devicebject-v2.json"
          }
        }
      }
    }

```

Thanks in advance
