# Open API 3.0 schema support in PostmanTiny validator

**URL:** <https://community.postman.com/t/open-api-3-0-schema-support-in-postmantiny-validator/7585>\
**Category:** Help Hub\
**Created:** [September 3, 2019, 4:30pm UTC](https://community.postman.com/t/open-api-3-0-schema-support-in-postmantiny-validator/7585 "2019-09-03T16:30:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![LiamC](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@LiamC](https://community.postman.com/u/LiamC)\
**Post date:** [September 4, 2019, 9:21am UTC](https://community.postman.com/t/open-api-3-0-schema-support-in-postmantiny-validator/7585/2 "2019-09-04T09:21:20Z")

</div>

Hi,

I was wanting to do something similar recently, ended up getting it to work with Ajv validation instead, this topic might be helpful to you:

> [@Testing Properties and Arrays correctly in GET](https://community.postman.com/t/testing-properties-and-arrays-correctly-in-get/7133/13):
>
> I managed to get something to work, after banging my head against a wall for hours. I do agree this schema validation stuff may be a lot more than I can handle at the moment, so I may go back to what I had originally. It’s been a learning experience though! If you’re interested by the way, this is what I found would actually test Passes & fails correctly: const jsonData = pm.response.json(); pm.test('Schema is valid', function() { var Ajv = require('ajv'); ajv = new Ajv(), schem…

@danny-dainton has a more concise example here of Ajv validation if that’s all you’ll need:

> [@Checking a schema with tv4](https://community.postman.com/t/checking-a-schema-with-tv4/7575/2):
>
> Hey @Coxjeffrey, I would recommend using [Ajv](https://github.com/epoberezkin/ajv) over tv4, this also comes as part of the Postman app. You can use this example to check your response against the schema: var Ajv = require('ajv'), ajv = new Ajv({ logger: console, allErrors: true }), schema = { "type":"object", "required":["Id", "Progress", "Status", "Info", "Created", "Ended", "Operation", "Requested"], "properties":{ "Id":{ "$id":"#/properties/I…

I ended up ditching Schema validation and testing it a different way as the API I’m testing has become really complicated and the schema way was just a bit too advanced for me to do for now.

Good luck, hope this helps! 🙂

---

_[View the full topic](https://community.postman.com/t/open-api-3-0-schema-support-in-postmantiny-validator/7585)._
