# \#schemavalidation

**URL:** https://community.postman.com/tag/schemavalidation/449.md

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

---

## [Problem with request header in build-in validation](https://community.postman.com/t/problem-with-request-header-in-build-in-validation/79128)

<div class="topic-metadata">

**Author:** [@matustb](https://community.postman.com/u/matustb)\
**Replies:** 0\
**Last updated:** [April 24, 2025, 6:19am UTC](https://community.postman.com/t/problem-with-request-header-in-build-in-validation/79128 "2025-04-24T06:19:58Z")

</div>

Hello, I encountered issue in request validation against the OpenAPI specification in the APIs section. In the APIs section, I have created an API where I have an OpenAPI specification and a collection. After sending …

---

## [additionalProperties not working as expected with v11.3.2](https://community.postman.com/t/additionalproperties-not-working-as-expected-with-v11-3-2/64146)

<div class="topic-metadata">

**Author:** [@sunkad](https://community.postman.com/u/sunkad)\
**Replies:** 0\
**Last updated:** [July 16, 2024, 12:06pm UTC](https://community.postman.com/t/additionalproperties-not-working-as-expected-with-v11-3-2/64146 "2024-07-16T12:06:04Z")

</div>

Sometime in May 2024, additionalProperties false was working as expected, but now with v11.3.2 it does not. Is the property “required” necessary in the schema for this to work? ... lastModificationDate: { …

---

## [Invalid response schema validation - missing details](https://community.postman.com/t/invalid-response-schema-validation-missing-details/62029)

<div class="topic-metadata">

**Author:** [@tantchen81](https://community.postman.com/u/tantchen81)\
**Replies:** 5\
**Last updated:** [June 16, 2024, 3:59pm UTC](https://community.postman.com/t/invalid-response-schema-validation-missing-details/62029 "2024-06-16T15:59:44Z")

</div>

I have imported a swagger schema with which I want to validate my requests. Everything works very well. However, I am missing detailed information when the validation fails with The response body didn’t match the specifi…

---

## [Validate JSON Schema using Data File in Collection Runner](https://community.postman.com/t/validate-json-schema-using-data-file-in-collection-runner/49237)

<div class="topic-metadata">

**Author:** [@maclazaro](https://community.postman.com/u/maclazaro)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 10:07am UTC](https://community.postman.com/t/validate-json-schema-using-data-file-in-collection-runner/49237 "2023-07-05T10:07:37Z")

</div>

I have a big/complex Swagger file which has nested schemas used by my endpoints. I’d like to reference these schemas from a data file using the Collection Runner instead of declaring the schemas per endpoint for maintai…

---

## [Negative number validation in json schema](https://community.postman.com/t/negative-number-validation-in-json-schema/56321)

<div class="topic-metadata">

**Author:** [@shalaka-m](https://community.postman.com/u/shalaka-m)\
**Replies:** 3\
**Last updated:** [January 9, 2024, 3:06pm UTC](https://community.postman.com/t/negative-number-validation-in-json-schema/56321 "2024-01-09T15:06:26Z")

</div>

below is my json schema : { "BRK.A": \[ { "time": "20231204T0930", "opn": -102.49, "hi": 1362.995704, "lo": 54.1, "cl": 1362.995704, "vl…

---

## [Tv4.validade is not a function](https://community.postman.com/t/tv4-validade-is-not-a-function/56061)

<div class="topic-metadata">

**Author:** [@spacecraft-astrono12](https://community.postman.com/u/spacecraft-astrono12)\
**Replies:** 1\
**Last updated:** [December 30, 2023, 10:57am UTC](https://community.postman.com/t/tv4-validade-is-not-a-function/56061 "2023-12-30T10:57:54Z")

</div>

I’m trying to validate this schema and don’t understand why it failed. var schema = { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "nome": { "type": "string" …

---

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

---

## [Validate A Schema With Dynamic Keys](https://community.postman.com/t/validate-a-schema-with-dynamic-keys/53190)

<div class="topic-metadata">

**Author:** [@greenridinghood](https://community.postman.com/u/greenridinghood)\
**Replies:** 5\
**Last updated:** [October 17, 2023, 3:39pm UTC](https://community.postman.com/t/validate-a-schema-with-dynamic-keys/53190 "2023-10-17T15:39:03Z")

</div>

Hi Is that any way to validate schema if my key dynamic to "container": { "type": "object", "properties": { "image": { "type": "string" }, "environment\_variables": { …

---

## [Schema Validation failure](https://community.postman.com/t/schema-validation-failure/17018)

<div class="topic-metadata">

**Author:** [@Anumundada](https://community.postman.com/u/Anumundada)\
**Replies:** 3\
**Last updated:** [June 5, 2023, 10:30am UTC](https://community.postman.com/t/schema-validation-failure/17018 "2023-06-05T10:30:32Z")

</div>

I am getting Assertion error when I run the tv4 or Ajv validators — AssertionError: \[ {“keyword”:“type”,“dataPath”:".SystemVariables\[18\].Value",“schemaPath”:"#/properties/SystemVariables/items/anyOf/0/properties/Value/…

---

## [How to automatically validate response json schema based on API definition(yaml)](https://community.postman.com/t/how-to-automatically-validate-response-json-schema-based-on-api-definition-yaml/44548)

<div class="topic-metadata">

**Author:** [@v-andre](https://community.postman.com/u/v-andre)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 2:06pm UTC](https://community.postman.com/t/how-to-automatically-validate-response-json-schema-based-on-api-definition-yaml/44548 "2023-02-28T14:06:40Z")

</div>

My question: How can I automate schema validation at a higher folder level to compare with api YAML definition from workspace. I am a big fan of the DRY principle, as such, I am putting my tests at higher folder levels…

---

## [How to validate attributes in response](https://community.postman.com/t/how-to-validate-attributes-in-response/44421)

<div class="topic-metadata">

**Author:** [@vbadgujarcsod](https://community.postman.com/u/vbadgujarcsod)\
**Replies:** 1\
**Last updated:** [February 24, 2023, 11:22am UTC](https://community.postman.com/t/how-to-validate-attributes-in-response/44421 "2023-02-24T11:22:21Z")

</div>

How to validate attributes in response. Refer Screenshot I would like to validate all attributes/keys present in training\_details array like start date, end date etc \[Note: I dont want to validate value of attributes…

---

## [Schema validation involving "dependentRequired" statements not working as expected](https://community.postman.com/t/schema-validation-involving-dependentrequired-statements-not-working-as-expected/39653)

<div class="topic-metadata">

**Author:** [@haroon.malik](https://community.postman.com/u/haroon.malik)\
**Replies:** 0\
**Last updated:** [September 30, 2022, 2:04pm UTC](https://community.postman.com/t/schema-validation-involving-dependentrequired-statements-not-working-as-expected/39653 "2022-09-30T14:04:56Z")

</div>

I have the following schema which makes use of the dependentRequired statement: const schema2 = { "type": "object", "properties": { "name": { "type": "string" }, "credit\_card": { "type": "number…

---

## [Creating JSON Schema from Swagger Document](https://community.postman.com/t/creating-json-schema-from-swagger-document/39405)

<div class="topic-metadata">

**Author:** [@Veenadevi](https://community.postman.com/u/Veenadevi)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 8:11am UTC](https://community.postman.com/t/creating-json-schema-from-swagger-document/39405 "2022-09-23T08:11:48Z")

</div>

I have my Swagger schema JSON, which I used to import and get my postman collection. Now for each Response JSON validation, I need a JSON Schema. Swagger has Examples, However, when there is a need to validate field val…

---

## [jsonSchema validation not matching API schema validation](https://community.postman.com/t/jsonschema-validation-not-matching-api-schema-validation/38442)

<div class="topic-metadata">

**Author:** [@alejandrosanchezfms](https://community.postman.com/u/alejandrosanchezfms)\
**Replies:** 0\
**Last updated:** [August 23, 2022, 7:03am UTC](https://community.postman.com/t/jsonschema-validation-not-matching-api-schema-validation/38442 "2022-08-23T07:03:24Z")

</div>

My question: I am having problems when I try to copy the schema from the API definition, to be validated in the postman test using JsonSchema. It seems that the API schema validation is on 3.0.x compared to JsonSchema …

---

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

---

## [What is the difference between these two schema validation tests?](https://community.postman.com/t/what-is-the-difference-between-these-two-schema-validation-tests/37877)

<div class="topic-metadata">

**Author:** [@w4dd325](https://community.postman.com/u/w4dd325)\
**Replies:** 0\
**Last updated:** [August 4, 2022, 10:15am UTC](https://community.postman.com/t/what-is-the-difference-between-these-two-schema-validation-tests/37877 "2022-08-04T10:15:27Z")

</div>

After reading about schema validation I came across both of the code snippets below. but I’m not sure I understand the difference between the two. Is anybody able to explain the difference or point me to relevant documen…

---

## [Load HL7 FHIR schema/profile extension and validate response in tests](https://community.postman.com/t/load-hl7-fhir-schema-profile-extension-and-validate-response-in-tests/37548)

<div class="topic-metadata">

**Author:** [@cbvw](https://community.postman.com/u/cbvw)\
**Replies:** 0\
**Last updated:** [July 25, 2022, 10:53pm UTC](https://community.postman.com/t/load-hl7-fhir-schema-profile-extension-and-validate-response-in-tests/37548 "2022-07-25T22:53:22Z")

</div>

My question: I am very new to Postman and am trying to figure out if I can use the tests as a “one-stop” testing source, both checking for correct responses in tests and conformance to structures. We have set up a FHIR…

---

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

---

## [Using Postman as an automated API best practices validator and governance?](https://community.postman.com/t/using-postman-as-an-automated-api-best-practices-validator-and-governance/28460)

<div class="topic-metadata">

**Author:** [@spacecraft-meteorol1](https://community.postman.com/u/spacecraft-meteorol1)\
**Replies:** 0\
**Last updated:** [October 5, 2021, 8:37pm UTC](https://community.postman.com/t/using-postman-as-an-automated-api-best-practices-validator-and-governance/28460 "2021-10-05T20:37:20Z")

</div>

Hello people, We have seen the demo (video), but I still have some questions about Postman that other users might have the answer for: Does Postman have any data catalog built-in? The goal here is to detect new fields…

---

## [Multiple collections linked to API](https://community.postman.com/t/multiple-collections-linked-to-api/27184)

<div class="topic-metadata">

**Author:** [@cmnazario](https://community.postman.com/u/cmnazario)\
**Replies:** 0\
**Last updated:** [August 26, 2021, 6:48pm UTC](https://community.postman.com/t/multiple-collections-linked-to-api/27184 "2021-08-26T18:48:56Z")

</div>

Hey guys, I have a question, can you help? I imported a swagger and 2 collections, one for documentation and the other for contract testing. In the contract test collection I changed the descriptions that were imported…

---

## [Postman test script for json schema validation failing for some custom format types in json schema](https://community.postman.com/t/postman-test-script-for-json-schema-validation-failing-for-some-custom-format-types-in-json-schema/27109)

<div class="topic-metadata">

**Author:** [@Ra\_Na](https://community.postman.com/u/Ra_Na)\
**Replies:** 0\
**Last updated:** [August 25, 2021, 6:14am UTC](https://community.postman.com/t/postman-test-script-for-json-schema-validation-failing-for-some-custom-format-types-in-json-schema/27109 "2021-08-25T06:14:26Z")

</div>

Postman Schema validation using the following method is failing with validation error in tests. The schema is part of pre-request script which saves the schema object as a collection variable. pm.test("Validate response…

---

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

---

## [Schema validation](https://community.postman.com/t/schema-validation/24729)

<div class="topic-metadata">

**Author:** [@navigation-physicist](https://community.postman.com/u/navigation-physicist)\
**Replies:** 0\
**Last updated:** [June 9, 2021, 8:30pm UTC](https://community.postman.com/t/schema-validation/24729 "2021-06-09T20:30:41Z")

</div>

pm.response.to.have.jsonSchema is not working!! I am using a http://json-schema.org/draft-07/schema and when changing anything in the schema the answer is always “PASS” Could it be because my response is a huge json?

---

## [Expect the value of a property to be an array with content of type string or an empty array](https://community.postman.com/t/expect-the-value-of-a-property-to-be-an-array-with-content-of-type-string-or-an-empty-array/23723)

<div class="topic-metadata">

**Author:** [@bezzea](https://community.postman.com/u/bezzea)\
**Replies:** 1\
**Last updated:** [May 13, 2021, 9:52pm UTC](https://community.postman.com/t/expect-the-value-of-a-property-to-be-an-array-with-content-of-type-string-or-an-empty-array/23723 "2021-05-13T21:52:28Z")

</div>

I would like to know how to structure the following response body into a jsonschema. { "iAmThePropOfAnObject":\[\] } { "iAmThePropOfAnObject":\[ "this would be string in some cases", "this woul…

---

## [Search for minimum number of occurrences of a substring](https://community.postman.com/t/search-for-minimum-number-of-occurrences-of-a-substring/21511)

<div class="topic-metadata">

**Author:** [@bmasoumi](https://community.postman.com/u/bmasoumi)\
**Replies:** 1\
**Last updated:** [March 17, 2021, 11:59pm UTC](https://community.postman.com/t/search-for-minimum-number-of-occurrences-of-a-substring/21511 "2021-03-17T23:59:58Z")

</div>

Hello, The following is the Body of the response: { "downloadTime": "2021:03:17T17:52:21Z", "downloadTimeStamp": 1616003541, "genome": "hg38", "chrom": "chrX", "start": 51657026, "end": 51658026…

---

## [Issue in Validating schema in postman with multiple same arrays](https://community.postman.com/t/issue-in-validating-schema-in-postman-with-multiple-same-arrays/21116)

<div class="topic-metadata">

**Author:** [@swatimaan](https://community.postman.com/u/swatimaan)\
**Replies:** 7\
**Last updated:** [March 9, 2021, 7:31am UTC](https://community.postman.com/t/issue-in-validating-schema-in-postman-with-multiple-same-arrays/21116 "2021-03-09T07:31:10Z")

</div>

Hi all, I’m trying to validate the response JSON schema in postman which is failing. There are 2 problem areas which I suppose- In response, there is a dynamic value e.g., SKU319, which schema converter is considering …

---

## [There is -1 issue remaining / X issues found for API schema validation](https://community.postman.com/t/there-is-1-issue-remaining-x-issues-found-for-api-schema-validation/18943)

<div class="topic-metadata">

**Author:** [@juliehive](https://community.postman.com/u/juliehive)\
**Replies:** 7\
**Last updated:** [January 29, 2021, 4:18am UTC](https://community.postman.com/t/there-is-1-issue-remaining-x-issues-found-for-api-schema-validation/18943 "2021-01-29T04:18:20Z")

</div>

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic. Hi, I’m trying to create API documentation and valida…

---

## [How to print the schema validation in console?](https://community.postman.com/t/how-to-print-the-schema-validation-in-console/19415)

<div class="topic-metadata">

**Author:** [@tarekalba](https://community.postman.com/u/tarekalba)\
**Replies:** 2\
**Last updated:** [January 23, 2021, 1:45am UTC](https://community.postman.com/t/how-to-print-the-schema-validation-in-console/19415 "2021-01-23T01:45:18Z")

</div>

Hi, I am trying to print the results of pm.test, but so far failed to do so. e.g. I want to print this in the console: pm.test(“Validation schema”, () =\> {pm.response.to.have.jsonSchema(schema); It is a schema validat…

---

## [Schema validation for request chaining with router](https://community.postman.com/t/schema-validation-for-request-chaining-with-router/18152)

<div class="topic-metadata">

**Author:** [@juliehive](https://community.postman.com/u/juliehive)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 9:44pm UTC](https://community.postman.com/t/schema-validation-for-request-chaining-with-router/18152 "2020-12-17T21:44:15Z")

</div>

Hi, How one would be able to skip schema validation for just one request? Use case: I’m using this method to run through a workflow, which uses a dummy request to start the chain, but I don’t want this dummy request to…

[Next page](https://community.postman.com/tag/schemavalidation/449.md?match_all_tags=true&page=1&tags%5B%5D=schemavalidation)
