I am having issues asserting APIs that return field names with dot(.)
Example API response object:
"foo.bar": { "unit": "m", "timestamp": 1520927864, "value": 123 }
Spec:
expect(response).to.have.schema("foo.bar", {"required": ["unit", "value"]});
Error:
Error: could not find path 'foo.bar' in object
I am having issues asserting APIs that return field names with dot(.)
Example API response object:
"foo.bar": { "unit": "m", "timestamp": 1520927864, "value": 123 }Spec:
expect(response).to.have.schema("foo.bar", {"required": ["unit", "value"]});Error:
Error: could not find path 'foo.bar' in object