From cccd89cbf2cf92e7735cb342f343d216eb3aa76c Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 4 Apr 2019 11:04:33 -0400 Subject: [PATCH] Bug 1540860 - Add `$schema` key and descriptions to json schema output --- Bugzilla/App/Command/report_ping.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.47.3