From cc3a4a1b22eb5d5cfc1325b74f99852988e95a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Ot=C3=A1hal?= Date: Thu, 10 Feb 2022 18:36:55 +0100 Subject: [PATCH] Fix number format registration (#156) --- src/Schema/TypeFormats/FormatsContainer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Schema/TypeFormats/FormatsContainer.php b/src/Schema/TypeFormats/FormatsContainer.php index 7cfd3140..e600f043 100644 --- a/src/Schema/TypeFormats/FormatsContainer.php +++ b/src/Schema/TypeFormats/FormatsContainer.php @@ -51,8 +51,8 @@ public static function addDefaults(): void self::registerFormat('string', 'ipv6', StringIP6::class); // number - self::registerFormat('string', 'float', NumberFloat::class); - self::registerFormat('string', 'double', NumberDouble::class); + self::registerFormat('number', 'float', NumberFloat::class); + self::registerFormat('number', 'double', NumberDouble::class); } /**