| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | package JSON::Schema::Draft201909; # git description: v0.129-5-g0e1dd16 | ||
| 4 | # vim: set ts=8 sts=2 sw=2 tw=100 et : | ||
| 5 | # ABSTRACT: (DEPRECATED) Validate data against a schema | ||
| 6 | # KEYWORDS: JSON Schema data validation structure specification | ||
| 7 | |||
| 8 | our $VERSION = '0.130'; | ||
| 9 | |||
| 10 | use 5.016; # for fc, unicode_strings features | ||
| 11 | no if "$]" >= 5.031009, feature => 'indirect'; | ||
| 12 | no if "$]" >= 5.033001, feature => 'multidimensional'; | ||
| 13 | no if "$]" >= 5.033006, feature => 'bareword_filehandles'; | ||
| 14 | use strictures 2; | ||
| 15 | use Moo; | ||
| 16 | use namespace::clean; | ||
| 17 | |||
| 18 | extends 'JSON::Schema::Modern'; | ||
| 19 | |||
| 20 | around BUILDARGS => sub { | ||
| 21 | my ($orig, $class, @args) = @_; | ||
| 22 | |||
| 23 | return $class->$orig( | ||
| 24 | @args == 1 && ref $args[0] eq 'HASH' ? %{$args[0]} : @args, | ||
| 25 | specification_version => 'draft2019-09', | ||
| 26 | ); | ||
| 27 | }; | ||
| 28 | |||
| 29 | 1; | ||
| 30 | |||
| 31 | __END__ |