---
name: "marcvalidate"
section: "1p"
platform: "linux"
package: "libmarc-schema-perl"
version: "0.16-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/marcvalidate"
---

# marcvalidate(1p)

Validate a file with MARC21 records

## NAME

marcvalidate - Validate a file with MARC21 records

## SYNOPSIS

```
  $ marcvalidate [options] FILE
  options:
  --type,-t         Type of MARC21 serialization (RAW|XML, default: RAW)
  --schema,-s       Location MARC JSON schema
  --help,-h         Print this help
```

## DESCRIPTION

`"marcvalidate"` validates a file with MARC21 records against MARC::Schema  and prints out errors as tab separated list (id, field tag, error, value).  The ID is extracted from MARC21 field 001 \<https://www.loc.gov/marc/bibliographic/bd001.html\>. For a detailed description of the (default) schema see "MARC21 structure in JSON" \<https://pkiraly.github.io/2018/01/28/marc21-in-json/\>.

## AUTHOR

Johann Rolschewski \<jorol@cpan.org\>

## COPYRIGHT

Copyright 2018- Johann Rolschewski

## LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## SEE ALSO

Catmandu::Validator

JSON::Schema

PICA::Schema

MARC::Lint
