I have a model schema and i want to read those and validate in postman test script. could you please share your suggestions ?
Asked
Active
Viewed 111 times
0

Danny Dainton
- 23,069
- 6
- 67
- 80

Ranjeet
- 49
- 8
-
What's does the response body look like? What schema do you have so far? Have you looked at using `pm.response.to.have.jsonSchema(your schema)` in the test? – Danny Dainton Jun 29 '20 at 06:10
-
And why is this related to node.js ? – Abhishek Ranjan Jun 29 '20 at 06:16
-
1@AbhishekRanjan i will take care of tags from next time. Thanks :) – Ranjeet Jun 29 '20 at 09:08
-
@DannyDainton Is there any way to read model schema instead of putting schema into test section of postman? – Ranjeet Jun 29 '20 at 09:10
-
Could be read from a variable value or one of the test script at Request/Folder/Collection level but that's it in the UI - If you're using Newman, it _could_ be read from an external file. – Danny Dainton Jun 29 '20 at 10:59