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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 89

  • @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.

  • @Aryan_Boy_Programmer
    @Aryan_Boy_Programmer 9 หลายเดือนก่อน +1

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

  • @india23061974
    @india23061974 3 ปีที่แล้ว

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

  • @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 {} ,

  • @constantinyakun3777
    @constantinyakun3777 3 ปีที่แล้ว

    Great Simple explanation json schema validation

  • @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?

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 7 หลายเดือนก่อน

    Thanks for your work! Well done!

  • @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.

  • @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

  • @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

  • @technicalmaster623
    @technicalmaster623 ปีที่แล้ว +1

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

  • @ankitnegi163
    @ankitnegi163 2 ปีที่แล้ว

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

  • @rajashreekale3894
    @rajashreekale3894 2 ปีที่แล้ว

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

  • @rajeshraju2674
    @rajeshraju2674 4 ปีที่แล้ว +3

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

  • @mangeshpardeshi9510
    @mangeshpardeshi9510 3 ปีที่แล้ว

    Must Elaborate more regarding schema

  • @MadirajuKChaitanya
    @MadirajuKChaitanya 3 ปีที่แล้ว

    Nice Video. Thanks for sharing.

  • @lemidori8487
    @lemidori8487 5 ปีที่แล้ว +1

    it is useful to me. Thanks lots

    • @TheTestingAcademy
      @TheTestingAcademy  5 ปีที่แล้ว

      Glad you liked it, Do Share with your Friends

  • @Manoj-gr7kn
    @Manoj-gr7kn 11 หลายเดือนก่อน

    How will we know at what line it is failing ?

  • @mzamomahaeng268
    @mzamomahaeng268 ปีที่แล้ว

    Thank you for this

  • @snehapatil5473
    @snehapatil5473 3 ปีที่แล้ว

    Can you provide the test script which you written

  • @vinayrathod9972
    @vinayrathod9972 5 ปีที่แล้ว +1

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

  • @yaminigrandhi2776
    @yaminigrandhi2776 3 ปีที่แล้ว

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

  • @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

  • @rashmiambedkar5143
    @rashmiambedkar5143 5 ปีที่แล้ว

    Thanks for insightful video session. Kudos.

  • @marketguru4197
    @marketguru4197 4 ปีที่แล้ว +1

    can you teach request chaning in api .

  • @meghasandesam
    @meghasandesam 4 ปีที่แล้ว

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

  • @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!

  • @saivamshikrishnapeddammala8678
    @saivamshikrishnapeddammala8678 2 ปีที่แล้ว

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

  • @ZeryuGames
    @ZeryuGames 4 ปีที่แล้ว

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

  • @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.

  • @s1h2r345
    @s1h2r345 2 ปีที่แล้ว

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

  • @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)

    • @rajashreekale3894
      @rajashreekale3894 2 ปีที่แล้ว

      I have similar query. Did you get any solution?

  • @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

  • @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

  • @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

  • @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"));

  • @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

  • @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.

  • @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

  • @sumithawreddy5838
    @sumithawreddy5838 3 ปีที่แล้ว

    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"
    }

  • @shahzeb3445
    @shahzeb3445 4 ปีที่แล้ว

    very usefull video !

    • @TheTestingAcademy
      @TheTestingAcademy  4 ปีที่แล้ว

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

  • @ajaykawde1735
    @ajaykawde1735 2 ปีที่แล้ว

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

    • @TheTestingAcademy
      @TheTestingAcademy  2 ปีที่แล้ว

      Same process, just find the correct Libraries

  • @michaeljoshua630
    @michaeljoshua630 4 ปีที่แล้ว +1

    Thank you brother

  • @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;
      });

  • @freelanceritsolutions6607
    @freelanceritsolutions6607 2 ปีที่แล้ว

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

  • @lizalinnayak1029
    @lizalinnayak1029 4 ปีที่แล้ว

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

  • @SunilKumar-hl8oh
    @SunilKumar-hl8oh 5 ปีที่แล้ว

    Font is very small ,unable to follow

  • @yusufolaide2718
    @yusufolaide2718 4 ปีที่แล้ว

    My test is failing

    • @TheTestingAcademy
      @TheTestingAcademy  4 ปีที่แล้ว

      Send me the code at contact@thetestingacademy.com

  • @aigulidrisova1126
    @aigulidrisova1126 ปีที่แล้ว

    👍🦸