$schema = read_yaml($schema);
} else {
$schema = read_json($schema);
}
}
$self->{schema} = PICA::Schema->new(check_h
use Catmandu qw(importer);
my $validator = Catmandu::Validator::PICA->new( schema => 'schema.json' );
importer('PICA', file => 'pica.xml')->each( sub {
my $record = shift;
un
:
# reject all items not conforming to the schema
select valid('', PICA, schema: 'schema.json')
=head1 DESCRIPTION
This L<Catmandu::Validator> can be used to check PICA+ records against an