]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1540860 - Add `$schema` key and descriptions to json schema output
authorDylan William Hardison <dylan@hardison.net>
Thu, 4 Apr 2019 15:04:33 +0000 (11:04 -0400)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 15:04:33 +0000 (11:04 -0400)
Bugzilla/App/Command/report_ping.pm

index 44543952c2aa71e7af40105bd0fd3226b8df1c25..0958b5fe503ede2a171a8d9434f52e4a9a7e4fc1 100644 (file)
@@ -48,7 +48,9 @@ sub run {
   );
 
   if ($dump_schema) {
-    print $json->encode( $report->validator->schema->data );
+    my $schema =  $report->validator->schema->data ;
+    $schema->{'$schema'} = "http://json-schema.org/draft-04/schema#";
+    print $json->encode($schema);
     exit;
   }