From: Dylan William Hardison Date: Thu, 4 Apr 2019 15:04:33 +0000 (-0400) Subject: Bug 1540860 - Add `$schema` key and descriptions to json schema output X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cccd89cbf2cf92e7735cb342f343d216eb3aa76c;p=thirdparty%2Fbugzilla.git Bug 1540860 - Add `$schema` key and descriptions to json schema output --- diff --git a/Bugzilla/App/Command/report_ping.pm b/Bugzilla/App/Command/report_ping.pm index 44543952c..0958b5fe5 100644 --- a/Bugzilla/App/Command/report_ping.pm +++ b/Bugzilla/App/Command/report_ping.pm @@ -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; }