Passthru JSON objects
This commit is contained in:
parent
0716c430d6
commit
62038bd2a9
|
@ -445,8 +445,6 @@ class TypeMapper
|
||||||
|
|
||||||
private static function getHashOptionsImplementation(array $object): Type
|
private static function getHashOptionsImplementation(array $object): Type
|
||||||
{
|
{
|
||||||
\var_dump($object);
|
|
||||||
|
|
||||||
switch ($object['type']) {
|
switch ($object['type']) {
|
||||||
case 'argon2':
|
case 'argon2':
|
||||||
return static::fromResponseModel('AlgoArgon2');
|
return static::fromResponseModel('AlgoArgon2');
|
||||||
|
|
|
@ -21,12 +21,12 @@ class Json extends ScalarType
|
||||||
|
|
||||||
public function serialize($value)
|
public function serialize($value)
|
||||||
{
|
{
|
||||||
return \json_encode($value);
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function parseValue($value)
|
public function parseValue($value)
|
||||||
{
|
{
|
||||||
return \json_decode($value, associative: true);
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function parseLiteral(Node $valueNode, ?array $variables = null)
|
public function parseLiteral(Node $valueNode, ?array $variables = null)
|
||||||
|
|
Loading…
Reference in a new issue