Scroll to navigation

SCHEMA-SALAD-TOOL3(1) User Commands SCHEMA-SALAD-TOOL3(1)

NAME

schema-salad-tool - Schema Annotations for Linked Avro Data (SALAD)

DESCRIPTION

usage: schema-salad-tool [-h] [--rdf-serializer RDF_SERIALIZER] [--skip-schemas]

[--strict-foreign-properties] [--version] [--print-jsonld-context | --print-rdfs | --print-avro | --print-rdf | --print-pre | --print-index | --print-metadata | --print-inheritance-dot | --print-fieldrefs-dot | --codegen LANGUAGE | --print-oneline | --print-doc] [--codegen-target CODEGEN_TARGET] [--codegen-examples DIRECTORY] [--codegen-package DOTTED.PACKAGE] [--codegen-copyright COPYRIGHT_STRING] [--codegen-spdx-copyright-text SPDX_COPYRIGHT_TEXT [SPDX_COPYRIGHT_TEXT ...]] [--codegen-spdx-license-identifier SPDX_LICENSE_IDENTIFIER] [--codegen-parser-info PARSER_INFO] [--strict | --non-strict] [--verbose | --quiet | --debug] [--only ONLY] [--redirect REDIRECT] [--brand BRAND] [--brandlink BRANDLINK] [--brandstyle BRANDSTYLE] [--brandinverse] [--primtype PRIMTYPE] [schema] [document ...]

Validate Salad schemas or documents.

positional arguments:

schema document

options:

show this help message and exit
Output RDF serialization format used by --print-rdf (one of `turtle` (default), `n3`, `nt`, `xml`)
If specified, ignore `$schemas` sections.
Strict checking of foreign properties
Print version

Output type and format:

Print JSON-LD context for schema
Print RDF schema
Print Avro schema
Print corresponding RDF graph for document
Print document after preprocessing
Print node index
Print document metadata
Print graphviz file of inheritance
Print graphviz file of field refs
Generate classes in target language, currently supported: `python`, `java`, `typescript`, `dotnet`, `cpp`, `dlang`
Print each error message in oneline
Print HTML schema documentation page

Code generation configuration:

Requires --codegen LANGUAGE
Defaults to `sys.stdout` for Python/C++/Dlang and `./` for Java/TypeScript/.Net
Directory of example documents for test case generation (Java/TypeScript/.Net/Dlang only).
Optional override of the package name which is otherwise derived from the base URL (Java/TypeScript/.Net/Dlang only).
Optional copyright of the input schema.
List of copyright text. Each entry will show up as `SPDX-FileCopyrightText: ...` (Currently C++ only)
Optional spdx license identifier, e.g.: GPL-3.0-only (Currently C++ only)
Optional parser name which is accessible via resulted parser API (Python and Dlang only)

Validation strictness:

Strict validation (unrecognized or out of place fields are error)
Lenient validation (ignore unrecognized fields)

Logging detail level:

Default logging
Only print warnings and errors.
Print even more logging

Documentation generation options:

Requires --print-doc
Document only listed types
Override default link for type
Set the 'brand' text in nav bar
Set the link for 'brand' in nav bar
HTML code to link to an external style sheet
Set to use the dark navigation bar style.
Link to use for primitive types (string, int etc)
April 2026 schema-salad-tool 8.9.20260327095315