public function getFormMapping() { return array('items' => Primitive::formsList('items')->of('DirectoryItem')->required(), 'textField' => Primitive::string('textField')->setMax(256)->optional(), 'fileName' => Primitive::file('contents')->required(), 'inner' => Primitive::form('inner')->of('DirectoryItem')->optional()); }