Schema Builder

A schema defines the fields a certificate contains and the rules for checking their values. You build the schema, preview the certificate form, publish the schema, and assign it to the companies that will create certificates from it.

In This Section

Access the Schema Builder

The Schema Builder is available under Certificates › Schemas. The Certificates area has three tabs:

Certificates area with the Schemas tab selected

Create a Schema

Click Create Schema, enter a name, and optionally choose a parent schema.

Working in the Builder

  • The + button adds a Text field. Change its type with the type switcher at the top of the configuration panel.
  • Group, List, All Of, and One Of are containers. To add a field inside one, open the container's actions menu () and choose Add … for the type you want.
  • The settings button above the field tree opens settings for the whole schema: global rules and the raw JSON.
  • The builder shows your changes immediately, but they are only stored when you click Save.
Create a schema and add the first fields

Preview a Schema

The actions menu () in the top right of the builder holds the preview and the other actions for the open schema.

Actions menu in the builder header

Preview Certificate Form opens a certificate form based on your schema for testing data entry. Nothing you type in the preview is stored. View Schema as PDF shows how a certificate created from the schema looks as a PDF.

Form preview dialog for the Shipment schema

Manage Schemas

The actions menu () of a schema in the list holds the actions below.

Actions menu of a schema in the Schemas list

  • Versions: each schema has a version number, such as 0.0.1. Duplicate creates a new version. This is a suggested approach how to change a schema after it's been published.
  • Child schemas: a child schema is linked to a parent schema. View Children lists all children of a schema.
  • Archive: retires a schema. It can no longer be used to create certificates or child schemas. Archiving cannot be undone.
  • Delete: removes a schema entirely. Only possible while no certificates have been created from it.

View the JSON Schema

To see the full schema as JSON, click the settings button above the field tree and open the Schema tab.

The Schema tab in the schema settings showing the JSON Schema