Creating Schema using UI
1. Log in as a Standard Registry
Only a Standard Registry (SR) role can create schemas.
Sign in to Guardian with your SR account.
2. Navigate to the Schema Section
From the left-hand navigation panel, go to Manage Schemas.
You’ll see system schemas (default ones) and any custom schemas already created.

3. Create a New Schema
Click “Create Schema”.
Provide basic details:
Name → e.g., Project Registration Schema
Policy → Linking the policy e.g., VM0042 V2.1
Description → short explanation of what the schema will be used for
For(Entity) → Select the relevant document.

4. Define Schema Fields
Add attributes (fields) that define the data structure. For each field, you specify:
Field Name (e.g., projectId, location, CO2Reduced)
Property (property referring to schema field)
Field Type (string, number, boolean, array, object, date, etc.)
Required or Optional
Allow multiple answers checkbox
Selected values (adding default, suggested, test values)
Example fields for a Project Schema:
projectId
→ number (required)

We can also customize the Field keys and Field Title by clicking on Advanced Tab.

Schemas can be defined/changed by editing their JSON definitions


Schema JSON definition contains the following editable fields
name – schema name
description – schema description
entity – schema type (NONE, VC, EVC)
fields – schema fields array
key – key (name) of the field
title – field title
description – schema description (visible to the user)
required – field visibility/type (Auto Calculate, Hidden, Required, None)
type – field value tipe (Number, String, Enum, …) or the sub-schema reference (#be764ef6-…)
isArray – boolean field (true\false) determining whether the field is an array
property – optional field mapping onto the corresponding property from dMRV framework (https://interworkalliance.github.io/TokenTaxonomyFramework/dmrv/spec/)
private – if the field is private (only relevant for ‘selective disclosure’ EVCs)
enum – array of options, or reference to an array of options
textSize – size of the text (only for Help Text)
textColor – color of the text (only for Help Text)
textBold – if the text is bold (only for Help Text)
pattern – regular expression to format the inputted text (only relevant for Strings)
expression – formula for calculating field values (only for ‘Auto Calculate’ fields)
unit – fixed Prefix or Postfix (only for Prefix or Postfix)
example – example values for the field
default – default value for the field
suggest – suggested value for the field
conditions – schema name
if – conditions for displaying the fields (only equality is supported)
field – key (name) of the field
value – comparison value for the field value
then – array of fields which is shown when the condition resolves to true (the same format as fields)
else – array of fields which is shown when the condition resolves to false (the same format as fields)
5. Save & Publish the Schema
Once all fields are defined → click Save.
To make it usable in policies, click Publish.
Publishing makes the schema immutable and available to others.

After clicking on Publish, you will be prompted to enter the version. After entering the Version and pressing the submit button, the status will change to Published.

Once the System Schema is created, we have options for activating, deleting, editing and viewing JSON documents.

Last updated
Was this helpful?