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); } /**