# \#validation

**URL:** https://community.postman.com/tag/validation/439.md

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

---

## [API schema validation error: Contains an invalid property: tokenUrl](https://community.postman.com/t/api-schema-validation-error-contains-an-invalid-property-tokenurl/20805)

<div class="topic-metadata">

**Author:** [@CBoland](https://community.postman.com/u/CBoland)\
**Replies:** 0\
**Last updated:** [February 25, 2021, 7:44pm UTC](https://community.postman.com/t/api-schema-validation-error-contains-an-invalid-property-tokenurl/20805 "2021-02-25T19:44:54Z")

</div>

I’m working on the Define tab of an API. Schema selection on Define tab is OpenAPI 3.0. Postman is validating the definition and displays the following error: Validation error. Contains an invalid property: tokenUrl. B…

---

## [Testing a POST request using a GET request](https://community.postman.com/t/testing-a-post-request-using-a-get-request/60501)

<div class="topic-metadata">

**Author:** [@docking-module-astr5](https://community.postman.com/u/docking-module-astr5)\
**Replies:** 1\
**Last updated:** [May 1, 2024, 8:37am UTC](https://community.postman.com/t/testing-a-post-request-using-a-get-request/60501 "2024-05-01T08:37:51Z")

</div>

I am new to API testing and looking to validate a POST request. The request creates a user account and I am trying to write a test to GET the user details and confirm they match the POST body. I used the Postman bot too…

---

## [How to check in json schema validation that response doesnt contains any extra fields that wasn't declorated by me in json schema validation?](https://community.postman.com/t/how-to-check-in-json-schema-validation-that-response-doesnt-contains-any-extra-fields-that-wasnt-declorated-by-me-in-json-schema-validation/46356)

<div class="topic-metadata">

**Author:** [@egoriacovlevorange](https://community.postman.com/u/egoriacovlevorange)\
**Replies:** 3\
**Last updated:** [November 14, 2023, 8:14am UTC](https://community.postman.com/t/how-to-check-in-json-schema-validation-that-response-doesnt-contains-any-extra-fields-that-wasnt-declorated-by-me-in-json-schema-validation/46356 "2023-11-14T08:14:24Z")

</div>

Hello guys! I have trouble in json schema validation. I tried to use all of validators and i found that them doesn’t show error message, while response from api have some extra fields that was not declorated by me. fo…

---

## [How to import schema from external folein test section to validate](https://community.postman.com/t/how-to-import-schema-from-external-folein-test-section-to-validate/50759)

<div class="topic-metadata">

**Author:** [@hamxi](https://community.postman.com/u/hamxi)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 12:05pm UTC](https://community.postman.com/t/how-to-import-schema-from-external-folein-test-section-to-validate/50759 "2023-08-21T12:05:55Z")

</div>

Is there any way we can store json schema in a seprate file and then use that file in our postman test scripts? don’t want to store schema in variables because we have a lot schemas

---

## [Dynamic Variable in Request Body Validateion Error](https://community.postman.com/t/dynamic-variable-in-request-body-validateion-error/15227)

<div class="topic-metadata">

**Author:** [@darren.capner](https://community.postman.com/u/darren.capner)\
**Replies:** 1\
**Last updated:** [July 14, 2023, 7:10pm UTC](https://community.postman.com/t/dynamic-variable-in-request-body-validateion-error/15227 "2023-07-14T19:10:18Z")

</div>

Hi, I am using a dynamic variable {{$randomInt}} in my request body and the API Designer’s schema validation on for the collection is indicating that there are validation errors. I am using the following request body i…

---

## [Validate data format of parameters](https://community.postman.com/t/validate-data-format-of-parameters/43666)

<div class="topic-metadata">

**Author:** [@fm-786](https://community.postman.com/u/fm-786)\
**Replies:** 9\
**Last updated:** [February 8, 2023, 11:57am UTC](https://community.postman.com/t/validate-data-format-of-parameters/43666 "2023-02-08T11:57:06Z")

</div>

I am testing an API which allows users to access current weather data for any location on Earth. The parameters involved are: q (city name) appid (unique API key) units (units of measurement) lang (language) All of…

---

## [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…

---

## [Relationship between tv4/ajv and any json schema draft specification](https://community.postman.com/t/relationship-between-tv4-ajv-and-any-json-schema-draft-specification/24952)

<div class="topic-metadata">

**Author:** [@aakash.gupta](https://community.postman.com/u/aakash.gupta)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 6:35am UTC](https://community.postman.com/t/relationship-between-tv4-ajv-and-any-json-schema-draft-specification/24952 "2021-06-17T06:35:21Z")

</div>

I understand the tv4/ajv do schema validations. There are also different ways a json schema can be written using any draft specification listed here My query: Is tv4 capable of validation json schema written in any vers…

---

## [Which JSON Schema draft version is supported by ajv?](https://community.postman.com/t/which-json-schema-draft-version-is-supported-by-ajv/24958)

<div class="topic-metadata">

**Author:** [@aakash.gupta](https://community.postman.com/u/aakash.gupta)\
**Replies:** 0\
**Last updated:** [June 17, 2021, 7:56am UTC](https://community.postman.com/t/which-json-schema-draft-version-is-supported-by-ajv/24958 "2021-06-17T07:56:26Z")

</div>

I was going through ajv documentation There it was mentioned that Draft-04 is not included in Ajv v7, My query: Which version of ajv does Postman come with?

---

## [Issue with xml validation](https://community.postman.com/t/issue-with-xml-validation/24447)

<div class="topic-metadata">

**Author:** [@Mariamobica](https://community.postman.com/u/Mariamobica)\
**Replies:** 2\
**Last updated:** [June 4, 2021, 7:06am UTC](https://community.postman.com/t/issue-with-xml-validation/24447 "2021-06-04T07:06:49Z")

</div>

Hi, I would like to validate the values of XML parameters but I faced some issues. \<VHBTV\_CD:MediaAttributes\> \<VHBTV\_CD:MediaTrack\> \<VHBTV\_CD:SubTitle impairedHearing="tru…

---

## [What is happening during API validation?](https://community.postman.com/t/what-is-happening-during-api-validation/18967)

<div class="topic-metadata">

**Author:** [@flo](https://community.postman.com/u/flo)\
**Replies:** 0\
**Last updated:** [January 8, 2021, 2:38pm UTC](https://community.postman.com/t/what-is-happening-during-api-validation/18967 "2021-01-08T14:38:58Z")

</div>

Hi, I generated an API with one request path from an OAS and generated a Collection as a Test Suite from that API. Can I somehow see what exactly happens when I ‘Click to validate’ in the ‘Test’-tab of the API? In the…

---

## [Schema Validation not working when Path Templating and Fixed Paths overlap](https://community.postman.com/t/schema-validation-not-working-when-path-templating-and-fixed-paths-overlap/18725)

<div class="topic-metadata">

**Author:** [@darren.capner](https://community.postman.com/u/darren.capner)\
**Replies:** 0\
**Last updated:** [December 28, 2020, 4:22pm UTC](https://community.postman.com/t/schema-validation-not-working-when-path-templating-and-fixed-paths-overlap/18725 "2020-12-28T16:22:48Z")

</div>

Hi, I am trying to define an Openapi spec where I have the following paths: /{id} /lookups When I perform a validation on the collection within the API Designer, I receive the following conflict. The API Designer…

---

## [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": {…
