Renamed current json scheme

This commit is contained in:
2025-07-07 23:18:15 +02:00
parent ace157dc47
commit 751f490c44
3 changed files with 4 additions and 3 deletions

View File

@@ -196,7 +196,8 @@ class LocalStorageService {
/// Validates the JSON data against the schema.
static Future<bool> 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);

View File

@@ -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