Skip to content

Commit

Permalink
Update JsonSchemaErrorNormalizer.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fre5h authored Feb 13, 2024
1 parent 5da307e commit d930529
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Serializer/Normalizer/JsonSchemaErrorNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ public function supportsNormalization(mixed $data, string $format = null, array
return $data instanceof JsonSchemaValidator;
}

/**
* {@inheritdoc}
*/
public function getSupportedTypes(?string $format): array
{
return [
JsonSchemaValidator::class => true,
];
}

/**
* @param JsonSchemaValidator|object $object
* @param string|null $format
Expand Down

0 comments on commit d930529

Please sign in to comment.