JSON Schema Validation: How to Validate JSON Schema with Postman?

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ •

  • @jakekuykendall2648
    @jakekuykendall2648 2 роки тому +2

    thanks! your video pointed me to where my json schema was messed up. dumb mistake on my part just needed to walk through it and your video highlighted right where my mistake was.

  • @aryanboygajjar
    @aryanboygajjar 10 місяців тому +1

    I liked the Video and Thanks for making this it helps me a lot!!

    • @aryanboygajjar
      @aryanboygajjar 10 місяців тому

      but please give in updated version!

  • @kirangaikwad4109
    @kirangaikwad4109 3 роки тому +2

    Awesome information but more focus on zooming part in next video thanks :)
    Also it will be great if you show same validation in rest assured in another video.

  • @costa-nukay
    @costa-nukay 3 роки тому

    Great Simple explanation json schema validation

  • @india23061974
    @india23061974 3 роки тому

    Кто от Ксендзова? Привеет)) Автору мерси за видео, частично помогло

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 9 місяців тому

    Thanks for your work! Well done!

  • @sarscov9854
    @sarscov9854 2 роки тому +1

    How do you validate the actual schema though? Like lets say the developer set a field as number when it should be string and no one caught it. How can QA catch it?

  • @JyotiSolanki-b3h
    @JyotiSolanki-b3h Рік тому

    Thanks for easy explanation, it really helped. I tired and getting error {} ,

  • @MadirajuKChaitanya
    @MadirajuKChaitanya 3 роки тому

    Nice Video. Thanks for sharing.

  • @naveen051987
    @naveen051987 Рік тому

    do we always need to hit our service via postman to validate it against json schema? for that our service should be working end to end always. or we can just use json request response and can validate it against json schema with out hitting our service?

  • @vinayrathod9972
    @vinayrathod9972 5 років тому +1

    Really awesome video. Thanks dude for sharing this info :)

  • @lemidori8487
    @lemidori8487 5 років тому +1

    it is useful to me. Thanks lots

  • @rashmiambedkar5143
    @rashmiambedkar5143 5 років тому

    Thanks for insightful video session. Kudos.

  • @ZeryuGames
    @ZeryuGames 4 роки тому

    Thanks for this. You are so kind sharing this content!

  • @satinderpal9393
    @satinderpal9393 2 роки тому

    Hi, the schema of my response body is dynamic i.e... Sometimes response body is
    {"address": xyz street, "zip code": 12345, "city": ABCD}.
    Sometimes it's
    {"address": xyz street, "zip code": 12345}.
    How can i code"required" in the Tests in such a scenario. Thanks

  • @technicalmaster623
    @technicalmaster623 2 роки тому +1

    There was an error in evaluating the test script: SyntaxError: Unexpected token ':' schma valiation in postman

  • @rajashreekale3894
    @rajashreekale3894 3 роки тому

    Schema is hardcoded in test script. Can we save the schema in external Json file and read that file in test scripts?

  • @shahzeb3445
    @shahzeb3445 4 роки тому

    very usefull video !

    • @TheTestingAcademy
      @TheTestingAcademy  4 роки тому

      Thanks a lot for the feedback, shot us email at contact@thetestingacademy.com

  • @mzamomahaeng268
    @mzamomahaeng268 Рік тому

    Thank you for this

  • @mangeshpardeshi9510
    @mangeshpardeshi9510 3 роки тому

    Must Elaborate more regarding schema

  • @jasminlaroche2145
    @jasminlaroche2145 3 роки тому

    There is error in my generated JSON schema that I generated from the tool. Could you please help me out ? Many thanks!

  • @sumithawreddy5838
    @sumithawreddy5838 4 роки тому

    Hi I have one sample json file which is around 400 line using java program developed avro schema and registered it in our company source it generated endpoint url..using that validatig in postman with the sample json data file I am getting following error can any one please help me out this is the first time I am working on this schema.. I need help ASAP
    "error_code": 42203,
    "message": "Conversion of JSON to Avro failed: Failed to convert JSON to Avro: Expected field name not found: CostCentreReplicationBulkRequest"
    }

  • @saivamshikrishnapeddammala8678
    @saivamshikrishnapeddammala8678 2 роки тому

    Hi ,
    How to send Json data for post request with Invalid Escape character (\) in string like Ptl
    ao.s in postaman

  • @Crick_funnyshorts
    @Crick_funnyshorts 4 роки тому

    Hi i have a issue, not able to validate with hyphen eg - "maxmemory-reserved": "200", i m etting error as reserved not defined

    • @Crick_funnyshorts
      @Crick_funnyshorts 4 роки тому

      pm.expect(jsonData.value[indexProject].properties.redisConfiguration.maxmemory-reserved).equal(pm.environment.get("xxxx"));

  • @yaminigrandhi2776
    @yaminigrandhi2776 3 роки тому

    How to validate no of website links sending as a file in json schema and validate??

  • @priyadgp
    @priyadgp 3 роки тому

    Hi, please let me know if we can form the json path by referring values in data file .. for example:
    var jsonData = pm.response.json();
    pm.test("Enterprise of servers is an object", () => {
    pm.expect(jsonData.Result.enterprises.siebel).to.be.an("object");
    });
    Here i want the value siebel to come from datafile in json format (added to collection runner)

  • @vipulranjankhare6570
    @vipulranjankhare6570 4 роки тому

    I am able to implement what you have explained in the video............but this logic is not checking for case sensitivity......for eg in the schema if I am defining a field in camel casing but the response which is coming there the field is in lower caps then it should error out.........but it is not erroring out.......can you please help me here in implementing case sensitivity?

    • @TheTestingAcademy
      @TheTestingAcademy  4 роки тому

      Email me at contact@thetestingacademy.com

    • @vipulranjankhare6570
      @vipulranjankhare6570 4 роки тому

      The Testing Academy I have already emailed yesterday......please take a look

    • @vipulranjankhare6570
      @vipulranjankhare6570 4 роки тому

      @@TheTestingAcademy I have dropped 2 mails to you and also listed out the issue here but still no reply from your end.........please take a look

  • @rajeshraju2674
    @rajeshraju2674 4 роки тому +3

    It'd be good if you "Zoomin" on important areas , the screen is too tiny even for my laptop.

  • @ankitnegi163
    @ankitnegi163 2 роки тому

    Sir how can we get the body from the payload please explain that in one video.

  • @KamaSingh7327
    @KamaSingh7327 4 роки тому +1

    can you teach request chaning in api .

  • @sanjivlalit8869
    @sanjivlalit8869 4 роки тому +1

    Content is good, it can be better if the font is large, specially the scripting area, it's hardly readable.

    • @TheTestingAcademy
      @TheTestingAcademy  4 роки тому

      Releasing a new amd more advance video on jaon schema, thanks for the awesome feedback

  • @PraveenKumar-rj8uy
    @PraveenKumar-rj8uy 5 років тому

    Is there any way to see what caused the failure . Like for example , in failure I want a message to be displayed that the failure is due to 'id' expected string , actual data type is number

    • @TheTestingAcademy
      @TheTestingAcademy  5 років тому

      As far i remember library in postman like tv4 validator gives you these kind of errors, or you can write some custom message after assertion that will also serve the purpose

  • @s1h2r345
    @s1h2r345 2 роки тому

    How to validate request/response schema validation based on Swagger/Open API

  • @snehapatil5473
    @snehapatil5473 3 роки тому

    Can you provide the test script which you written

  • @meghasandesam
    @meghasandesam 4 роки тому

    Nice tutorial...please make font size big..

  • @rohitsethi2085
    @rohitsethi2085 3 роки тому

    Hi, I have 790 lines of JSON Schema and I am getting an error in the POSTMAN console as "Invalid Schema: Invalid type: null (expected string)"
    It is very difficult to find out for which line the error is coming, so Is there any way to get it?

    • @TheTestingAcademy
      @TheTestingAcademy  3 роки тому

      There are two json schema validators ajv and tiny validators, try ajv

    • @rohitsethi2085
      @rohitsethi2085 3 роки тому

      @@TheTestingAcademy Thanks Its is working but still, it is not showing the line number.

  • @michaeljoshua630
    @michaeljoshua630 4 роки тому +1

    Thank you brother

  • @SocialMedia-io1tz
    @SocialMedia-io1tz 4 роки тому

    Hi, i want to validate json via logic apps what schema to pass, lets say i dont want to accept any schema that miss one of the field like name,
    How to achieve this

  • @Manoj-gr7kn
    @Manoj-gr7kn Рік тому

    How will we know at what line it is failing ?

  • @vijaykumar-ut1ze
    @vijaykumar-ut1ze 4 роки тому

    Can you make video for schema validations for input request

    • @eco89
      @eco89 3 роки тому

      Use same concept in pre-request and then if validation is pass then save it to env variable and import to postman Body.

  • @rashmiambedkar5143
    @rashmiambedkar5143 5 років тому

    It's really helpful. Can u a video when collection is checkout from git . Basically how to use git repo with postman collection

  • @michaeldefrank8413
    @michaeldefrank8413 5 років тому

    I'm unable to cause my test to fail. I've tried changing the property name in the schema and also purposely changing the call so that it will not return 200. In both cases, the test still passes. Any suggestions?

    • @TheTestingAcademy
      @TheTestingAcademy  5 років тому

      Can you contact me on Facebook, I will help m.me/scrolltest

  • @haneeshant2451
    @haneeshant2451 2 роки тому

    How can I do schema validation when response body is dynamic? Please help

    • @TheTestingAcademy
      @TheTestingAcademy  2 роки тому

      You need to check what all fields are dynamic, soke structure will be statix which you xan Validate

  • @mdmamunurrashid6959
    @mdmamunurrashid6959 Місяць тому

    Make video with Apidog.

  • @venkateshkumar1840
    @venkateshkumar1840 4 роки тому

    Json schema validation UI option selection got changed ,I am trying my end Tiny validation

    • @TheTestingAcademy
      @TheTestingAcademy  4 роки тому

      Its Same
      var schema = {
      "items": {
      "type": "boolean"
      }
      };
      var data1 = [true, false];
      var data2 = [true, 123];
      pm.test('Schema is valid', function() {
      pm.expect(tv4.validate(data1, schema)).to.be.true;
      pm.expect(tv4.validate(data2, schema)).to.be.true;
      });

  • @ajaykawde1735
    @ajaykawde1735 2 роки тому

    I want to automate this process in java, can anyone suggest?

  • @lizalinnayak1029
    @lizalinnayak1029 4 роки тому

    Hi, My test is getting failed, Could you please help me out..

  • @freelanceritsolutions6607
    @freelanceritsolutions6607 2 роки тому

    720 p par bhi videos mein clarity nahi hai....

  • @SunilKumar-hl8oh
    @SunilKumar-hl8oh 5 років тому

    Font is very small ,unable to follow

  • @yusufolaide2718
    @yusufolaide2718 4 роки тому

    My test is failing

  • @aigulidrisova1126
    @aigulidrisova1126 Рік тому

    👍🦸