Renamed current json scheme
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user