Skip to content

Commit

Permalink
Fixed JSON error
Browse files Browse the repository at this point in the history
  • Loading branch information
DRx3D committed Aug 2, 2023
1 parent cba6564 commit c3e377c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Models/ToyCar/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
"name": "Toy Car",
"path": "./Models/ToyCar",
"summary": "Toy car example using transmission, clearcoat, and sheen.",
"createReadme": true
"createReadme": true
}
1 change: 1 addition & 0 deletions util/modelmetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ public function reportIssues() {
} else {
$warnings[] = 'README is not auto-generated';
}
if (count($errors) > 2) {$warnings[] = 'basePath: ' . $this->metadata['basePath'];}
$issues = array ('error'=>$errors, 'warning'=>$warnings);
return $issues;
}
Expand Down

0 comments on commit c3e377c

Please sign in to comment.