Altova RaptorXML Server 2025

The valavrojson | avrojson command validates a JSON document against an Avro schema.

 

raptorxml valavrojson | avrojson [options] --avroschema=AvroSchema JSONFile

 

The JSONFile argument specifies the JSON document to validate.

The --avroschema option specifies the Avro schema against which the JSON document is to be validated.

To validate multiple JSON files, either: (i) list the files on the CLI, with each file separated from the next by a space; or (ii) list the files to validate in a text file (.txt file), with one filename per line, and supply this text file as the JSONFile argument together with the --listfile option set to true (see the Options list below).

 

Examples

Examples of the valavrojson command:

 

raptorxml valavrojson --avroschema=c:\MyAvroSchema.avsc c:\MyJSONDataFile.json

raptorxml avrojson --avroschema=c:\MyAvroSchema.avsc c:\MyJSONDataFile.json

 

 

Options

Options are listed in short form (if available) and long form. You can use one or two dashes for both short and long forms. An option may or may not take a value. If it takes a value, it is written like this: --option=value. Values can be specified without quotes except in two cases: (i) when the value string contains spaces, or (ii) when explicitly stated in the description of the option that quotes are required. If an option takes a Boolean value and no value is specified, then the option's default value is TRUE. Use the --h, --help option to display information about the command.

 

 

© 2018-2024 Altova GmbH