While that does look like an interesting project, it does not seem the ideal solution for the use case to for example combine the api validation with other tests in the postman collection.
Ideally, I could write the following test:
pm.test(“Validate schema”, () => {
pm.response.to.have.jsonSchema(schema);
});
Where ‘schema’ is referencing an openapi spec object instead of me having to define/copy the spec into a postman variable. Furthermore, a similar test could occur for the request body of the test.
1 Like