Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-JSON-Validator for 
openSUSE:Factory checked in at 2022-11-09 12:57:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-JSON-Validator (Old)
 and      /work/SRC/openSUSE:Factory/.perl-JSON-Validator.new.1597 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-JSON-Validator"

Wed Nov  9 12:57:06 2022 rev:43 rq:1034524 version:5.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-JSON-Validator/perl-JSON-Validator.changes  
2022-09-05 21:22:28.197207222 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-JSON-Validator.new.1597/perl-JSON-Validator.changes
        2022-11-09 12:57:32.948386378 +0100
@@ -1,0 +2,13 @@
+Thu Oct 27 03:08:11 UTC 2022 - Tina M??ller <[email protected]>
+
+- updated to 5.12
+   see /usr/share/doc/packages/perl-JSON-Validator/Changes
+
+  5.12 2022-10-26T20:14:57
+   - Allow unicode strings in the JSON schema #268
+     Contributor: Brad Barden
+   - Specified Perl version
+   - Updated basic repository files
+   - Updated contributors list
+
+-------------------------------------------------------------------

Old:
----
  JSON-Validator-5.11.tar.gz

New:
----
  JSON-Validator-5.12.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-JSON-Validator.spec ++++++
--- /var/tmp/diff_new_pack.wbKFMb/_old  2022-11-09 12:57:33.472389331 +0100
+++ /var/tmp/diff_new_pack.wbKFMb/_new  2022-11-09 12:57:33.476389355 +0100
@@ -18,7 +18,7 @@
 
 %define cpan_name JSON-Validator
 Name:           perl-JSON-Validator
-Version:        5.11
+Version:        5.12
 Release:        0
 License:        Artistic-2.0
 Summary:        Validate data against a JSON schema

++++++ JSON-Validator-5.11.tar.gz -> JSON-Validator-5.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/Changes 
new/JSON-Validator-5.12/Changes
--- old/JSON-Validator-5.11/Changes     2022-08-30 08:41:16.000000000 +0200
+++ new/JSON-Validator-5.12/Changes     2022-10-26 13:14:57.000000000 +0200
@@ -1,5 +1,12 @@
 Revision history for perl distribution JSON-Validator
 
+5.12 2022-10-26T20:14:57
+ - Allow unicode strings in the JSON schema #268
+   Contributor: Brad Barden
+ - Specified Perl version
+ - Updated basic repository files
+ - Updated contributors list
+
 5.11 2022-08-30T15:41:16+0900
  - Fix sorting routes with placeholders on different positions
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/MANIFEST 
new/JSON-Validator-5.12/MANIFEST
--- old/JSON-Validator-5.11/MANIFEST    2022-08-30 08:41:17.000000000 +0200
+++ new/JSON-Validator-5.12/MANIFEST    2022-10-26 13:14:58.000000000 +0200
@@ -34,7 +34,7 @@
 lib/JSON/Validator/Util.pm
 Makefile.PL
 MANIFEST                       This list of files
-t/00-basic.t
+t/00-project.t
 t/benchmark.t
 t/bundle.t
 t/coerce-default.t
@@ -138,12 +138,15 @@
 t/spec/v3-petstore.json
 t/spec/with-deep-mixed-ref.json
 t/spec/with-relative-ref.json
+t/spec/with-unicode-multibyte.json
+t/spec/with-unicode-multibyte.yml
 t/stack/Some.pm
 t/stack/Some/Module.pm
 t/test/array.pm
 t/test/number.pm
 t/test/object.pm
 t/to-json.t
+t/unicode-multibyte.t
 t/uri.t
 t/util-checksum-yaml-xs.t
 t/util.t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/META.json 
new/JSON-Validator-5.12/META.json
--- old/JSON-Validator-5.11/META.json   2022-08-30 08:41:17.000000000 +0200
+++ new/JSON-Validator-5.12/META.json   2022-10-26 13:14:58.000000000 +0200
@@ -37,7 +37,7 @@
             "List::Util" : "1.45",
             "Mojolicious" : "7.28",
             "YAML::XS" : "0.67",
