dareid/chakram

Asserting API with dot (.) on field name

Opened this issue · 0 comments

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