Renamed current json scheme
This commit is contained in:
@@ -196,7 +196,8 @@ class LocalStorageService {
|
|||||||
/// Validates the JSON data against the schema.
|
/// Validates the JSON data against the schema.
|
||||||
static Future<bool> validateJsonSchema(String jsonString) async {
|
static Future<bool> validateJsonSchema(String jsonString) async {
|
||||||
try {
|
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 schema = JsonSchema.create(json.decode(schemaString));
|
||||||
final jsonData = json.decode(jsonString);
|
final jsonData = json.decode(jsonString);
|
||||||
final result = schema.validate(jsonData);
|
final result = schema.validate(jsonData);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.3.7+325
|
version: 0.3.7+326
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
@@ -39,4 +39,4 @@ flutter:
|
|||||||
uses-material-design: false
|
uses-material-design: false
|
||||||
assets:
|
assets:
|
||||||
- assets/cabo_counter-logo_rounded.png
|
- assets/cabo_counter-logo_rounded.png
|
||||||
- assets/schema.json
|
- assets/game_list-schema.json
|
||||||
|
|||||||
Reference in New Issue
Block a user