Replies: 1 comment 2 replies
-
In general, const { expect } = require('pactum');
expect({ json: { a: 1, b: "two" } }).to.have.jsonSchema({
type: "object",
properties: {
a: {
type: "string",
},
b: {
type: "string",
},
},
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
jsonSchema is not working as expected:
This is giving following error:
if I delete
type: "object"
, it is working, but it is not checking thetype
correctly for properties:Beta Was this translation helpful? Give feedback.
All reactions