I'm using the built-in TinyValidator schema validation logic for Postman. Let's say that my API returns a list of objects:
const schema = {
type: 'object',
properties: {
id: { type: 'number' },
name: { type: 'string' }
},
required: ['id', 'name']
}
- How can I require that each
idbe unique in the returned JSON array? - How would I achieve the same thing in what I gather is the more modern Postman validation framework?