# \#ajv

**URL:** https://community.postman.com/tag/ajv/280.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [Sharing schema definition between two collections for schema validation (either tv4 or ajv)](https://community.postman.com/t/sharing-schema-definition-between-two-collections-for-schema-validation-either-tv4-or-ajv/38053)

<div class="topic-metadata">

**Author:** [@andriykalashnykov](https://community.postman.com/u/andriykalashnykov)\
**Replies:** 1\
**Last updated:** [August 10, 2022, 11:16am UTC](https://community.postman.com/t/sharing-schema-definition-between-two-collections-for-schema-validation-either-tv4-or-ajv/38053 "2022-08-10T11:16:13Z")

</div>

If a developer wants to use same schema definition (same variable) in different collections what are advisable options? Today we just copy and paste the same schema definition variable in each collection (Pre-request Sc…

---

## [AJV \<\> Postman Tests \<\> OpenAPI 3.0 questions](https://community.postman.com/t/ajv-postman-tests-openapi-3-0-questions/35566)

<div class="topic-metadata">

**Author:** [@dom-techwriter](https://community.postman.com/u/dom-techwriter)\
**Replies:** 0\
**Last updated:** [May 23, 2022, 9:22am UTC](https://community.postman.com/t/ajv-postman-tests-openapi-3-0-questions/35566 "2022-05-23T09:22:38Z")

</div>

Hi there! Apologies for the “vagueness” of the title, however, I have a few questions regarding AJV and Postman Tests vis-a-vis OpenAPI 3.0. Context So, with our OpenAPI schema (YAML), we make a lot of use of the null…

---

## [Validating JSON schema ignores the property's format](https://community.postman.com/t/validating-json-schema-ignores-the-propertys-format/30513)

<div class="topic-metadata">

**Author:** [@bigbrdo](https://community.postman.com/u/bigbrdo)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 8:17pm UTC](https://community.postman.com/t/validating-json-schema-ignores-the-propertys-format/30513 "2021-12-08T20:17:02Z")

</div>

Hello everyone! I recently discovered JSON schema by reading the Postman docs and I would like to incorporate this nifty feature in my tests. I discovered that AJV validatior is built-in in the Postman sandbox so natura…

---

## [How to Reuse json-schema in Postman](https://community.postman.com/t/how-to-reuse-json-schema-in-postman/7754)

<div class="topic-metadata">

**Author:** [@Nisrine](https://community.postman.com/u/Nisrine)\
**Replies:** 3\
**Last updated:** [October 27, 2021, 12:47am UTC](https://community.postman.com/t/how-to-reuse-json-schema-in-postman/7754 "2021-10-27T00:47:05Z")

</div>

How can I reuse this json-schema in postman without copying and pasting it in different postman requests: “languages”:{ “type”: “array”, “items” : \[ {“type”: “object”, “properties” : { “id”: {“type”: \[“null”, “num…

---

## [Create test response from json OR directly access jsonSchema()](https://community.postman.com/t/create-test-response-from-json-or-directly-access-jsonschema/19539)

<div class="topic-metadata">

**Author:** [@jdeasonphilz](https://community.postman.com/u/jdeasonphilz)\
**Replies:** 2\
**Last updated:** [January 26, 2021, 1:08am UTC](https://community.postman.com/t/create-test-response-from-json-or-directly-access-jsonschema/19539 "2021-01-26T01:08:58Z")

</div>

Good morning. I am trying to test my tests in postman, by testing an example subset of my data. Let’s assume that a normal response body is in the form of: { categories: {\[ id: int, products: \[int\] \]}…

---

## [Ajv json schema validator returns true when the json schema is actually invalid](https://community.postman.com/t/ajv-json-schema-validator-returns-true-when-the-json-schema-is-actually-invalid/18078)

<div class="topic-metadata">

**Author:** [@kkinchak](https://community.postman.com/u/kkinchak)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 1:59pm UTC](https://community.postman.com/t/ajv-json-schema-validator-returns-true-when-the-json-schema-is-actually-invalid/18078 "2020-12-08T13:59:15Z")

</div>

ajv json schema validator returns true when the json schema is actually invalid Notice that dayAdjustment propery must be of type boolean, not string var Ajv = require('ajv'), ajv = new Ajv(), schema = { "items": {…

---

## [Validating a double value in ajv](https://community.postman.com/t/validating-a-double-value-in-ajv/9490)

<div class="topic-metadata">

**Author:** [@Nisrine](https://community.postman.com/u/Nisrine)\
**Replies:** 0\
**Last updated:** [December 9, 2019, 9:48am UTC](https://community.postman.com/t/validating-a-double-value-in-ajv/9490 "2019-12-09T09:48:26Z")

</div>

is there a way to specify whether the attribute type is specifically a double? in the below screenshot, item\_total should be precisely double and not number

---

## [Getting error message when comparing 2 exact API requests](https://community.postman.com/t/getting-error-message-when-comparing-2-exact-api-requests/7774)

<div class="topic-metadata">

**Author:** [@Nisrine](https://community.postman.com/u/Nisrine)\
**Replies:** 0\
**Last updated:** [September 13, 2019, 9:27am UTC](https://community.postman.com/t/getting-error-message-when-comparing-2-exact-api-requests/7774 "2019-09-13T09:27:32Z")

</div>

i want to compare 2 API requests on postman. Both APIs give same request and the same schema is added in both APIs: schema = { "properties": { "errors": { "type": "boolean" …

---

## [Is it possible to have a shared Ajv schema?](https://community.postman.com/t/is-it-possible-to-have-a-shared-ajv-schema/7275)

<div class="topic-metadata">

**Author:** [@jshea](https://community.postman.com/u/jshea)\
**Replies:** 6\
**Last updated:** [August 29, 2019, 9:23pm UTC](https://community.postman.com/t/is-it-possible-to-have-a-shared-ajv-schema/7275 "2019-08-29T21:23:15Z")

</div>

I have a schema that I want to use in tests in several dozen individual requests. Instead of copying the same schema definition into the Test for each request, is it possible to define the schema at a Collection level an…

---

## [JSON schema validation troubles](https://community.postman.com/t/json-schema-validation-troubles/5024)

<div class="topic-metadata">

**Author:** [@vrolijken](https://community.postman.com/u/vrolijken)\
**Replies:** 0\
**Last updated:** [April 17, 2019, 8:32am UTC](https://community.postman.com/t/json-schema-validation-troubles/5024 "2019-04-17T08:32:38Z")

</div>

Hi all, I’ve got a JSON schema that holds all my request and response entities. It is a draft-04. When validating my response like this: tv4.addSchema(globalSchema); const valResult = tv4.validate(data,…