-            "perl" : "5.010001"
+            "perl" : "5.016"
          }
       },
       "test" : {
@@ -50,19 +50,58 @@
    "release_status" : "stable",
    "resources" : {
       "bugtracker" : {
-         "web" : "https://github.com/mojolicious/json-validator/issues";
+         "web" : "https://github.com/jhthorsen/json-validator/issues";
       },
-      "homepage" : "https://mojolicious.org";,
+      "homepage" : "https://github.com/jhthorsen/json-validator";,
       "license" : [
          "http://www.opensource.org/licenses/artistic-license-2.0";
       ],
       "repository" : {
          "type" : "git",
-         "url" : "https://github.com/mojolicious/json-validator.git";,
-         "web" : "https://github.com/mojolicious/json-validator";
+         "url" : "https://github.com/jhthorsen/json-validator.git";,
+         "web" : "https://github.com/jhthorsen/json-validator";
       },
-      "x_IRC" : "ircs://irc.libera.chat:6697/#perl-openapi"
+      "x_IRC" : {
+         "url" : "irc://irc.libera.chat/#perl-openapi",
+         "web" : "https://web.libera.chat/#perl-openapi";
+      }
    },
-   "version" : "5.11",
+   "version" : "5.12",
+   "x_contributors" : [
+      "Aleksandr Orlenko <[email protected]>",
+      "Alexander Hartmaier <[email protected]>",
+      "Alexander Karelas <[email protected]>",
+      "Bernhard Graf <[email protected]>",
+      "Brad Barden <[email protected]>",
+      "Dagfinn Ilmari Manns??ker <[email protected]>",
+      "Daniel B??hmer <[email protected]>",
+      "David Cantrell <[email protected]>",
+      "Ed J <[email protected]>",
+      "Ere Maijala <[email protected]>",
+      "Fabrizio Gennari <[email protected]>",
+      "Ilya Rassadin <[email protected]>",
+      "Jan Henning Thorsen <[email protected]>",
+      "Jason Cooper <[email protected]>",
+      "Karen Etheridge <[email protected]>",
+      "Kenichi Ishigaki <[email protected]>",
+      "Kevin M. Goess <[email protected]>",
+      "Kirill Matusov <[email protected]>",
+      "Krasimir Berov <[email protected]>",
+      "Lari Taskula <[email protected]>",
+      "Lee Johnson <[email protected]>",
+      "Martin Renvoize <[email protected]>",
+      "Mattias P??iv??rinta <[email protected]>",
+      "Michael Jemmeson <[email protected]>",
+      "Michael Schout <[email protected]>",
+      "Mohammad S Anwar <[email protected]>",
+      "Nick Morrott <[email protected]>",
+      "Pierre-Aymeric Masse <[email protected]>",
+      "Roy Storey <[email protected]>",
+      "Russell Jenkins <[email protected]>",
+      "Sebastian Riedel <[email protected]>",
+      "Stephan Hradek <[email protected]>",
+      "Tim Stallard <[email protected]>",
+      "Zoffix Znet <[email protected]>"
+   ],
    "x_serialization_backend" : "JSON::PP version 4.06"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/META.yml 
new/JSON-Validator-5.12/META.yml
--- old/JSON-Validator-5.11/META.yml    2022-08-30 08:41:17.000000000 +0200
+++ new/JSON-Validator-5.12/META.yml    2022-10-26 13:14:58.000000000 +0200
@@ -25,12 +25,49 @@
   List::Util: '1.45'
   Mojolicious: '7.28'
   YAML::XS: '0.67'
-  perl: '5.010001'
+  perl: '5.016'
 resources:
-  IRC: ircs://irc.libera.chat:6697/#perl-openapi
-  bugtracker: https://github.com/mojolicious/json-validator/issues
-  homepage: https://mojolicious.org
+  IRC:
+    url: irc://irc.libera.chat/#perl-openapi
+    web: https://web.libera.chat/#perl-openapi
+  bugtracker: https://github.com/jhthorsen/json-validator/issues
+  homepage: https://github.com/jhthorsen/json-validator
   license: http://www.opensource.org/licenses/artistic-license-2.0
-  repository: https://github.com/mojolicious/json-validator.git
-version: '5.11'
+  repository: https://github.com/jhthorsen/json-validator.git
+version: '5.12'
+x_contributors:
+  - 'Aleksandr Orlenko <[email protected]>'
+  - 'Alexander Hartmaier <[email protected]>'
+  - 'Alexander Karelas <[email protected]>'
+  - 'Bernhard Graf <[email protected]>'
+  - 'Brad Barden <[email protected]>'
+  - 'Dagfinn Ilmari Manns??ker <[email protected]>'
+  - 'Daniel B??hmer <[email protected]>'
+  - 'David Cantrell <[email protected]>'
+  - 'Ed J <[email protected]>'
+  - 'Ere Maijala <[email protected]>'
+  - 'Fabrizio Gennari <[email protected]>'
+  - 'Ilya Rassadin <[email protected]>'
+  - 'Jan Henning Thorsen <[email protected]>'
+  - 'Jason Cooper <[email protected]>'
+  - 'Karen Etheridge <[email protected]>'
+  - 'Kenichi Ishigaki <[email protected]>'
+  - 'Kevin M. Goess <[email protected]>'
+  - 'Kirill Matusov <[email protected]>'
+  - 'Krasimir Berov <[email protected]>'
+  - 'Lari Taskula <[email protected]>'
+  - 'Lee Johnson <[email protected]>'
+  - 'Martin Renvoize <[email protected]>'
+  - 'Mattias P??iv??rinta <[email protected]>'
+  - 'Michael Jemmeson <[email protected]>'
+  - 'Michael Schout <[email protected]>'
+  - 'Mohammad S Anwar <[email protected]>'
+  - 'Nick Morrott <[email protected]>'
+  - 'Pierre-Aymeric Masse <[email protected]>'
+  - 'Roy Storey <[email protected]>'
+  - 'Russell Jenkins <[email protected]>'
+  - 'Sebastian Riedel <[email protected]>'
+  - 'Stephan Hradek <[email protected]>'
+  - 'Tim Stallard <[email protected]>'
+  - 'Zoffix Znet <[email protected]>'
 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/Makefile.PL 
new/JSON-Validator-5.12/Makefile.PL
--- old/JSON-Validator-5.11/Makefile.PL 2021-10-06 02:58:48.000000000 +0200
+++ new/JSON-Validator-5.12/Makefile.PL 2022-10-26 13:14:04.000000000 +0200
@@ -1,11 +1,10 @@
-use 5.010001;
-
+use 5.016;
 use strict;
 use warnings;
 use utf8;
-
 use ExtUtils::MakeMaker;
 
+my $GITHUB_URL  = 'https://github.com/jhthorsen/json-validator';
 my @PREREQ_YAML = !$ENV{JSON_VALIDATOR_PREFER_YAML_PP}
   || eval 'use YAML::XS 0.67;1' ? ('YAML::XS' => '0.67') : ('YAML::PP' => 
'0.020');
 
@@ -18,19 +17,51 @@
   META_MERGE    => {
     'dynamic_config' => 0,
     'meta-spec'      => {version   => 2},
-    'no_index'       => {directory => ['examples', 't']},
-    'prereqs'        => {runtime   => {requires => {perl => '5.010001'}}},
+    'no_index'       => {directory => [qw(examples t)]},
+    'prereqs'        => {runtime   => {requires => {perl => '5.016'}}},
     'resources'      => {
-      bugtracker => {web => 
'https://github.com/mojolicious/json-validator/issues'},
-      homepage   => 'https://mojolicious.org',
+      bugtracker => {web => "$GITHUB_URL/issues"},
+      homepage   => $GITHUB_URL,
       license    => 
['http://www.opensource.org/licenses/artistic-license-2.0'],
-      repository => {
-        type => 'git',
-        url  => 'https://github.com/mojolicious/json-validator.git',
-        web  => 'https://github.com/mojolicious/json-validator',
-      },
-      x_IRC => 'ircs://irc.libera.chat:6697/#perl-openapi',
+      repository => {type => 'git', url => "$GITHUB_URL.git", web => 
$GITHUB_URL},
+      x_IRC      => {url  => 'irc://irc.libera.chat/#perl-openapi', web => 
'https://web.libera.chat/#perl-openapi'},
     },
+    'x_contributors' => [
+      'Aleksandr Orlenko <[email protected]>',
+      'Alexander Hartmaier <[email protected]>',
+      'Alexander Karelas <[email protected]>',
+      'Bernhard Graf <[email protected]>',
+      'Brad Barden <[email protected]>',
+      'Dagfinn Ilmari Manns??ker <[email protected]>',
+      'Daniel B??hmer <[email protected]>',
+      'David Cantrell <[email protected]>',
+      'Ed J <[email protected]>',
+      'Ere Maijala <[email protected]>',
+      'Fabrizio Gennari <[email protected]>',
+      'Ilya Rassadin <[email protected]>',
+      'Jan Henning Thorsen <[email protected]>',
+      'Jason Cooper <[email protected]>',
+      'Karen Etheridge <[email protected]>',
+      'Kenichi Ishigaki <[email protected]>',
+      'Kevin M. Goess <[email protected]>',
+      'Kirill Matusov <[email protected]>',
+      'Krasimir Berov <[email protected]>',
+      'Lari Taskula <[email protected]>',
+      'Lee Johnson <[email protected]>',
+      'Martin Renvoize <[email protected]>',
+      'Mattias P??iv??rinta <[email protected]>',
+      'Michael Jemmeson <[email protected]>',
+      'Michael Schout <[email protected]>',
+      'Mohammad S Anwar <[email protected]>',
+      'Nick Morrott <[email protected]>',
+      'Pierre-Aymeric Masse <[email protected]>',
+      'Roy Storey <[email protected]>',
+      'Russell Jenkins <[email protected]>',
+      'Sebastian Riedel <[email protected]>',
+      'Stephan Hradek <[email protected]>',
+      'Tim Stallard <[email protected]>',
+      'Zoffix Znet <[email protected]>',
+    ],
   },
   PREREQ_PM     => {'List::Util' => '1.45', 'Mojolicious' => '7.28', 'perl' => 
'v5.16.0', @PREREQ_YAML},
   TEST_REQUIRES => {'Test::More' => '1.30', 'Test::Deep'  => '0'},
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/lib/JSON/Validator/Util.pm 
new/JSON-Validator-5.12/lib/JSON/Validator/Util.pm
--- old/JSON-Validator-5.11/lib/JSON/Validator/Util.pm  2021-10-02 
03:12:47.000000000 +0200
+++ new/JSON-Validator-5.12/lib/JSON/Validator/Util.pm  2022-10-26 
13:14:57.000000000 +0200
@@ -24,7 +24,7 @@
 my $serializer = SEREAL_SUPPORT ? \&_sereal_encode : \&_yaml_dump;
 
 sub data_checksum {
-  return Mojo::Util::md5_sum(ref $_[0] ? $serializer->($_[0]) : defined $_[0] 
? qq('$_[0]') : 'undef');
+  return Mojo::Util::md5_sum(ref $_[0] ? $serializer->($_[0]) : defined $_[0] 
? do { utf8::encode(my $x = shift); qq('$x') } : 'undef');
 }
 
 sub data_section {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/lib/JSON/Validator.pm 
new/JSON-Validator-5.12/lib/JSON/Validator.pm
--- old/JSON-Validator-5.11/lib/JSON/Validator.pm       2022-08-30 
08:41:16.000000000 +0200
+++ new/JSON-Validator-5.12/lib/JSON/Validator.pm       2022-10-26 
13:14:57.000000000 +0200
@@ -4,10 +4,10 @@
 use Carp qw(confess);
 use JSON::Validator::Store;
 use JSON::Validator::Util qw(E data_checksum is_type);
-use Mojo::Util qw(sha1_sum);
-use Scalar::Util qw(blessed);
+use Mojo::Util            qw(sha1_sum);
+use Scalar::Util          qw(blessed);
 
-our $VERSION = '5.11';
+our $VERSION = '5.12';
 
 our %SCHEMAS = (
   'http://json-schema.org/draft-04/schema#'             => '+Draft4',
@@ -452,18 +452,82 @@
 This program is free software, you can redistribute it and/or modify it under
 the terms of the Artistic License version 2.0.
 
-=head1 AUTHOR
+=head1 AUTHORS
+
+=head2 Project Founder
 
 Jan Henning Thorsen - C<[email protected]>
 
-Daniel B??hmer - C<[email protected]>
+=head2 Contributors
+
+=over 2
+
+=item * Aleksandr Orlenko
+
+=item * Alexander Hartmaier
+
+=item * Alexander Karelas
+
+=item * Bernhard Graf
+
+=item * Brad Barden
+
+=item * Dagfinn Ilmari Manns??ker
+
+=item * Daniel B??hmer
+
+=item * David Cantrell
+
+=item * Ed J
+
+=item * Ere Maijala
+
+=item * Fabrizio Gennari
+
+=item * Ilya Rassadin
+
+=item * Jason Cooper
+
+=item * Karen Etheridge
 
-Ed J - C<[email protected]>
+=item * Kenichi Ishigaki
 
-Karen Etheridge - C<[email protected]>
+=item * Kevin M. Goess
 
-Kevin Goess - C<[email protected]>
+=item * Kirill Matusov
 
-Martin Renvoize - C<[email protected]>
+=item * Krasimir Berov
+
+=item * Lari Taskula
+
+=item * Lee Johnson
+
+=item * Martin Renvoize
+
+=item * Mattias P??iv??rinta
+
+=item * Michael Jemmeson
+
+=item * Michael Schout
+
+=item * Mohammad S Anwar
+
+=item * Nick Morrott
+
+=item * Pierre-Aymeric Masse
+
+=item * Roy Storey
+
+=item * Russell Jenkins
+
+=item * Sebastian Riedel
+
+=item * Stephan Hradek
+
+=item * Tim Stallard
+
+=item * Zoffix Znet
+
+=back
 
 =cut
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/t/00-basic.t 
new/JSON-Validator-5.12/t/00-basic.t
--- old/JSON-Validator-5.11/t/00-basic.t        2022-03-25 01:54:14.000000000 
+0100
+++ new/JSON-Validator-5.12/t/00-basic.t        1970-01-01 01:00:00.000000000 
+0100
@@ -1,104 +0,0 @@
-use strict;
-use Test::More;
-use File::Find;
-
-plan skip_all => 'AUTHOR_TESTING=1' unless $ENV{AUTHOR_TESTING};
-
-if (($ENV{HARNESS_PERL_SWITCHES} || '') =~ /Devel::Cover/) {
-  plan skip_all => 'HARNESS_PERL_SWITCHES =~ /Devel::Cover/';
-}
-if (!eval 'require Test::Pod; 1') {
-  *Test::Pod::pod_file_ok = sub {
-  SKIP: { skip "pod_file_ok(@_) (Test::Pod is required)", 1 }
-  };
-}
-if (!eval 'require Test::Pod::Coverage; 1') {
-  *Test::Pod::Coverage::pod_coverage_ok = sub {
-  SKIP: { skip "pod_coverage_ok(@_) (Test::Pod::Coverage is required)", 1 }
-  };
-}
-if (!eval 'require Test::CPAN::Changes; 1') {
-  *Test::CPAN::Changes::changes_file_ok = sub {
-  SKIP: { skip "changes_ok(@_) (Test::CPAN::Changes is required)", 4 }
-  };
-}
-
-my $test_spelling = eval 'require Test::Spelling; 
Test::Spelling::has_working_spellchecker()';
-my $skip_spelling = $test_spelling ? '' : $@ =~ m!(\N+)!s ? $1 : 'No working 
spellchecker';
-Test::Spelling::add_stopwords(<DATA>) if $test_spelling;
-
-my @files;
-find({wanted => sub { /\.pm$/ and push @files, $File::Find::name }, no_chdir 
=> 1}, -e 'blib' ? 'blib' : 'lib');
-
-plan tests => @files * 4 + 4;
-
-for my $file (@files) {
-  my $module = $file;
-  $module =~ s,\.pm$,,;
-  $module =~ s,.*/?lib/,,;
-  $module =~ s,/,::,g;
-  ok eval "use $module; 1", "use $module" or diag $@;
-  Test::Pod::pod_file_ok($file);
-  Test::Pod::Coverage::pod_coverage_ok($module, {also_private => 
[qr/^[A-Z_]+$/]});
-  pod_file_spelling_ok($file);
-}
-
-Test::CPAN::Changes::changes_file_ok();
-
-sub pod_file_spelling_ok {
-SKIP: {
-    skip "pod_file_spelling_ok(@_) ($skip_spelling)", 1 if $skip_spelling;
-    Test::Spelling::pod_file_spelling_ok($_[0]);
-  }
-}
-
-__DATA__
-additionalItems
-additionalProperties
-allOf
-alphanum
-anyOf
-basePath
-bc
-B??hmer
-const
-DefaultResponse
-DT
-Etheridge
-fff
-formData
-Goess
-Henning
-iban
-ipv
-IRI
-Joi
-joi
-JSONPatch
-maxItems
-maxLength
-maxProperties
-minItems
-minLength
-minProperties
-multipleOf
-NID
-nid
-NSS
-nss
-oneOf
-OpenAPI
-openapiv
-Petstore
-Renvoize
-Schemas
-schemas
-str
-Thorsen
-ua
-unevaluatedItems
-unevaluatedProperties
-uniqueItems
-UUIDv
-validator
-validators
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/t/00-project.t 
new/JSON-Validator-5.12/t/00-project.t
--- old/JSON-Validator-5.11/t/00-project.t      1970-01-01 01:00:00.000000000 
+0100
+++ new/JSON-Validator-5.12/t/00-project.t      2022-10-26 13:14:43.000000000 
+0200
@@ -0,0 +1,127 @@
+use strict;
+use Test::More;
+use File::Find;
+
+plan skip_all => 'No such directory: .git' unless $ENV{TEST_ALL} or -d '.git';
+plan skip_all => 'HARNESS_PERL_SWITCHES =~ /Devel::Cover/' if 
+($ENV{HARNESS_PERL_SWITCHES} || '') =~ /Devel::Cover/;
+
+for (qw(
+  Test::CPAN::Changes::changes_file_ok+VERSION!4
+  Test::Pod::Coverage::pod_coverage_ok+VERSION!1
+  Test::Pod::pod_file_ok+VERSION!1
+  Test::Spelling::pod_file_spelling_ok+has_working_spellchecker!1
+))
+{
+  my ($fqn, $module, $sub, $check, $skip_n) = /^((.*)::(\w+))\+(\w+)!(\d+)$/;
+  next if eval "use $module;$module->$check";
+  no strict qw(refs);
+  *$fqn = sub {
+  SKIP: { skip "$sub(@_) ($module is required)", $skip_n }
+  };
+}
+
+my @files;
+find({wanted => sub { /\.pm$/ and push @files, $File::Find::name }, no_chdir 
=> 1}, -e 'blib' ? 'blib' : 'lib');
+plan tests => @files * 4 + 4;
+
+Test::Spelling::add_stopwords(<DATA>)
+  if Test::Spelling->can('has_working_spellchecker') && 
Test::Spelling->has_working_spellchecker;
+
+for my $file (@files) {
+  my $module = $file;
+  $module =~ s,\.pm$,,;
+  $module =~ s,.*/?lib/,,;
+  $module =~ s,/,::,g;
+  ok eval "use $module; 1", "use $module" or diag $@;
+  Test::Pod::pod_file_ok($file);
+  Test::Pod::Coverage::pod_coverage_ok($module, {also_private => 
[qr/^[A-Z_]+$/]});
+  Test::Spelling::pod_file_spelling_ok($file);
+}
+
+Test::CPAN::Changes::changes_file_ok();
+
+__DATA__
+Aleksandr
+Anwar
+Aymeric
+Barden
+Bernhard
+Berov
+B??hmer
+DT
+Dagfinn
+DefaultResponse
+Etheridge
+Fabrizio
+Gennari
+Goess
+Graf
+Hartmaier
+Henning
+Hradek
+IRI
+Ilmari
+Ishigaki
+JSONPatch
+Jemmeson
+Joi
+Karelas
+Kenichi
+Kirill
+Krasimir
+Lari
+Maijala
+Manns??ker
+Masse
+Mattias
+Matusov
+Morrott
+NID
+NSS
+OpenAPI
+Orlenko
+P??iv??rinta
+Petstore
+Rassadin
+Renvoize
+Riedel
+Schemas
+Schout
+Stallard
+Taskula
+Thorsen
+UUIDv
+Znet
+Zoffix
+additionalItems
+additionalProperties
+allOf
+alphanum
+anyOf
+basePath
+bc
+const
+fff
+formData
+iban
+ipv
+joi
+maxItems
+maxLength
+maxProperties
+minItems
+minLength
+minProperties
+multipleOf
+nid
+nss
+oneOf
+openapiv
+schemas
+str
+ua
+unevaluatedItems
+unevaluatedProperties
+uniqueItems
+validator
+validators
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/JSON-Validator-5.11/t/spec/with-unicode-multibyte.json 
new/JSON-Validator-5.12/t/spec/with-unicode-multibyte.json
--- old/JSON-Validator-5.11/t/spec/with-unicode-multibyte.json  1970-01-01 
01:00:00.000000000 +0100
+++ new/JSON-Validator-5.12/t/spec/with-unicode-multibyte.json  2022-10-26 
13:08:42.000000000 +0200
@@ -0,0 +1,11 @@
+{
+  "type": "object",
+  "properties": {
+    "bar": {
+      "enum": ["replacement???char"]
+    },
+    "foo": {
+      "enum": ["foo???bar"]
+    }
+  }
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/JSON-Validator-5.11/t/spec/with-unicode-multibyte.yml 
new/JSON-Validator-5.12/t/spec/with-unicode-multibyte.yml
--- old/JSON-Validator-5.11/t/spec/with-unicode-multibyte.yml   1970-01-01 
01:00:00.000000000 +0100
+++ new/JSON-Validator-5.12/t/spec/with-unicode-multibyte.yml   2022-10-26 
13:08:42.000000000 +0200
@@ -0,0 +1,10 @@
+---
+properties:
+  foo:
+    enum:
+    - foo???bar
+  bar:
+    enum:
+    - replacement???char
+
+type: object
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/JSON-Validator-5.11/t/unicode-multibyte.t 
new/JSON-Validator-5.12/t/unicode-multibyte.t
--- old/JSON-Validator-5.11/t/unicode-multibyte.t       1970-01-01 
01:00:00.000000000 +0100
+++ new/JSON-Validator-5.12/t/unicode-multibyte.t       2022-10-26 
13:08:42.000000000 +0200
@@ -0,0 +1,26 @@
+use lib '.';
+use t::Helper;
+use Mojo::File qw(path);
+use Mojo::Util qw(encode);
+use Test::More;
+
+my $json_file = 
path(__FILE__)->dirname->child('spec')->child('with-unicode-multibyte.json');
+my $yaml_file = 
path(__FILE__)->dirname->child('spec')->child('with-unicode-multibyte.yml');
+
+my $perl_utf8_str = "foo\x{266b}bar";
+my $encoded_bytes = encode('UTF-8', $perl_utf8_str);
+my $with_replacement_char = "replacement\x{fffd}char";
+my $invalid_utf8_1 = "replacement\x{d800}char";
+my $invalid_utf8_2 = "replacement\x{d8f0}char";
+
+validate_ok {foo => $perl_utf8_str}, $json_file;
+validate_ok {foo => $encoded_bytes}, $json_file, E('/foo', "Not in enum list: 
$perl_utf8_str.");
+
+validate_ok {foo => $perl_utf8_str}, $yaml_file;
+validate_ok {foo => $encoded_bytes}, $yaml_file, E('/foo', "Not in enum list: 
$perl_utf8_str.");
+
+validate_ok {bar => $with_replacement_char}, $json_file;
+validate_ok {bar => $invalid_utf8_1}, $json_file, E('/bar', "Not in enum list: 
$with_replacement_char.");
+validate_ok {bar => $invalid_utf8_2}, $json_file, E('/bar', "Not in enum list: 
$with_replacement_char.");
+
+done_testing;

Reply via email to