This commit is contained in:
2026-04-08 17:40:06 +08:00
parent a2cc18a434
commit 0f95fab755
12 changed files with 620 additions and 360 deletions

View File

@@ -118,7 +118,7 @@ class Collection implements Stringable
throw new Exception("cannot read file: $filepath");
}
$json = json_decode($content, true);
$json = json_decode($content, true, flags: JSON_THROW_ON_ERROR);
$schema = $json['info']['schema'] ?? '';
if (str_ends_with($schema, 'v2.0.0/collection.json')) {