Sometime, the json response has some properties that have "dynamic data", like id, createdAt below:
$this->assertJsonContains(
[
"data" => [
"id" => "@integer",
"type" => "resource-category",
"attributes" => [
"name" => "Office",
"slug" => "office",
"createdAt => "@string"
]
]
]
);
So I would like to expect these field same the type like integer, string,... How could I do that?