JSON-Schema-AsType v0.4.4 Perl 5 v5.41.1 x86_64-linux
- Status
- Pass
- From
- Andreas J. König (ANDK)
- Dist
-
JSON-Schema-AsType v0.4.4
- Platform
- Perl 5 v5.41.1 x86_64-linux
- Date
- 2024-07-08 13:19:43
- ID
- bd36bec0-3d2c-11ef-8191-2d79b3c0e3fc
This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language. See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org
--
Dear Yanick Champoux,
This is a computer-generated report for JSON-Schema-AsType-0.4.4
on perl 5.41.1, created by CPAN-Reporter-1.2019.
Thank you for uploading your work to CPAN. Congratulations!
All tests were successful.
Sections of this report:
* Tester comments
* Program output
* Prerequisites
* Environment and other context
------------------------------
TESTER COMMENTS
------------------------------
Additional comments from tester:
this report is from an automated smoke testing program
and was not reviewed by a human for accuracy
------------------------------
PROGRAM OUTPUT
------------------------------
Output from '/usr/bin/make test':
PERL_DL_NONLAZY=1 "/tmp/basesmoker-reloperl-aunl/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ......... ok
#
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
# Module Want Have
# ------------------- ---- ----
# ExtUtils::MakeMaker any 7.70
#
# === Build Requires ===
#
# Module Want Have
# ------------------- ---- ----
# ExtUtils::MakeMaker any 7.70
#
# === Test Requires ===
#
# Module Want Have
# ------------------- ----- --------
# Exporter any 5.78
# ExtUtils::MakeMaker any 7.70
# File::Spec any 3.90
# IO::Handle any 1.55
# IPC::Open3 any 1.22
# Path::Tiny 0.062 0.146
# Test::Deep any 1.204
# Test::Exception any 0.43
# Test::More any 1.302199
# lib any 0.65
# parent any 0.241
#
# === Test Recommends ===
#
# Module Want Have
# ---------- -------- --------
# CPAN::Meta 2.120900 2.150010
#
# === Runtime Requires ===
#
# Module Want Have
# ---------------------- -------- --------
# Clone any 0.46
# JSON any 4.10
# LWP::Simple any 6.77
# List::AllUtils any 0.19
# List::MoreUtils any 0.430
# List::Util any 1.63
# Moose any 2.2207
# Moose::Role any 2.2207
# Moose::Util any 2.2207
# MooseX::ClassAttribute any 0.29
# MooseX::MungeHas any 0.011
# Path::Tiny 0.062 0.146
# Scalar::Util any 1.63
# Type::Library any 2.004000
# Type::Tiny any 2.004000
# Type::Tiny::Class any 2.004000
# Type::Utils any 2.004000
# Types::Standard any 2.004000
# URI any 5.28
# perl 5.014000 5.041001
# strict any 1.13
# warnings any 1.70
#
t/00-report-prereqs.t .. ok
t/basic.t .............. ok
t/draft3.t ............. ok
t/draft4.t ............. ok
# {
# 'exclusiveMaximum' => '3'
# }
# Value "3" did not pass type constraint "ExclusiveMaximum[3]"
# "ExclusiveMaximum[3]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $_ < $max unless not StrictNum->check($_); }
# Value "3.5" did not pass type constraint "ExclusiveMaximum[3]"
# "ExclusiveMaximum[3]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $_ < $max unless not StrictNum->check($_); }
# {
# 'maximum' => '3'
# }
# Value "3.5" did not pass type constraint "Maximum[3]"
# "Maximum[3]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $_ <= $max unless not StrictNum->check($_); }
# {
# 'multipleOf' => 2
# }
# Value "7" did not pass type constraint "MultipleOf[2]"
# "MultipleOf[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not Number->check($_) && ($_ / $num) =~ /\./; }
# {
# 'multipleOf' => '1.5'
# }
# Value "35" did not pass type constraint "MultipleOf["1.5"]"
# "MultipleOf["1.5"]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not Number->check($_) && ($_ / $num) =~ /\./; }
# {
# 'multipleOf' => '0.0001'
# }
# Value "0.00751" did not pass type constraint "MultipleOf["0.0001"]"
# "MultipleOf["0.0001"]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not Number->check($_) && ($_ / $num) =~ /\./; }
# {
# 'allOf' => [
# {
# 'properties' => {
# 'bar' => {
# 'type' => 'integer'
# }
# },
# 'required' => [
# 'bar'
# ]
# },
# {
# 'properties' => {
# 'foo' => {
# 'type' => 'string'
# }
# },
# 'required' => [
# 'foo'
# ]
# }
# ]
# }
# Reference {"foo" => "baz"} did not pass type constraint "AllOf[Properties[bar,Integer]&Required[bar],Properties[foo,String]&Required[foo]]"
# "AllOf[Properties[bar,Integer]&Required[bar],Properties[foo,String]&Required[foo]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# Reference {"bar" => 2} did not pass type constraint "AllOf[Properties[bar,Integer]&Required[bar],Properties[foo,String]&Required[foo]]"
# "AllOf[Properties[bar,Integer]&Required[bar],Properties[foo,String]&Required[foo]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# Reference {"bar" => "quux","foo" => "baz"} did not pass type constraint "AllOf[Properties[bar,Integer]&Required[bar],Properties[foo,String]&Required[foo]]"
# "AllOf[Properties[bar,Integer]&Required[bar],Properties[foo,String]&Required[foo]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# {
# 'allOf' => [
# {
# 'properties' => {
# 'foo' => {
# 'type' => 'string'
# }
# },
# 'required' => [
# 'foo'
# ]
# },
# {
# 'properties' => {
# 'baz' => {
# 'type' => 'null'
# }
# },
# 'required' => [
# 'baz'
# ]
# }
# ],
# 'properties' => {
# 'bar' => {
# 'type' => 'integer'
# }
# },
# 'required' => [
# 'bar'
# ]
# }
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]&Properties[bar,Integer]&Required[bar]" requires that the value pass "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]", "Properties[bar,Integer]", and "Required[bar]"
# Reference {"baz" => undef,"foo" => "quux"} did not pass type constraint "Required[bar]"
# "Required[bar]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; &all(sub { exists $obj->{$_}; } , @keys); }
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]&Properties[bar,Integer]&Required[bar]" requires that the value pass "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]", "Properties[bar,Integer]", and "Required[bar]"
# Reference {"bar" => 2,"baz" => undef} did not pass type constraint "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]"
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]&Properties[bar,Integer]&Required[bar]" requires that the value pass "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]", "Properties[bar,Integer]", and "Required[bar]"
# Reference {"bar" => 2,"foo" => "quux"} did not pass type constraint "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]"
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]&Properties[bar,Integer]&Required[bar]" requires that the value pass "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]", "Properties[bar,Integer]", and "Required[bar]"
# Reference {"bar" => 2} did not pass type constraint "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]"
# "AllOf[Properties[foo,String]&Required[foo],Properties[baz,Null]&Required[baz]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# {
# 'allOf' => [
# {
# 'maximum' => 30
# },
# {
# 'minimum' => 20
# }
# ]
# }
# Value "35" did not pass type constraint "AllOf[Maximum[30],Minimum[20]]"
# "AllOf[Maximum[30],Minimum[20]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# {
# 'allOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# $VAR1->{'allOf'}[0]
# ]
# }
# {
# 'allOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# ]
# }
# Value "foo" did not pass type constraint "AllOf[Any,None]"
# "AllOf[Any,None]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# {
# 'allOf' => [
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# $VAR1->{'allOf'}[0]
# ]
# }
# Value "foo" did not pass type constraint "AllOf[None,None]"
# "AllOf[None,None]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &all(sub { $_->check($v); } , @types); }
# {
# 'additionalProperties' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'patternProperties' => {
# '^v' => {}
# },
# 'properties' => {
# 'bar' => {},
# 'foo' => {}
# }
# }
# "AdditionalProperties[ARRAY(0x559d1c237528),0]&PatternProperties["^v",Any]&Properties[bar,Any,foo,Any]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c237528),0]", "PatternProperties["^v",Any]", and "Properties[bar,Any,foo,Any]"
# Reference {"bar" => 2,"foo" => 1,"quux" => "boom"} did not pass type constraint "AdditionalProperties[ARRAY(0x559d1c237528),0]"
# "AdditionalProperties[ARRAY(0x559d1c237528),0]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my(@add_keys) = grep({my $key = $_; &none(sub { ref $_ ? $key =~ /$_/ : $key eq $_; } , @$known_properties);} keys %$_); if (eval { do { $type_or_boolean->can('check') } }) { my $obj = $_; return &all(sub { $type_or_boolean->check($obj->{$_}); } , @add_keys); } else { return !(@add_keys && !$type_or_boolean); } }
# {
# 'additionalProperties' => {
# 'type' => 'boolean'
# },
# 'patternProperties' => {},
# 'properties' => {
# 'bar' => {},
# 'foo' => {}
# }
# }
# "AdditionalProperties[ARRAY(0x559d19a59478),Boolean]&PatternProperties[]&Properties[foo,Any,bar,Any]" requires that the value pass "AdditionalProperties[ARRAY(0x559d19a59478),Boolean]", "PatternProperties[]", and "Properties[foo,Any,bar,Any]"
# Reference {"bar" => 2,"foo" => 1,"quux" => 12} did not pass type constraint "AdditionalProperties[ARRAY(0x559d19a59478),Boolean]"
# "AdditionalProperties[ARRAY(0x559d19a59478),Boolean]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my(@add_keys) = grep({my $key = $_; &none(sub { ref $_ ? $key =~ /$_/ : $key eq $_; } , @$known_properties);} keys %$_); if (eval { do { $type_or_boolean->can('check') } }) { my $obj = $_; return &all(sub { $type_or_boolean->check($obj->{$_}); } , @add_keys); } else { return !(@add_keys && !$type_or_boolean); } }
# {
# 'additionalProperties' => {
# 'type' => 'boolean'
# },
# 'patternProperties' => {},
# 'properties' => {}
# }
# "AdditionalProperties[ARRAY(0x559d1c824170),Boolean]&PatternProperties[]&Properties[]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c824170),Boolean]", "PatternProperties[]", and "Properties[]"
# Reference {"foo" => 1} did not pass type constraint "AdditionalProperties[ARRAY(0x559d1c824170),Boolean]"
# "AdditionalProperties[ARRAY(0x559d1c824170),Boolean]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my(@add_keys) = grep({my $key = $_; &none(sub { ref $_ ? $key =~ /$_/ : $key eq $_; } , @$known_properties);} keys %$_); if (eval { do { $type_or_boolean->can('check') } }) { my $obj = $_; return &all(sub { $type_or_boolean->check($obj->{$_}); } , @add_keys); } else { return !(@add_keys && !$type_or_boolean); } }
# {
# 'properties' => {
# 'bar' => {},
# 'foo' => {}
# }
# }
# {
# 'not' => {
# 'type' => 'integer'
# }
# }
# Value "1" did not pass type constraint "Not[__ANON__]"
# "Not[__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not $type->check($_); }
# {
# 'not' => {
# 'type' => [
# 'integer',
# 'boolean'
# ]
# }
# }
# Value "1" did not pass type constraint "Not[__ANON__]"
# "Not[__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not $type->check($_); }
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "Not[__ANON__]"
# "Not[__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not $type->check($_); }
# {
# 'not' => {
# 'properties' => {
# 'foo' => {
# 'type' => 'string'
# }
# },
# 'type' => 'object'
# }
# }
# Reference {"foo" => "bar"} did not pass type constraint "Not[__ANON__]"
# "Not[__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not $type->check($_); }
# {
# 'properties' => {
# 'foo' => {
# 'not' => {}
# }
# }
# }
# Reference {"bar" => 2,"foo" => 1} did not pass type constraint "Properties[foo,Not[__ANON__]]"
# "Properties[foo,Not[__ANON__]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# 'not' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# Value "foo" did not pass type constraint "Not[__ANON__]"
# "Not[__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not $type->check($_); }
# {
# 'not' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# }
# {
# 'maxLength' => 2
# }
# Value "foo" did not pass type constraint "MaxLength[2]"
# "MaxLength[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $length >= length $_ unless not String->check($_); }
# {
# 'items' => {
# 'type' => 'integer'
# }
# }
# "~ArrayRef|Tuple[Slurpy[ArrayRef[Integer]]]" requires that the value pass "Tuple[Slurpy[ArrayRef[Integer]]]" or "~ArrayRef"
# Reference [1,"x"] did not pass type constraint "~ArrayRef"
# Reference [1,"x"] did not pass type constraint "~ArrayRef"
# "~ArrayRef" is defined as: (not((ref($_) eq 'ARRAY')))
# Reference [1,"x"] did not pass type constraint "Tuple[Slurpy[ArrayRef[Integer]]]"
# Reference [1,"x"] did not pass type constraint "Tuple[Slurpy[ArrayRef[Integer]]]"
# Array elements from index 0 are slurped into a arrayref which is constrained with "ArrayRef[Integer]"
# Reference [1,"x"] did not pass type constraint "ArrayRef[Integer]" (in $SLURPY)
# "ArrayRef[Integer]" constrains each value in the array with "Integer"
# Value "x" did not pass type constraint "Integer" (in $SLURPY->[1])
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# {
# 'items' => [
# {
# 'type' => 'integer'
# },
# {
# 'type' => 'string'
# }
# ]
# }
# "~ArrayRef|Tuple[Optional[Integer],Optional[String],Slurpy[Any]]" requires that the value pass "Tuple[Optional[Integer],Optional[String],Slurpy[Any]]" or "~ArrayRef"
# Reference ["foo",1] did not pass type constraint "~ArrayRef"
# Reference ["foo",1] did not pass type constraint "~ArrayRef"
# "~ArrayRef" is defined as: (not((ref($_) eq 'ARRAY')))
# Reference ["foo",1] did not pass type constraint "Tuple[Optional[Integer],Optional[String],Slurpy[Any]]"
# Reference ["foo",1] did not pass type constraint "Tuple[Optional[Integer],Optional[String],Slurpy[Any]]"
# "Tuple[Optional[Integer],Optional[String],Slurpy[Any]]" constrains value at index 0 of array with "Optional[Integer]"
# Value "foo" did not pass type constraint "Optional[Integer]" (in $_->[0])
# $_->[0] exists
# "Optional[Integer]" constrains $_->[0] with "Integer" if it exists
# Value "foo" did not pass type constraint "Integer" (in $_->[0])
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# {
# 'items' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# {
# 'items' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# }
# Reference [1,"foo",bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )] did not pass type constraint "Items[0]"
# "Items[0]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not @$_; }
# {
# 'items' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# ]
# }
# "~ArrayRef|Tuple[Optional[Any],Optional[None],Slurpy[Any]]" requires that the value pass "Tuple[Optional[Any],Optional[None],Slurpy[Any]]" or "~ArrayRef"
# Reference [1,"foo"] did not pass type constraint "~ArrayRef"
# Reference [1,"foo"] did not pass type constraint "~ArrayRef"
# "~ArrayRef" is defined as: (not((ref($_) eq 'ARRAY')))
# Reference [1,"foo"] did not pass type constraint "Tuple[Optional[Any],Optional[None],Slurpy[Any]]"
# Reference [1,"foo"] did not pass type constraint "Tuple[Optional[Any],Optional[None],Slurpy[Any]]"
# "Tuple[Optional[Any],Optional[None],Slurpy[Any]]" constrains value at index 1 of array with "Optional[None]"
# Value "foo" did not pass type constraint "Optional[None]" (in $_->[1])
# $_->[1] exists
# "Optional[None]" constrains $_->[1] with "None" if it exists
# Value "foo" did not pass type constraint "None" (in $_->[1])
# "None" is defined as: (not((!!1)))
# {
# 'type' => 'integer'
# }
# Value "1.1" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# Value "foo" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# Reference {} did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# Reference [] did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# Undef did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# {
# 'type' => 'number'
# }
# Value "foo" did not pass type constraint "Number"
# "Number" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 12288 && !($flags & 16384); }
# Reference {} did not pass type constraint "Number"
# "Number" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 12288 && !($flags & 16384); }
# Reference [] did not pass type constraint "Number"
# "Number" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 12288 && !($flags & 16384); }
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "Number"
# "Number" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 12288 && !($flags & 16384); }
# Undef did not pass type constraint "Number"
# "Number" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 12288 && !($flags & 16384); }
# {
# 'type' => 'string'
# }
# Value "1" did not pass type constraint "String"
# "String" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 16384; }
# Value "1.1" did not pass type constraint "String"
# "String" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 16384; }
# "String" is a subtype of "Str"
# "Str" is a subtype of "Value"
# Reference {} did not pass type constraint "Value"
# "Value" is defined as: (defined($_) and not ref($_))
# "String" is a subtype of "Str"
# "Str" is a subtype of "Value"
# Reference [] did not pass type constraint "Value"
# "Value" is defined as: (defined($_) and not ref($_))
# "String" is a subtype of "Str"
# "Str" is a subtype of "Value"
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "Value"
# "Value" is defined as: (defined($_) and not ref($_))
# "String" is a subtype of "Str"
# "Str" is a subtype of "Value"
# "Value" is a subtype of "Defined"
# Undef did not pass type constraint "Defined"
# "Defined" is defined as: (defined($_))
# {
# 'type' => 'object'
# }
# "Object" is a subtype of "HashRef"
# "HashRef" is a subtype of "Ref"
# Value "1" did not pass type constraint "Ref"
# "Ref" is defined as: (!!ref($_))
# "Object" is a subtype of "HashRef"
# "HashRef" is a subtype of "Ref"
# Value "1.1" did not pass type constraint "Ref"
# "Ref" is defined as: (!!ref($_))
# "Object" is a subtype of "HashRef"
# "HashRef" is a subtype of "Ref"
# Value "foo" did not pass type constraint "Ref"
# "Ref" is defined as: (!!ref($_))
# "Object" is a subtype of "HashRef"
# Reference [] did not pass type constraint "HashRef"
# "HashRef" is defined as: (ref($_) eq 'HASH')
# "Object" is a subtype of "HashRef"
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "HashRef"
# "HashRef" is defined as: (ref($_) eq 'HASH')
# "Object" is a subtype of "HashRef"
# "HashRef" is a subtype of "Ref"
# "Ref" is a subtype of "Defined"
# Undef did not pass type constraint "Defined"
# "Defined" is defined as: (defined($_))
# {
# 'type' => 'array'
# }
# "Array" is a subtype of "ArrayRef"
# "ArrayRef" is a subtype of "Ref"
# Value "1" did not pass type constraint "Ref"
# "Ref" is defined as: (!!ref($_))
# "Array" is a subtype of "ArrayRef"
# "ArrayRef" is a subtype of "Ref"
# Value "1.1" did not pass type constraint "Ref"
# "Ref" is defined as: (!!ref($_))
# "Array" is a subtype of "ArrayRef"
# "ArrayRef" is a subtype of "Ref"
# Value "foo" did not pass type constraint "Ref"
# "Ref" is defined as: (!!ref($_))
# "Array" is a subtype of "ArrayRef"
# Reference {} did not pass type constraint "ArrayRef"
# "ArrayRef" is defined as: (ref($_) eq 'ARRAY')
# "Array" is a subtype of "ArrayRef"
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "ArrayRef"
# "ArrayRef" is defined as: (ref($_) eq 'ARRAY')
# "Array" is a subtype of "ArrayRef"
# "ArrayRef" is a subtype of "Ref"
# "Ref" is a subtype of "Defined"
# Undef did not pass type constraint "Defined"
# "Defined" is defined as: (defined($_))
# {
# 'type' => 'boolean'
# }
# Value "1" did not pass type constraint "Boolean"
# "Boolean" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; ref($_) =~ /JSON/; }
# Value "1.1" did not pass type constraint "Boolean"
# "Boolean" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; ref($_) =~ /JSON/; }
# Value "foo" did not pass type constraint "Boolean"
# "Boolean" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; ref($_) =~ /JSON/; }
# Reference {} did not pass type constraint "Boolean"
# "Boolean" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; ref($_) =~ /JSON/; }
# Reference [] did not pass type constraint "Boolean"
# "Boolean" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; ref($_) =~ /JSON/; }
# Undef did not pass type constraint "Boolean"
# "Boolean" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; ref($_) =~ /JSON/; }
# {
# 'type' => 'null'
# }
# Value "1" did not pass type constraint "Null"
# "Null" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not defined $_; }
# Value "1.1" did not pass type constraint "Null"
# "Null" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not defined $_; }
# Value "foo" did not pass type constraint "Null"
# "Null" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not defined $_; }
# Reference {} did not pass type constraint "Null"
# "Null" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not defined $_; }
# Reference [] did not pass type constraint "Null"
# "Null" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not defined $_; }
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "Null"
# "Null" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; not defined $_; }
# {
# 'type' => [
# 'integer',
# 'string'
# ]
# }
# Value "1.1" did not pass type constraint "AnyOf[Integer,String]"
# "AnyOf[Integer,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# Reference {} did not pass type constraint "AnyOf[Integer,String]"
# "AnyOf[Integer,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# Reference [] did not pass type constraint "AnyOf[Integer,String]"
# "AnyOf[Integer,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "AnyOf[Integer,String]"
# "AnyOf[Integer,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# Undef did not pass type constraint "AnyOf[Integer,String]"
# "AnyOf[Integer,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# {
# 'patternProperties' => {
# 'f.*o' => {
# 'type' => 'integer'
# }
# }
# }
# Reference {"foo" => "bar","fooooo" => 2} did not pass type constraint "PatternProperties["f.*o",Integer]"
# "PatternProperties["f.*o",Integer]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# Reference {"foo" => "bar","foooooo" => "baz"} did not pass type constraint "PatternProperties["f.*o",Integer]"
# "PatternProperties["f.*o",Integer]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# {
# 'patternProperties' => {
# 'a*' => {
# 'type' => 'integer'
# },
# 'aaa*' => {
# 'maximum' => 20
# }
# }
# }
# Reference {"a" => "bar"} did not pass type constraint "PatternProperties["a*",Integer,"aaa*",Maximum[20]]"
# "PatternProperties["a*",Integer,"aaa*",Maximum[20]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# Reference {"aaaa" => 31} did not pass type constraint "PatternProperties["a*",Integer,"aaa*",Maximum[20]]"
# "PatternProperties["a*",Integer,"aaa*",Maximum[20]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# Reference {"aaa" => "foo","aaaa" => 31} did not pass type constraint "PatternProperties["a*",Integer,"aaa*",Maximum[20]]"
# "PatternProperties["a*",Integer,"aaa*",Maximum[20]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# {
# 'patternProperties' => {
# 'X_' => {
# 'type' => 'string'
# },
# '[0-9]{2,}' => {
# 'type' => 'boolean'
# }
# }
# }
# Reference {"a31b" => undef} did not pass type constraint "PatternProperties["[0-9]{2,}",Boolean,X_,String]"
# "PatternProperties["[0-9]{2,}",Boolean,X_,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# Reference {"a_X_3" => 3} did not pass type constraint "PatternProperties["[0-9]{2,}",Boolean,X_,String]"
# "PatternProperties["[0-9]{2,}",Boolean,X_,String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# {
# 'patternProperties' => {
# 'b.*' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'f.*' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# }
# Reference {"bar" => 2} did not pass type constraint "PatternProperties["b.*",None,"f.*",Any]"
# "PatternProperties["b.*",None,"f.*",Any]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# Reference {"bar" => 2,"foo" => 1} did not pass type constraint "PatternProperties["b.*",None,"f.*",Any]"
# "PatternProperties["b.*",None,"f.*",Any]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# {
# 'minItems' => 1
# }
# Reference [] did not pass type constraint "MinItems[1]"
# "MinItems[1]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; @$_ >= $min unless ref $_ ne 'ARRAY'; }
# {
# 'properties' => {
# 'bar' => {
# 'type' => 'string'
# },
# 'foo' => {
# 'type' => 'integer'
# }
# }
# }
# Reference {"bar" => {},"foo" => 1} did not pass type constraint "Properties[bar,String,foo,Integer]"
# "Properties[bar,String,foo,Integer]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# Reference {"bar" => {},"foo" => []} did not pass type constraint "Properties[bar,String,foo,Integer]"
# "Properties[bar,String,foo,Integer]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# 'additionalProperties' => {
# 'type' => 'integer'
# },
# 'patternProperties' => {
# 'f.o' => {
# 'minItems' => 2
# }
# },
# 'properties' => {
# 'bar' => {
# 'type' => 'array'
# },
# 'foo' => {
# 'maxItems' => 3,
# 'type' => 'array'
# }
# }
# }
# "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]&PatternProperties["f.o",MinItems[2]]&Properties[foo,MaxItems[3]&Array,bar,Array]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]", "PatternProperties["f.o",MinItems[2]]", and "Properties[foo,MaxItems[3]&Array,bar,Array]"
# Reference {"foo" => [1,2,3,4]} did not pass type constraint "Properties[foo,MaxItems[3]&Array,bar,Array]"
# "Properties[foo,MaxItems[3]&Array,bar,Array]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]&PatternProperties["f.o",MinItems[2]]&Properties[foo,MaxItems[3]&Array,bar,Array]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]", "PatternProperties["f.o",MinItems[2]]", and "Properties[foo,MaxItems[3]&Array,bar,Array]"
# Reference {"foo" => []} did not pass type constraint "PatternProperties["f.o",MinItems[2]]"
# "PatternProperties["f.o",MinItems[2]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]&PatternProperties["f.o",MinItems[2]]&Properties[foo,MaxItems[3]&Array,bar,Array]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]", "PatternProperties["f.o",MinItems[2]]", and "Properties[foo,MaxItems[3]&Array,bar,Array]"
# Reference {"fxo" => []} did not pass type constraint "PatternProperties["f.o",MinItems[2]]"
# "PatternProperties["f.o",MinItems[2]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; foreach my $key (keys %props) { return unless &all(sub { $props{$key}->check($obj->{$_}); } , grep({/$key/;} keys %$_)); } return 1; }
# "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]&PatternProperties["f.o",MinItems[2]]&Properties[foo,MaxItems[3]&Array,bar,Array]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]", "PatternProperties["f.o",MinItems[2]]", and "Properties[foo,MaxItems[3]&Array,bar,Array]"
# Reference {"quux" => "foo"} did not pass type constraint "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]"
# "AdditionalProperties[ARRAY(0x559d1c83af98),Integer]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my(@add_keys) = grep({my $key = $_; &none(sub { ref $_ ? $key =~ /$_/ : $key eq $_; } , @$known_properties);} keys %$_); if (eval { do { $type_or_boolean->can('check') } }) { my $obj = $_; return &all(sub { $type_or_boolean->check($obj->{$_}); } , @add_keys); } else { return !(@add_keys && !$type_or_boolean); } }
# {
# 'properties' => {
# 'bar' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'foo' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# }
# Reference {"bar" => 2} did not pass type constraint "Properties[foo,Any,bar,None]"
# "Properties[foo,Any,bar,None]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# Reference {"bar" => 2,"foo" => 1} did not pass type constraint "Properties[foo,Any,bar,None]"
# "Properties[foo,Any,bar,None]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# 'maxProperties' => 2
# }
# Reference {"bar" => 2,"baz" => 3,"foo" => 1} did not pass type constraint "MaxProperties[2]"
# "MaxProperties[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $nbr >= keys %$_ unless not Object->check($_); }
# {
# 'anyOf' => [
# {
# 'type' => 'integer'
# },
# {
# 'minimum' => 2
# }
# ]
# }
# Value "1.5" did not pass type constraint "AnyOf[Integer,Minimum[2]]"
# "AnyOf[Integer,Minimum[2]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# {
# 'anyOf' => [
# {
# 'maxLength' => 2
# },
# {
# 'minLength' => 4
# }
# ],
# 'type' => 'string'
# }
# "AnyOf[MaxLength[2],MinLength[4]]&String" requires that the value pass "AnyOf[MaxLength[2],MinLength[4]]" and "String"
# Value "3" did not pass type constraint "String"
# "String" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 16384; }
# "AnyOf[MaxLength[2],MinLength[4]]&String" requires that the value pass "AnyOf[MaxLength[2],MinLength[4]]" and "String"
# Value "foo" did not pass type constraint "AnyOf[MaxLength[2],MinLength[4]]"
# "AnyOf[MaxLength[2],MinLength[4]]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# {
# 'anyOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# $VAR1->{'anyOf'}[0]
# ]
# }
# {
# 'anyOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# ]
# }
# {
# 'anyOf' => [
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# $VAR1->{'anyOf'}[0]
# ]
# }
# Value "foo" did not pass type constraint "AnyOf[None,None]"
# "AnyOf[None,None]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; &any(sub { $_->check($v); } , @types); }
# {
# 'pattern' => '^a*$'
# }
# Value "abc" did not pass type constraint "Pattern["^a*\$"]"
# "Pattern["^a*\$"]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; /$regex/ unless not String->check($_); }
# {
# 'pattern' => 'a+'
# }
# {
# 'enum' => [
# 1,
# 2,
# 3
# ]
# }
# Value "4" did not pass type constraint "Enum[1,2,3]"
# "Enum[1,2,3]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# {
# 'enum' => [
# 6,
# 'foo',
# [],
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# {
# 'foo' => 12
# }
# ]
# }
# Undef did not pass type constraint "Enum[6,foo,ARRAY(0x559d1c86c880),1,HASH(0x559d1c8aa3e0)]"
# "Enum[6,foo,ARRAY(0x559d1c86c880),1,HASH(0x559d1c8aa3e0)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# Reference {"foo" => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )} did not pass type constraint "Enum[6,foo,ARRAY(0x559d1c86c880),1,HASH(0x559d1c8aa3e0)]"
# "Enum[6,foo,ARRAY(0x559d1c86c880),1,HASH(0x559d1c8aa3e0)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# {
# 'properties' => {
# 'bar' => {
# 'enum' => [
# 'bar'
# ]
# },
# 'foo' => {
# 'enum' => [
# 'foo'
# ]
# }
# },
# 'required' => [
# 'bar'
# ],
# 'type' => 'object'
# }
# "Properties[bar,Enum[bar],foo,Enum[foo]]&Required[bar]&Object" requires that the value pass "Object", "Properties[bar,Enum[bar],foo,Enum[foo]]", and "Required[bar]"
# Reference {"foo" => "foo"} did not pass type constraint "Required[bar]"
# "Required[bar]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; &all(sub { exists $obj->{$_}; } , @keys); }
# "Properties[bar,Enum[bar],foo,Enum[foo]]&Required[bar]&Object" requires that the value pass "Object", "Properties[bar,Enum[bar],foo,Enum[foo]]", and "Required[bar]"
# Reference {} did not pass type constraint "Required[bar]"
# "Required[bar]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; &all(sub { exists $obj->{$_}; } , @keys); }
# {
# 'propertyNames' => {
# 'maxLength' => 3
# }
# }
# Reference {"foo" => {},"foobar" => {}} did not pass type constraint "PropertyNames[MaxLength[3]]"
# "PropertyNames[MaxLength[3]]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 if $type eq Any; return !keys(%$_) if $type eq ~Any; return &all(sub { $type->check($_); } , keys %$_); }
# {
# 'propertyNames' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# {
# 'propertyNames' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# }
# Reference {"foo" => 1} did not pass type constraint "PropertyNames[None]"
# "PropertyNames[None]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 if $type eq Any; return !keys(%$_) if $type eq ~Any; return &all(sub { $type->check($_); } , keys %$_); }
# {
# '$ref' => 'http://json-schema.org/draft-04/schema#'
# }
# {
# '$ref' => 'http://json-schema.org/draft-04/schema#'
# }
# ref schema is {"type":"object","default":{},"dependencies":{"exclusiveMinimum":["minimum"],"exclusiveMaximum":["maximum"]},"definitions":{"stringArray":{"uniqueItems":true,"minItems":1,"type":"array","items":{"type":"string"}},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"positiveInteger":{"minimum":0,"type":"integer"},"schemaArray":{"items":{"$ref":"#"},"type":"array","minItems":1}},"description":"Core schema meta-schema","$schema":"http://json-schema.org/draft-04/schema#","id":"http://json-schema.org/draft-04/schema#","properties":{"dependencies":{"additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]},"type":"object","properties":{},"patternProperties":{}},"enum":{"uniqueItems":true,"minItems":1,"type":"array"},"default":{},"uniqueItems":{"default":false,"type":"boolean"},"not":{"$ref":"#"},"patternProperties":{"patternProperties":{},"properties":{},"default":{},"type":"object","additionalProperties":{"$ref":"#"}},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"title":{"type":"string"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"properties":{"properties":{},"patternProperties":{},"additionalProperties":{"$ref":"#"},"default":{},"type":"object"},"id":{"type":"string","format":"uri"},"exclusiveMaximum":{"default":false,"type":"boolean"},"definitions":{"type":"object","default":{},"additionalProperties":{"$ref":"#"},"patternProperties":{},"properties":{}},"maxLength":{"$ref":"#/definitions/positiveInteger"},"description":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"required":{"$ref":"#/definitions/stringArray"},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"additionalItems":{"default":{},"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"anyOf":{"$ref":"#/definitions/schemaArray"},"minimum":{"type":"number"},"maxItems":{"$ref":"#/definitions/positiveInteger"},"pattern":{"type":"string","format":"regex"},"maximum":{"type":"number"},"$schema":{"format":"uri","type":"string"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"exclusiveMinimum":{"type":"boolean","default":false},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"uniqueItems":true,"minItems":1}]},"oneOf":{"$ref":"#/definitions/schemaArray"},"multipleOf":{"type":"number","exclusiveMinimum":true,"minimum":0}}}
# "Dependency[exclusiveMaximum,ARRAY(0x559d1bdc51e0)]&Dependency[exclusiveMinimum,ARRAY(0x559d1bcf5c10)]&Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]&Object" requires that the value pass "Dependency[exclusiveMaximum,ARRAY(0x559d1bdc51e0)]", "Dependency[exclusiveMinimum,ARRAY(0x559d1bcf5c10)]", "Object", and "Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]"
# Reference {"definitions" => {"foo" => 'HASH(0x559d1c891318)'}} did not pass type constraint "Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]"
# "Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# "Ref(http://json-schema.org/draft-04/schema#)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# 'contains' => {
# 'minimum' => 5
# }
# }
# Reference [2,3,4] did not pass type constraint "Contains[Minimum[5]]"
# "Contains[Minimum[5]]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Array->check($_); if (Boolean->check($type)) { (); } return &any(sub { $type->check($_); } , @$_); }
# Reference [] did not pass type constraint "Contains[Minimum[5]]"
# "Contains[Minimum[5]]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Array->check($_); if (Boolean->check($type)) { (); } return &any(sub { $type->check($_); } , @$_); }
# {
# 'contains' => {
# 'const' => 5
# }
# }
# Reference [1,2,3,4] did not pass type constraint "Contains[Enum[5]]"
# "Contains[Enum[5]]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Array->check($_); if (Boolean->check($type)) { (); } return &any(sub { $type->check($_); } , @$_); }
# {
# 'contains' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# Reference [] did not pass type constraint "Contains[Any]"
# "Contains[Any]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Array->check($_); if (Boolean->check($type)) { (); } return &any(sub { $type->check($_); } , @$_); }
# {
# 'contains' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# }
# Reference ["foo"] did not pass type constraint "Contains[None]"
# "Contains[None]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Array->check($_); if (Boolean->check($type)) { (); } return &any(sub { $type->check($_); } , @$_); }
# Reference [] did not pass type constraint "Contains[None]"
# "Contains[None]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Array->check($_); if (Boolean->check($type)) { (); } return &any(sub { $type->check($_); } , @$_); }
# {
# 'minimum' => '1.1'
# }
# Value "0.6" did not pass type constraint "Minimum["1.1"]"
# "Minimum["1.1"]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $_ >= $minimum unless not Number->check($_); }
# {
# 'properties' => {
# 'bar' => {},
# 'foo' => {}
# },
# 'required' => [
# 'foo'
# ]
# }
# "Properties[foo,Any,bar,Any]&Required[foo]" requires that the value pass "Properties[foo,Any,bar,Any]" and "Required[foo]"
# Reference {"bar" => 1} did not pass type constraint "Required[foo]"
# "Required[foo]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my $obj = $_; &all(sub { exists $obj->{$_}; } , @keys); }
# {
# 'properties' => {
# 'foo' => {}
# }
# }
# {
# 'properties' => {
# 'foo' => {}
# },
# 'required' => []
# }
# {
# 'const' => 2
# }
# Value "5" did not pass type constraint "Enum[2]"
# "Enum[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# Value "a" did not pass type constraint "Enum[2]"
# "Enum[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# {
# 'const' => {
# 'baz' => 'bax',
# 'foo' => 'bar'
# }
# }
# Reference {"foo" => "bar"} did not pass type constraint "Enum[HASH(0x559d1c8b6370)]"
# "Enum[HASH(0x559d1c8b6370)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# Reference [1,2] did not pass type constraint "Enum[HASH(0x559d1c8b6370)]"
# "Enum[HASH(0x559d1c8b6370)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# {
# 'const' => undef
# }
# Value "0" did not pass type constraint "Enum[undef]"
# "Enum[undef]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $j = $_; &any(sub { same_structs($_, $j); } , @items); }
# {
# 'additionalItems' => {
# 'type' => 'integer'
# },
# 'items' => [
# {}
# ]
# }
#
# {
# 'additionalItems' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'items' => {}
# }
# {
# 'additionalItems' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'items' => [
# {},
# {},
# {}
# ]
# }
# "AdditionalItems[3]&~ArrayRef|Tuple[Optional[Any],Optional[Any],Optional[Any],Slurpy[Any]]" requires that the value pass "AdditionalItems[3]" and "~ArrayRef|Tuple[Optional[Any],Optional[Any],Optional[Any],Slurpy[Any]]"
# Reference [1,2,3,4] did not pass type constraint "AdditionalItems[3]"
# "AdditionalItems[3]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; @$_ <= $size; }
# {
# 'additionalItems' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# }
# {
# 'items' => [
# {
# 'type' => 'integer'
# }
# ]
# }
# {
# 'dependencies' => {
# 'bar' => [
# 'foo'
# ]
# }
# }
# Reference {"bar" => 2} did not pass type constraint "Dependency[bar,ARRAY(0x559d1c8d7110)]"
# "Dependency[bar,ARRAY(0x559d1c8d7110)]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# {
# 'dependencies' => {
# 'bar' => []
# }
# }
# {
# 'dependencies' => {
# 'quux' => [
# 'foo',
# 'bar'
# ]
# }
# }
# Reference {"foo" => 1,"quux" => 2} did not pass type constraint "Dependency[quux,ARRAY(0x559d1c8aecd0)]"
# "Dependency[quux,ARRAY(0x559d1c8aecd0)]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# Reference {"bar" => 1,"quux" => 2} did not pass type constraint "Dependency[quux,ARRAY(0x559d1c8aecd0)]"
# "Dependency[quux,ARRAY(0x559d1c8aecd0)]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# Reference {"quux" => 1} did not pass type constraint "Dependency[quux,ARRAY(0x559d1c8aecd0)]"
# "Dependency[quux,ARRAY(0x559d1c8aecd0)]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# {
# 'dependencies' => {
# 'bar' => {
# 'properties' => {
# 'bar' => {
# 'type' => 'integer'
# },
# 'foo' => {
# 'type' => 'integer'
# }
# }
# }
# }
# }
# Reference {"bar" => 2,"foo" => "quux"} did not pass type constraint "Dependency[bar,__ANON__]"
# "Dependency[bar,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# Reference {"bar" => "quux","foo" => 2} did not pass type constraint "Dependency[bar,__ANON__]"
# "Dependency[bar,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# Reference {"bar" => "quux","foo" => "quux"} did not pass type constraint "Dependency[bar,__ANON__]"
# "Dependency[bar,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# {
# 'dependencies' => {
# 'bar' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'foo' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# }
# "Dependency[foo,__ANON__]&Dependency[bar,__ANON__]" requires that the value pass "Dependency[bar,__ANON__]" and "Dependency[foo,__ANON__]"
# Reference {"bar" => 2} did not pass type constraint "Dependency[bar,__ANON__]"
# "Dependency[bar,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# "Dependency[foo,__ANON__]&Dependency[bar,__ANON__]" requires that the value pass "Dependency[bar,__ANON__]" and "Dependency[foo,__ANON__]"
# Reference {"bar" => 2,"foo" => 1} did not pass type constraint "Dependency[bar,__ANON__]"
# "Dependency[bar,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft6::Types; return 1 unless Object->check($_); return 1 unless exists $_->{$property}; my $obj = $_; return &all(sub { exists $obj->{$_}; } , @$dep) if ref $dep eq 'ARRAY'; return exists $obj->{$dep} unless ref $dep; return $dep->check($_); }
# {
# 'exclusiveMinimum' => '1.1'
# }
# Value "1.1" did not pass type constraint "ExclusiveMinimum["1.1"]"
# "ExclusiveMinimum["1.1"]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $_ > $minimum unless not StrictNum->check($_); }
# Value "0.6" did not pass type constraint "ExclusiveMinimum["1.1"]"
# "ExclusiveMinimum["1.1"]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $_ > $minimum unless not StrictNum->check($_); }
# {
# 'additionalProperties' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# 'patternProperties' => {},
# 'properties' => {
# 'foo' => {
# '$ref' => '#'
# }
# }
# }
# "AdditionalProperties[ARRAY(0x559d1c870628),0]&PatternProperties[]&Properties[foo,Ref(#)]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c870628),0]", "PatternProperties[]", and "Properties[foo,Ref(#)]"
# Reference {"bar" => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )} did not pass type constraint "AdditionalProperties[ARRAY(0x559d1c870628),0]"
# "AdditionalProperties[ARRAY(0x559d1c870628),0]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); my(@add_keys) = grep({my $key = $_; &none(sub { ref $_ ? $key =~ /$_/ : $key eq $_; } , @$known_properties);} keys %$_); if (eval { do { $type_or_boolean->can('check') } }) { my $obj = $_; return &all(sub { $type_or_boolean->check($obj->{$_}); } , @add_keys); } else { return !(@add_keys && !$type_or_boolean); } }
# "AdditionalProperties[ARRAY(0x559d1c870628),0]&PatternProperties[]&Properties[foo,Ref(#)]" requires that the value pass "AdditionalProperties[ARRAY(0x559d1c870628),0]", "PatternProperties[]", and "Properties[foo,Ref(#)]"
# Reference {"foo" => {"bar" => '0'}} did not pass type constraint "Properties[foo,Ref(#)]"
# "Properties[foo,Ref(#)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# 'properties' => {
# 'bar' => {
# '$ref' => '#/properties/foo'
# },
# 'foo' => {
# 'type' => 'integer'
# }
# }
# }
# Reference {"bar" => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )} did not pass type constraint "Properties[bar,Ref(#/properties/foo),foo,Integer]"
# "Properties[bar,Ref(#/properties/foo),foo,Integer]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# 'items' => [
# {
# 'type' => 'integer'
# },
# {
# '$ref' => '#/items/0'
# }
# ]
# }
# "~ArrayRef|Tuple[Optional[Integer],Optional[Ref(#/items/0)],Slurpy[Any]]" requires that the value pass "Tuple[Optional[Integer],Optional[Ref(#/items/0)],Slurpy[Any]]" or "~ArrayRef"
# Reference [1,"foo"] did not pass type constraint "~ArrayRef"
# Reference [1,"foo"] did not pass type constraint "~ArrayRef"
# "~ArrayRef" is defined as: (not((ref($_) eq 'ARRAY')))
# Reference [1,"foo"] did not pass type constraint "Tuple[Optional[Integer],Optional[Ref(#/items/0)],Slurpy[Any]]"
# Reference [1,"foo"] did not pass type constraint "Tuple[Optional[Integer],Optional[Ref(#/items/0)],Slurpy[Any]]"
# "Tuple[Optional[Integer],Optional[Ref(#/items/0)],Slurpy[Any]]" constrains value at index 1 of array with "Optional[Ref(#/items/0)]"
# Value "foo" did not pass type constraint "Optional[Ref(#/items/0)]" (in $_->[1])
# $_->[1] exists
# "Optional[Ref(#/items/0)]" constrains $_->[1] with "Ref(#/items/0)" if it exists
# ref schema is {"type":"integer"}
# Value "foo" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); } (in $_->[1])
# "Ref(#/items/0)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# 'percent%field' => {
# 'type' => 'integer'
# },
# 'properties' => {
# 'percent' => {
# '$ref' => '#/percent%25field'
# },
# 'slash' => {
# '$ref' => '#/slash~1field'
# },
# 'tilda' => {
# '$ref' => '#/tilda~0field'
# }
# },
# 'slash/field' => {
# 'type' => 'integer'
# },
# 'tilda~field' => {
# 'type' => 'integer'
# }
# }
# Reference {"slash" => "aoeu"} did not pass type constraint "Properties[tilda,Ref(#/tilda~0field),percent,Ref(#/percent%25field),slash,Ref(#/slash~1field)]"
# "Properties[tilda,Ref(#/tilda~0field),percent,Ref(#/percent%25field),slash,Ref(#/slash~1field)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# Reference {"tilda" => "aoeu"} did not pass type constraint "Properties[tilda,Ref(#/tilda~0field),percent,Ref(#/percent%25field),slash,Ref(#/slash~1field)]"
# "Properties[tilda,Ref(#/tilda~0field),percent,Ref(#/percent%25field),slash,Ref(#/slash~1field)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# Reference {"percent" => "aoeu"} did not pass type constraint "Properties[tilda,Ref(#/tilda~0field),percent,Ref(#/percent%25field),slash,Ref(#/slash~1field)]"
# "Properties[tilda,Ref(#/tilda~0field),percent,Ref(#/percent%25field),slash,Ref(#/slash~1field)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# '$ref' => '#/definitions/c',
# 'definitions' => {
# 'a' => {
# 'type' => 'integer'
# },
# 'b' => {
# '$ref' => '#/definitions/a'
# },
# 'c' => {
# '$ref' => '#/definitions/b'
# }
# }
# }
# ref schema is {"$ref":"#/definitions/b"}
# ref schema is {"$ref":"#/definitions/a"}
# ref schema is {"type":"integer"}
# Value "a" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# "Ref(#/definitions/a)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# "Ref(#/definitions/b)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# "Ref(#/definitions/c)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# 'definitions' => {
# 'reffed' => {
# 'type' => 'array'
# }
# },
# 'properties' => {
# 'foo' => {
# '$ref' => '#/definitions/reffed',
# 'maxItems' => 2
# }
# }
# }
# Reference {"foo" => "string"} did not pass type constraint "Properties[foo,Ref(#/definitions/reffed)]"
# "Properties[foo,Ref(#/definitions/reffed)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# '$ref' => 'http://json-schema.org/draft-04/schema#'
# }
# ref schema is {"type":"object","default":{},"dependencies":{"exclusiveMinimum":["minimum"],"exclusiveMaximum":["maximum"]},"definitions":{"stringArray":{"uniqueItems":true,"minItems":1,"type":"array","items":{"type":"string"}},"positiveIntegerDefault0":{"allOf":[{"$ref":"#/definitions/positiveInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"positiveInteger":{"minimum":0,"type":"integer"},"schemaArray":{"items":{"$ref":"#"},"type":"array","minItems":1}},"description":"Core schema meta-schema","$schema":"http://json-schema.org/draft-04/schema#","id":"http://json-schema.org/draft-04/schema#","properties":{"dependencies":{"additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]},"type":"object","properties":{},"patternProperties":{}},"enum":{"uniqueItems":true,"minItems":1,"type":"array"},"default":{},"uniqueItems":{"default":false,"type":"boolean"},"not":{"$ref":"#"},"patternProperties":{"patternProperties":{},"properties":{},"default":{},"type":"object","additionalProperties":{"$ref":"#"}},"additionalProperties":{"anyOf":[{"type":"boolean"},{"$ref":"#"}],"default":{}},"title":{"type":"string"},"minLength":{"$ref":"#/definitions/positiveIntegerDefault0"},"properties":{"properties":{},"patternProperties":{},"additionalProperties":{"$ref":"#"},"default":{},"type":"object"},"id":{"type":"string","format":"uri"},"exclusiveMaximum":{"default":false,"type":"boolean"},"definitions":{"type":"object","default":{},"additionalProperties":{"$ref":"#"},"patternProperties":{},"properties":{}},"maxLength":{"$ref":"#/definitions/positiveInteger"},"description":{"type":"string"},"allOf":{"$ref":"#/definitions/schemaArray"},"required":{"$ref":"#/definitions/stringArray"},"maxProperties":{"$ref":"#/definitions/positiveInteger"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":{}},"minProperties":{"$ref":"#/definitions/positiveIntegerDefault0"},"additionalItems":{"default":{},"anyOf":[{"type":"boolean"},{"$ref":"#"}]},"anyOf":{"$ref":"#/definitions/schemaArray"},"minimum":{"type":"number"},"maxItems":{"$ref":"#/definitions/positiveInteger"},"pattern":{"type":"string","format":"regex"},"maximum":{"type":"number"},"$schema":{"format":"uri","type":"string"},"minItems":{"$ref":"#/definitions/positiveIntegerDefault0"},"exclusiveMinimum":{"type":"boolean","default":false},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"uniqueItems":true,"minItems":1}]},"oneOf":{"$ref":"#/definitions/schemaArray"},"multipleOf":{"type":"number","exclusiveMinimum":true,"minimum":0}}}
# "Dependency[exclusiveMaximum,ARRAY(0x559d1bdc51e0)]&Dependency[exclusiveMinimum,ARRAY(0x559d1bcf5c10)]&Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]&Object" requires that the value pass "Dependency[exclusiveMaximum,ARRAY(0x559d1bdc51e0)]", "Dependency[exclusiveMinimum,ARRAY(0x559d1bcf5c10)]", "Object", and "Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]"
# Reference {"minLength" => -1} did not pass type constraint "Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]"
# "Properties[dependencies,AdditionalProperties[ARRAY(0x559d1bdc4bc8),AnyOf[Ref(#),Ref(#/definitions/stringArray)]]&PatternProperties[]&Properties[]&Object,enum,MinItems[1]&Array&UniqueItems,default,Any,uniqueItems,Boolean,not,Ref(#),patternProperties,AdditionalProperties[ARRAY(0x559d1bfee7a0),Ref(#)]&PatternProperties[]&Properties[]&Object,additionalProperties,AnyOf[Boolean,Ref(#)],title,String,minLength,Ref(#/definitions/positiveIntegerDefault0),properties,AdditionalProperties[ARRAY(0x559d1c050c00),Ref(#)]&PatternProperties[]&Properties[]&Object,id,String,exclusiveMaximum,Boolean,definitions,AdditionalProperties[ARRAY(0x559d1c059608),Ref(#)]&PatternProperties[]&Properties[]&Object,maxLength,Ref(#/definitions/positiveInteger),description,String,allOf,Ref(#/definitions/schemaArray),required,Ref(#/definitions/stringArray),maxProperties,Ref(#/definitions/positiveInteger),items,AnyOf[Ref(#),Ref(#/definitions/schemaArray)],minProperties,Ref(#/definitions/positiveIntegerDefault0),additionalItems,AnyOf[Boolean,Ref(#)],anyOf,Ref(#/definitions/schemaArray),minimum,Number,maxItems,Ref(#/definitions/positiveInteger),pattern,String,maximum,Number,"\$schema",String,minItems,Ref(#/definitions/positiveIntegerDefault0),exclusiveMinimum,Boolean,type,AnyOf[Ref(#/definitions/simpleTypes),~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(#/definitions/simpleTypes)]]]&MinItems[1]&Array&UniqueItems],oneOf,Ref(#/definitions/schemaArray),multipleOf,ExclusiveMinimum[0]&Number]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# "Ref(http://json-schema.org/draft-04/schema#)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# 'properties' => {
# '$ref' => {
# 'type' => 'string'
# }
# }
# }
# Reference {"\$ref" => 2} did not pass type constraint "Properties["\$ref",String]"
# "Properties["\$ref",String]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# '$ref' => '#/definitions/bool',
# 'definitions' => {
# 'bool' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# }
# {
# '$ref' => '#/definitions/bool',
# 'definitions' => {
# 'bool' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# }
# }
# ref schema is false
# Value "foo" did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# "Ref(#/definitions/bool)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# '$id' => 'http://localhost:1234/tree',
# 'definitions' => {
# 'node' => {
# '$id' => 'http://localhost:1234/node',
# 'description' => 'node',
# 'properties' => {
# 'subtree' => {
# '$ref' => 'tree'
# },
# 'value' => {
# 'type' => 'number'
# }
# },
# 'required' => [
# 'value'
# ],
# 'type' => 'object'
# }
# },
# 'description' => 'tree of nodes',
# 'properties' => {
# 'meta' => {
# 'type' => 'string'
# },
# 'nodes' => {
# 'items' => {
# '$ref' => 'node'
# },
# 'type' => 'array'
# }
# },
# 'required' => [
# 'meta',
# 'nodes'
# ],
# 'type' => 'object'
# }
# "Properties[meta,String,nodes,~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(node)]]]&Array]&Required[meta,nodes]&Object" requires that the value pass "Object", "Properties[meta,String,nodes,~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(node)]]]&Array]", and "Required[meta,nodes]"
# Reference {"meta" => "root","nodes" => ['HASH(0x559d1c8df9d0)','HASH(0...} did not pass type constraint "Properties[meta,String,nodes,~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(node)]]]&Array]"
# "Properties[meta,String,nodes,~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(node)]]]&Array]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# 'uniqueItems' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# }
# Reference [1,1] did not pass type constraint "UniqueItems"
# "UniqueItems" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Array->check($_); @$_ == uniq(map({to_json $_, {'allow_nonref', 1};} @$_)); }
# Reference [1,1,1] did not pass type constraint "UniqueItems"
# "UniqueItems" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Array->check($_); @$_ == uniq(map({to_json $_, {'allow_nonref', 1};} @$_)); }
# Reference [{"foo" => "bar"},{"foo" => "bar"}] did not pass type constraint "UniqueItems"
# "UniqueItems" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Array->check($_); @$_ == uniq(map({to_json $_, {'allow_nonref', 1};} @$_)); }
# Reference [{"foo" => 'HASH(0x559d1ca1bbe0)'},{"foo" => 'HASH(0x559d1c8c3c78)'}] did not pass type constraint "UniqueItems"
# "UniqueItems" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Array->check($_); @$_ == uniq(map({to_json $_, {'allow_nonref', 1};} @$_)); }
# Reference [["foo"],["foo"]] did not pass type constraint "UniqueItems"
# "UniqueItems" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Array->check($_); @$_ == uniq(map({to_json $_, {'allow_nonref', 1};} @$_)); }
# Reference [{},[1],bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),undef,{},1] did not pass type constraint "UniqueItems"
# "UniqueItems" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Array->check($_); @$_ == uniq(map({to_json $_, {'allow_nonref', 1};} @$_)); }
# {
# 'properties' => {
# 'foo' => {
# 'default' => [],
# 'type' => 'integer'
# }
# }
# }
# {
# 'properties' => {
# 'bar' => {
# 'default' => 'bad',
# 'minLength' => 4,
# 'type' => 'string'
# }
# }
# }
# {
# 'oneOf' => [
# {
# 'type' => 'integer'
# },
# {
# 'minimum' => 2
# }
# ]
# }
# Value "3" did not pass type constraint "OneOf[__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# Value "1.5" did not pass type constraint "OneOf[__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# {
# 'oneOf' => [
# {
# 'minLength' => 2
# },
# {
# 'maxLength' => 4
# }
# ],
# 'type' => 'string'
# }
# "OneOf[__ANON__,__ANON__]&String" requires that the value pass "OneOf[__ANON__,__ANON__]" and "String"
# Value "3" did not pass type constraint "OneOf[__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# "OneOf[__ANON__,__ANON__]&String" requires that the value pass "OneOf[__ANON__,__ANON__]" and "String"
# Value "foo" did not pass type constraint "OneOf[__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# {
# 'oneOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# $VAR1->{'oneOf'}[0],
# $VAR1->{'oneOf'}[0]
# ]
# }
# Value "foo" did not pass type constraint "OneOf[__ANON__,__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# {
# 'oneOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# $VAR1->{'oneOf'}[1]
# ]
# }
# {
# 'oneOf' => [
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ),
# $VAR1->{'oneOf'}[0],
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# ]
# }
# Value "foo" did not pass type constraint "OneOf[__ANON__,__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# {
# 'oneOf' => [
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
# $VAR1->{'oneOf'}[0],
# $VAR1->{'oneOf'}[0]
# ]
# }
# Value "foo" did not pass type constraint "OneOf[__ANON__,__ANON__,__ANON__]"
# "OneOf[__ANON__,__ANON__,__ANON__]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; my $v = $_; 1 == grep({$_->check($v);} @types); }
# {
# 'maxItems' => 2
# }
# Reference [1,2,3] did not pass type constraint "MaxItems[2]"
# "MaxItems[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; @$_ <= $max unless ref $_ ne 'ARRAY'; }
# {
# 'minProperties' => 1
# }
# Reference {} did not pass type constraint "MinProperties[1]"
# "MinProperties[1]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $nbr <= scalar keys %$_ unless not Object->check($_); }
# bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
# bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' )
# Value "1" did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Value "foo" did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Reference bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' ) did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Reference bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ) did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Undef did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Reference {"foo" => "bar"} did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Reference {} did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Reference ["foo"] did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# Reference [] did not pass type constraint "None"
# "None" is defined as: (not((!!1)))
# {
# 'minLength' => 2
# }
# Value "f" did not pass type constraint "MinLength[2]"
# "MinLength[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $length <= length $_ unless not String->check($_); }
# Value "\x{1f4a9}" did not pass type constraint "MinLength[2]"
# "MinLength[2]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; $length <= length $_ unless not String->check($_); }
# {
# '$ref' => 'http://localhost:1234/integer.json'
# }
# ref schema is {"type":"integer"}
# Value "a" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# "Ref(http://localhost:1234/integer.json)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# '$ref' => 'http://localhost:1234/subSchemas.json#/integer'
# }
# ref schema is {"type":"integer"}
# Value "a" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# "Ref(http://localhost:1234/subSchemas.json#/integer)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# '$ref' => 'http://localhost:1234/subSchemas.json#/refToInteger'
# }
# ref schema is {"$ref":"#/integer"}
# ref schema is {"type":"integer"}
# Value "a" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); }
# "Ref(#/integer)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# "Ref(http://localhost:1234/subSchemas.json#/refToInteger)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# '$id' => 'http://localhost:1234/',
# 'items' => {
# '$id' => 'folder/',
# 'items' => {
# '$ref' => 'folderInteger.json'
# }
# }
# }
# "~ArrayRef|Tuple[Slurpy[ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]]]" requires that the value pass "Tuple[Slurpy[ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]]]" or "~ArrayRef"
# Reference [["a"]] did not pass type constraint "~ArrayRef"
# Reference [["a"]] did not pass type constraint "~ArrayRef"
# "~ArrayRef" is defined as: (not((ref($_) eq 'ARRAY')))
# Reference [["a"]] did not pass type constraint "Tuple[Slurpy[ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]]]"
# Reference [["a"]] did not pass type constraint "Tuple[Slurpy[ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]]]"
# Array elements from index 0 are slurped into a arrayref which is constrained with "ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]"
# Reference [["a"]] did not pass type constraint "ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]" (in $SLURPY)
# "ArrayRef[~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]]" constrains each value in the array with "~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]"
# "~ArrayRef|Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]" requires that the value pass "Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]" or "~ArrayRef"
# Reference ["a"] did not pass type constraint "~ArrayRef"
# Reference ["a"] did not pass type constraint "~ArrayRef"
# "~ArrayRef" is defined as: (not((ref($_) eq 'ARRAY')))
# Reference ["a"] did not pass type constraint "Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]"
# Reference ["a"] did not pass type constraint "Tuple[Slurpy[ArrayRef[Ref(folderInteger.json)]]]"
# Array elements from index 0 are slurped into a arrayref which is constrained with "ArrayRef[Ref(folderInteger.json)]"
# Reference ["a"] did not pass type constraint "ArrayRef[Ref(folderInteger.json)]" (in $SLURPY)
# "ArrayRef[Ref(folderInteger.json)]" constrains each value in the array with "Ref(folderInteger.json)"
# ref schema is {"type":"integer"}
# Value "a" did not pass type constraint "Integer"
# "Integer" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 0 if not defined $_ or ref $_; my $b_obj = B::svref_2object(\$_); my $flags = $b_obj->FLAGS; return $flags & 4096 && !($flags & 16384); } (in $SLURPY->[0])
# "Ref(folderInteger.json)" is defined as: sub { package JSON::Schema::AsType::Draft4; my $r = $self->resolve_reference($ref); $r->check($_); }
# {
# '$id' => 'http://localhost:1234/scope_change_defs1.json',
# 'definitions' => {
# 'baz' => {
# '$id' => 'folder/',
# 'items' => {
# '$ref' => 'folderInteger.json'
# },
# 'type' => 'array'
# }
# },
# 'properties' => {
# 'list' => {
# '$ref' => '#/definitions/baz'
# }
# },
# 'type' => 'object'
# }
# "Properties[list,Ref(#/definitions/baz)]&Object" requires that the value pass "Object" and "Properties[list,Ref(#/definitions/baz)]"
# Reference {"list" => ["a"]} did not pass type constraint "Properties[list,Ref(#/definitions/baz)]"
# "Properties[list,Ref(#/definitions/baz)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# '$id' => 'http://localhost:1234/scope_change_defs2.json',
# 'definitions' => {
# 'baz' => {
# '$id' => 'folder/',
# 'definitions' => {
# 'bar' => {
# 'items' => {
# '$ref' => 'folderInteger.json'
# },
# 'type' => 'array'
# }
# }
# }
# },
# 'properties' => {
# 'list' => {
# '$ref' => '#/definitions/baz/definitions/bar'
# }
# },
# 'type' => 'object'
# }
# "Properties[list,Ref(#/definitions/baz/definitions/bar)]&Object" requires that the value pass "Object" and "Properties[list,Ref(#/definitions/baz/definitions/bar)]"
# Reference {"list" => ["a"]} did not pass type constraint "Properties[list,Ref(#/definitions/baz/definitions/bar)]"
# "Properties[list,Ref(#/definitions/baz/definitions/bar)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
# {
# '$id' => 'http://localhost:1234/object',
# 'properties' => {
# 'name' => {
# '$ref' => 'name.json#/definitions/orNull'
# }
# },
# 'type' => 'object'
# }
# "Properties[name,Ref(name.json#/definitions/orNull)]&Object" requires that the value pass "Object" and "Properties[name,Ref(name.json#/definitions/orNull)]"
# Reference {"name" => {"name" => undef}} did not pass type constraint "Properties[name,Ref(name.json#/definitions/orNull)]"
# "Properties[name,Ref(name.json#/definitions/orNull)]" is defined as: sub { package JSON::Schema::AsType::Draft4::Types; return 1 unless Object->check($_); return $type->check($_); }
t/draft6.t ............. ok
t/recurse.t ............ ok
t/register_uris.t ...... ok
t/schema-coerce.t ...... ok
t/spec-schema.t ........ ok
t/string_number.t ...... ok
# Value "1" did not pass type constraint "Not[Integer]"
t/types_draft3.t ....... ok
# Value "4" did not pass type constraint "Minimum[5]"
# Value "5" did not pass type constraint "ExclusiveMinimum[5]"
# Value "6" did not pass type constraint "Maximum[5]"
# Value "5" did not pass type constraint "ExclusiveMaximum[5]"
# Value "foo" did not pass type constraint "MinLength[5]"
# Value "banana" did not pass type constraint "MaxLength[5]"
# Value "3" did not pass type constraint "MultipleOf[5]"
# Reference [1,2,3] did not pass type constraint "MaxItems[2]"
# Reference [1] did not pass type constraint "MinItems[2]"
Use of uninitialized value in join or string at t/types_draft4.t line 144.
# Value "banana" did not pass type constraint "Null"
# Value "1" did not pass type constraint "Boolean"
# Value "1" did not pass type constraint "Array"
# Reference [] did not pass type constraint "Object"
# Reference [] did not pass type constraint "String"
# Value "1.3" did not pass type constraint "Integer"
# Reference [] did not pass type constraint "Number"
# Value "potato" did not pass type constraint "Pattern[(?^:foo)]"
# Reference {"bar" => 1} did not pass type constraint "Required[foo]"
# Reference {"bar" => 1} did not pass type constraint "Required[foo,bar]"
# Value "1" did not pass type constraint "Not[Integer]"
# Reference {"1" => 2,"3" => 4,"5" => 6} did not pass type constraint "MaxProperties[2]"
# Reference {"1" => 2} did not pass type constraint "MinProperties[2]"
# Value "banana" did not pass type constraint "OneOf[Integer,Boolean]"
# Value "banana" did not pass type constraint "OneOf[MaxLength[7],MaxLength[6]]"
# Value "banana" did not pass type constraint "AnyOf[Integer,Boolean]"
# Value "banana" did not pass type constraint "AllOf[MaxLength[5],MinLength[2]]"
# Reference ["banana"] did not pass type constraint "~ArrayRef|Tuple[Slurpy[ArrayRef[Number]]]"
# Reference [1] did not pass type constraint "AdditionalItems[1,Number]"
# Reference {"foo" => "x"} did not pass type constraint "PatternProperties[f,Number,b,Array]"
# Reference {"foo" => "x"} did not pass type constraint "Dependency[foo,ARRAY(0x563282ef3990)]&Dependency[baz,MaxProperties[2]]"
# Reference {"foo" => "x"} did not pass type constraint "Enum[foo,HASH(0x563282fc1630)]"
# Reference [1,1,2,3] did not pass type constraint "UniqueItems"
# Reference {"foo" => "x"} did not pass type constraint "Properties[foo,Number,bar,Array]"
# Reference {"quux" => "x"} did not pass type constraint "AdditionalProperties[ARRAY(0x563282ef1568),0]"
t/types_draft4.t ....... ok
All tests successful.
Files=13, Tests=139, 20 wallclock secs ( 0.29 usr 0.04 sys + 17.65 cusr 1.36 csys = 19.34 CPU)
Result: PASS
------------------------------
PREREQUISITES
------------------------------
Prerequisite modules loaded:
requires:
Module Need Have
---------------------- -------- --------
Clone 0 0.46
JSON 0 4.10
List::AllUtils 0 0.19
List::MoreUtils 0 0.430
List::Util 0 1.63
LWP::Simple 0 6.77
Moose 0 2.2207
Moose::Role 0 2.2207
Moose::Util 0 2.2207
MooseX::ClassAttribute 0 0.29
MooseX::MungeHas 0 0.011
Path::Tiny 0.062 0.146
perl 5.014000 5.041001
Scalar::Util 0 1.63
strict 0 1.13
Type::Library 0 2.004000
Type::Tiny 0 2.004000
Type::Tiny::Class 0 2.004000
Type::Utils 0 2.004000
Types::Standard 0 2.004000
URI 0 5.28
warnings 0 1.70
build_requires:
Module Need Have
---------------------- -------- --------
Exporter 0 5.78
ExtUtils::MakeMaker 0 7.70
File::Spec 0 3.90
IO::Handle 0 1.55
IPC::Open3 0 1.22
lib 0 0.65
parent 0 0.241
Path::Tiny 0.062 0.146
Test::Deep 0 1.204
Test::Exception 0 0.43
Test::More 0 1.302199
configure_requires:
Module Need Have
---------------------- -------- --------
ExtUtils::MakeMaker 0 7.70
------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------
Environment variables:
AUTOMATED_TESTING = 1
LANG = en_US.UTF-8
PATH = /home/sand/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/perl/bin:/usr/X11/bin
PERL = /tmp/basesmoker-reloperl-aunl/bin/perl
PERL5LIB = /tmp/loop_over_bdir-357344-5O013Z/Sysync-0.38-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Sysync-0.38-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/NoZone-1.3-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/NoZone-1.3-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/triceps-2.1.0-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/triceps-2.1.0-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/CGI-Application-NetNewsIface-0.0204-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/CGI-Application-NetNewsIface-0.0204-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Devel-Required-0.16-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Devel-Required-0.16-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/dta-tokwrap-0.98-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/dta-tokwrap-0.98-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Linux-InitFS-0.2-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Linux-InitFS-0.2-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Dpkg-1.22.6-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Dpkg-1.22.6-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Business-Shipping-DataFiles-1.02-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Business-Shipping-DataFiles-1.02-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/App-oo_modulino_zsh_completion_helper-0.04-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/App-oo_modulino_zsh_completion_helper-0.04-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Net-ISP-Balance-1.31-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Net-ISP-Balance-1.31-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/CORBA-Python-2.66-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/CORBA-Python-2.66-0/blib/lib
PERL5OPT =
PERL5_CPANPLUS_IS_RUNNING = 357353
PERL5_CPAN_IS_RUNNING = 357353
PERL_CANARY_STABILITY_NOPROMPT = 1
PERL_MM_USE_DEFAULT = 1
PERL_USE_UNSAFE_INC = 1
SHELL = /usr/bin/zsh
TERM = screen
Perl special variables (and OS-specific diagnostics, for MSWin32):
$^X = /tmp/basesmoker-reloperl-aunl/bin/perl
$UID/$EUID = 1005 / 1005
$GID = 1005 1005
$EGID = 1005 1005
Perl module toolchain versions installed:
Module Have
------------------- --------
CPAN 2.36
CPAN::Meta 2.150010
Cwd 3.90
ExtUtils::CBuilder 0.280240
ExtUtils::Command 7.70
ExtUtils::Install 2.22
ExtUtils::MakeMaker 7.70
ExtUtils::Manifest 1.75
ExtUtils::ParseXS 3.52
File::Spec 3.90
JSON 4.10
JSON::PP 4.16
Module::Build 0.4234
Module::Signature 0.88
Parse::CPAN::Meta 2.150010
Test2 1.302199
Test::Harness 3.48
Test::More 1.302199
YAML 1.31
YAML::Syck 1.34
version 0.9932
--
Summary of my perl5 (revision 5 version 41 subversion 1) configuration:
Commit id: e9f8aee2bc0fcdce0a13746848aad38c23073ef7
Platform:
osname=linux
osvers=5.4.0-187-generic
archname=x86_64-linux
uname='linux k93focal 5.4.0-187-generic #207-ubuntu smp mon jun 10 08:16:10 utc 2024 x86_64 x86_64 x86_64 gnulinux '
config_args='-Dprefix=/home/sand/src/perl/repoperls/installed-perls/host/k93focal/v5.41.1/b254 -Dmyhostname=k93focal -Dinstallusrbinperl=n -Uversiononly -Dusedevel -des -Ui_db -Dlibswanted=cl pthread socket inet nsl gdbm dbm malloc dl ld sun m crypt sec util c cposix posix ucb BSD gdbm_compat -Uuseithreads -Uuselongdouble -DEBUGGING=both'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='cc'
ccflags ='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
optimize='-O2 -g'
cppflags='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='9.4.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /usr/lib64
libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.31.so
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.31'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
DEBUGGING
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_DEVEL
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Built under linux
Compiled at Jul 3 2024 20:45:20
%ENV:
PERL="/tmp/basesmoker-reloperl-aunl/bin/perl"
PERL5LIB="/tmp/loop_over_bdir-357344-5O013Z/Sysync-0.38-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Sysync-0.38-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/NoZone-1.3-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/NoZone-1.3-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/triceps-2.1.0-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/triceps-2.1.0-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/CGI-Application-NetNewsIface-0.0204-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/CGI-Application-NetNewsIface-0.0204-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Devel-Required-0.16-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Devel-Required-0.16-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/dta-tokwrap-0.98-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/dta-tokwrap-0.98-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Linux-InitFS-0.2-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Linux-InitFS-0.2-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Dpkg-1.22.6-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Dpkg-1.22.6-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Business-Shipping-DataFiles-1.02-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Business-Shipping-DataFiles-1.02-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/App-oo_modulino_zsh_completion_helper-0.04-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/App-oo_modulino_zsh_completion_helper-0.04-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/Net-ISP-Balance-1.31-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/Net-ISP-Balance-1.31-0/blib/lib:/tmp/loop_over_bdir-357344-5O013Z/CORBA-Python-2.66-0/blib/arch:/tmp/loop_over_bdir-357344-5O013Z/CORBA-Python-2.66-0/blib/lib"
PERL5OPT=""
PERL5_CPANPLUS_IS_RUNNING="357353"
PERL5_CPAN_IS_RUNNING="357353"
PERL_CANARY_STABILITY_NOPROMPT="1"
PERL_MM_USE_DEFAULT="1"
PERL_USE_UNSAFE_INC="1"
@INC:
/tmp/loop_over_bdir-357344-5O013Z/Sysync-0.38-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/Sysync-0.38-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/NoZone-1.3-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/NoZone-1.3-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/triceps-2.1.0-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/triceps-2.1.0-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/CGI-Application-NetNewsIface-0.0204-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/CGI-Application-NetNewsIface-0.0204-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/Devel-Required-0.16-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/Devel-Required-0.16-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/dta-tokwrap-0.98-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/dta-tokwrap-0.98-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/Linux-InitFS-0.2-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/Linux-InitFS-0.2-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/Dpkg-1.22.6-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/Dpkg-1.22.6-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/Business-Shipping-DataFiles-1.02-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/Business-Shipping-DataFiles-1.02-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/App-oo_modulino_zsh_completion_helper-0.04-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/App-oo_modulino_zsh_completion_helper-0.04-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/Net-ISP-Balance-1.31-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/Net-ISP-Balance-1.31-0/blib/lib
/tmp/loop_over_bdir-357344-5O013Z/CORBA-Python-2.66-0/blib/arch
/tmp/loop_over_bdir-357344-5O013Z/CORBA-Python-2.66-0/blib/lib
/home/sand/src/perl/repoperls/installed-perls/host/k93focal/v5.41.1/b254/lib/site_perl/5.41.1/x86_64-linux
/home/sand/src/perl/repoperls/installed-perls/host/k93focal/v5.41.1/b254/lib/site_perl/5.41.1
/home/sand/src/perl/repoperls/installed-perls/host/k93focal/v5.41.1/b254/lib/5.41.1/x86_64-linux
/home/sand/src/perl/repoperls/installed-perls/host/k93focal/v5.41.1/b254/lib/5.41.1
.