module-rest icon indicating copy to clipboard operation
module-rest copied to clipboard

How many build-in Filters do we have in jsonType feature

Open parisqian-misa opened this issue 9 years ago • 1 comments

In the document, I could not find a list of build-in filters. I saw url, date and empty if-blocks in the code, are they filters?

One more thing, do we have anything like json/object filter, just like what we have with array, to detect whether the value part is a valid json object?

parisqian-misa avatar Oct 10 '15 04:10 parisqian-misa

In the document, I could not find a list of build-in filters. I saw url, date and empty if-blocks in the code, are they filters

yes, and yes, they should be documented better. I will work on that

One more thing, do we have anything like json/object filter, just like what we have with array, to detect whether the value part is a valid json object?

right now array replaces the object (as in JSON objects are PHP associative arrays). However, this may (should) be improved

DavertMik avatar Oct 10 '15 23:10 DavertMik

Nowadays filters are documented here: https://codeception.com/docs/modules/REST#seeResponseMatchesJsonType

@Naktibalda @TavoNiievez I guess this issue can be closed?

W0rma avatar Jul 12 '24 11:07 W0rma