# Converting schema to standard JSON Schema

**URL:** https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728
**Category:** Schema & Data
**Created:** [December 8, 2018, 6:27pm UTC](https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728 "2018-12-08T18:27:15Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rockgoby](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@rockgoby](https://community.dreamfactory.com/u/rockgoby)
#### Post date: [December 8, 2018, 6:27pm UTC](https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728/1 "2018-12-08T18:27:15Z")

</div>

Hi All,

I’ve been familiarising myself with DF - and from what I understand so far, it seems that the schema files generated from the database are not standard JSON schema files (I appreciate the rationale for this). I was wondering if there is any way to generate standard JSON schema ([https://json-schema.org](https://json-schema.org)) directly from the database. I am happy to convert this myself, but just wanted to check before re-inventing any wheels (the rationale for this is that I would like to dynamically generate some client side code which can be done directly with a JSON schema files).

Cheers

Alex.

---

<div class="post-metadata">

### Author: ![Kevin\_Mcgahey](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kevin\_Mcgahey](https://community.dreamfactory.com/u/Kevin_Mcgahey)
#### Post date: [December 10, 2018, 5:11pm UTC](https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728/2 "2018-12-10T17:11:06Z")

</div>

Hi @rockgoby,

Could you please clarify, are you referring to the resource tag?

Best,  
Kevin

---

<div class="post-metadata">

### Author: ![rockgoby2](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@rockgoby2](https://community.dreamfactory.com/u/rockgoby2)
#### Post date: [December 11, 2018, 8:08pm UTC](https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728/3 "2018-12-11T20:08:58Z")

</div>

HI Kevin,

Yes - exactly. I see this contains a lot more information than JSON Schema, but it would be good to be able to produce standard JSON Schema files for the database also,

Kind regards

Alex.

---

<div class="post-metadata">

### Author: ![Kevin\_Mcgahey](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Kevin\_Mcgahey](https://community.dreamfactory.com/u/Kevin_Mcgahey)
#### Post date: [December 11, 2018, 8:21pm UTC](https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728/4 "2018-12-11T20:21:29Z")

</div>

@rockgoby2,

To remove the resource wrapper you can edit your .env file to not be enable. It can be found under the API Settings section ([https://cl.ly/69f2035f1621](https://cl.ly/69f2035f1621)). When making changes of this sort please make sure to run `php artisan cache:clear` and `php artisan config:clear` to ensure the changes are picked up.

---

<div class="post-metadata">

### Author: ![rockgoby2](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@rockgoby2](https://community.dreamfactory.com/u/rockgoby2)
#### Post date: [December 11, 2018, 9:24pm UTC](https://community.dreamfactory.com/t/converting-schema-to-standard-json-schema/4728/5 "2018-12-11T21:24:58Z")

</div>

Thanks again Kevin - ah, OK - no, I don’t want to just remove the resource wrapper. I would actually like to be able to configure the output to conform to the JSON Schema conventions - is there a template somewhere that governs this?

I would like to modify the output /\_schema/{table\_name} to be more in alignment with : [this format](https://1drv.ms/u/s!AqvCUd92WANvmOFlh0UyTUiIH0N7Jg)

I appreciate that I could just do some external conversion, but it would be helpful if I could configure DF to do this.

Kind regards

Alex.
