W moim Restler klasy API Mam obiekt zdefiniowany jak tak (z dużą ilością innych params)Restler nie akceptując logiczna fałsz
class PatchTaskObj extends TaskObj {
/**
* @var bool|null Whether or not this Task should be pinned to the top of the list {@required false}
*/
public $pinned = null;
}
I wtedy próbować używać go w moim metody patch:
/**
* Updates an existing Task record.
*
* @param int $id The SQL ident of the task you wish to update. {@min 1} {@from path}
* @param PatchTaskObj $info The properties of the Task to update.
*
* @throws RestException 412 Thrown if at least one update isn't passed in.
*
* @status 204
*/
function patch($id, PatchTaskObj $info)
gdybym przechodzą w true
dla właściwości pinned
to działa dobrze, ale jeśli mijam false
potem dostaję 400 z Restler z komunikatem:
Bad Request: Nieprawidłowa wartość określona dla
info[pinned]