Chapter 12: Schema Testing and Validation Checklist
After defining schemas, you need to test and validate them before deployment. This chapter provides a practical checklist to ensure your schemas work correctly and provide good user experience.
Schema Validation Checklist
1. Set Default, Suggested, and Test Values
Add values to help users and enable testing. These are helpful but not mandatory.
In Guardian Schema Editor:
Default Value: Pre-filled value that appears when users first see the field
Suggested Value: Recommended value shown to guide users
Test Value: Value used for testing schema functionality

Example Values Setup:
Field: "Project Area (hectares)"
Default Value: 100
Suggested Value: 500
Test Value: 250
Benefits:
Users see helpful starting values
Testing becomes easier with pre-filled data
New users understand expected input formats
2. Preview and Test Schema Functionality
Use Guardian's preview feature to test your schema before deployment.
Preview Testing Process:
Click "Preview" in Guardian schema interface
Fill out form fields using test values
Test conditional logic by changing enum selections
Verify required field validation works
Test sub-schema loading and visibility
Check file upload fields accept appropriate formats

Test These Elements:
3. Update Schema UUIDs in Policy Workflows
Insert your new schema UUIDs where documents are requested or listed in policy workflow blocks.
UUID Replacement Process:
Copy new schema UUID from JSON schema (click hamburger menu next to schema row, click on "Schema")
Open policy workflow configuration
Find blocks that use old schema references:
requestVcDocumentBlock
documentsSourceAddon
Replace old UUID with new schema UUID
Save policy configuration

4. Verify Test Artifact Completeness
Ensure no fields are missing compared to your test artifact design from Part II.
Completeness Check:
Open your test artifact spreadsheet from Part II analysis
List all required parameters from methodology
Check each parameter has corresponding schema field
Verify calculation fields capture all intermediate results
Confirm evidence fields cover all required documentation
Missing Field Checklist:
5. Optimize Logical Flow and User Experience
Organize fields and sections for intuitive user experience.
UX Organization Principles:
Logical Grouping: Group related fields together
Progressive Disclosure: Basic information first, complex details later
Clear Labels: Use terminology familiar to domain experts
Helpful Ordering: Required fields before optional ones
Conditional Logic: Show relevant fields based on previous selections
Field Organization Checklist:
Example Logical Flow:
1. Basic Project Info (title, developer, dates)
2. Certification Path Selection (VCS/CCB)
3. Methodology Selection (calculation methods)
4. Method-Specific Parameters (conditional)
5. Evidence Documentation
6. Validation and Review
Once schemas pass this validation checklist, they're ready for integration into Guardian policy workflows. Well-tested schemas provide:
Smooth user experience for data entry
Accurate data types for calculations
Proper validation to prevent errors
Clear organization for efficient workflows
Reliable foundation for policy automation
The next part of the handbook covers policy workflow design, where these validated schemas integrate with Guardian's policy engine to create complete methodology automation.
Last updated
Was this helpful?