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

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 90

  • @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 11 месяцев назад +1

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

    • @aryanboygajjar
      @aryanboygajjar 11 месяцев назад

      but please give in updated version!

  • @sarscov9854
    @sarscov9854 3 года назад +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?

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

  • @technicalmaster623
    @technicalmaster623 2 года назад +1

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

  • @india23061974
    @india23061974 3 года назад

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

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

  • @yaminigrandhi2776
    @yaminigrandhi2776 3 года назад

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

  • @Manoj-gr7kn
    @Manoj-gr7kn Год назад

    How will we know at what line it is failing ?

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

  • @costa-nukay
    @costa-nukay 3 года назад

    Great Simple explanation json schema validation

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

  • @snehapatil5473
    @snehapatil5473 3 года назад

    Can you provide the test script which you written

  • @JyotiSolanki-b3h
    @JyotiSolanki-b3h Год назад

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

  • @saivamshikrishnapeddammala8678
    @saivamshikrishnapeddammala8678 2 года назад

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

  • @svetlanamazhaykina6918
    @svetlanamazhaykina6918 9 месяцев назад

    Thanks for your work! Well done!

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

  • @s1h2r345
    @s1h2r345 2 года назад

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

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

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

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

  • @haneeshant2451
    @haneeshant2451 3 года назад

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

    • @TheTestingAcademy
      @TheTestingAcademy  3 года назад

      You need to check what all fields are dynamic, soke structure will be statix which you xan 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)

  • @vinayrathod9972
    @vinayrathod9972 5 лет назад +1

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

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

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

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

  • @rashmiambedkar5143
    @rashmiambedkar5143 5 лет назад

    Thanks for insightful video session. Kudos.

  • @MadirajuKChaitanya
    @MadirajuKChaitanya 4 года назад

    Nice Video. Thanks for sharing.

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

  • @rajeshraju2674
    @rajeshraju2674 4 года назад +3

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

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

  • @ajaykawde1735
    @ajaykawde1735 3 года назад

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

  • @ZeryuGames
    @ZeryuGames 4 года назад

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

  • @lemidori8487
    @lemidori8487 5 лет назад +1

    it is useful to me. Thanks lots

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

  • @mzamomahaeng268
    @mzamomahaeng268 Год назад

    Thank you for this

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

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

  • @mangeshpardeshi9510
    @mangeshpardeshi9510 3 года назад

    Must Elaborate more regarding schema

  • @shahzeb3445
    @shahzeb3445 4 года назад

    very usefull video !

    • @TheTestingAcademy
      @TheTestingAcademy  4 года назад

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

  • @michaeljoshua630
    @michaeljoshua630 4 года назад +1

    Thank you brother

  • @meghasandesam
    @meghasandesam 4 года назад

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

  • @lizalinnayak1029
    @lizalinnayak1029 4 года назад

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

  • @mdmamunurrashid6959
    @mdmamunurrashid6959 Месяц назад

    Make video with Apidog.

  • @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 5 лет назад

    My test is failing

  • @aigulidrisova1126
    @aigulidrisova1126 Год назад

    👍🦸