mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Passthru JSON objects
This commit is contained in:
@@ -445,8 +445,6 @@ class TypeMapper
|
||||
|
||||
private static function getHashOptionsImplementation(array $object): Type
|
||||
{
|
||||
\var_dump($object);
|
||||
|
||||
switch ($object['type']) {
|
||||
case 'argon2':
|
||||
return static::fromResponseModel('AlgoArgon2');
|
||||
|
||||
@@ -21,12 +21,12 @@ class Json extends ScalarType
|
||||
|
||||
public function serialize($value)
|
||||
{
|
||||
return \json_encode($value);
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function parseValue($value)
|
||||
{
|
||||
return \json_decode($value, associative: true);
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function parseLiteral(Node $valueNode, ?array $variables = null)
|
||||
|
||||
Reference in New Issue
Block a user