diff --git a/assets/schema.json b/assets/game_list-schema.json similarity index 100% rename from assets/schema.json rename to assets/game_list-schema.json diff --git a/lib/services/local_storage_service.dart b/lib/services/local_storage_service.dart index 338a0c3..e145571 100644 --- a/lib/services/local_storage_service.dart +++ b/lib/services/local_storage_service.dart @@ -196,7 +196,8 @@ class LocalStorageService { /// Validates the JSON data against the schema. static Future validateJsonSchema(String jsonString) async { try { - final schemaString = await rootBundle.loadString('assets/schema.json'); + final schemaString = + await rootBundle.loadString('assets/game_list-schema.json'); final schema = JsonSchema.create(json.decode(schemaString)); final jsonData = json.decode(jsonString); final result = schema.validate(jsonData); diff --git a/pubspec.yaml b/pubspec.yaml index b786c31..144adf4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.3.7+325 +version: 0.3.7+326 environment: sdk: ^3.5.4 @@ -39,4 +39,4 @@ flutter: uses-material-design: false assets: - assets/cabo_counter-logo_rounded.png - - assets/schema.json + - assets/game_list-schema.json