From 51c3b93c5d1d80c0fa18ad4165b72b04c6092407 Mon Sep 17 00:00:00 2001 From: Tobias Ottenweller Date: Sun, 20 Jul 2025 11:12:27 +0200 Subject: [PATCH] feat: more verbose decimal parsing --- packages/tonik_parse/lib/src/model_importer.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/tonik_parse/lib/src/model_importer.dart b/packages/tonik_parse/lib/src/model_importer.dart index 12bb191..5ec0bd0 100644 --- a/packages/tonik_parse/lib/src/model_importer.dart +++ b/packages/tonik_parse/lib/src/model_importer.dart @@ -119,7 +119,13 @@ class ModelImporter { context: context, ), 'string' when schema.format == 'date' => DateModel(context: context), - 'string' when schema.format == 'decimal' || schema.format == 'currency' => + 'string' + when [ + 'decimal', + 'currency', + 'money', + 'number', + ].contains(schema.format) => DecimalModel(context: context), 'string' when schema.enumerated != null => _parseEnum( name,