Validation Schemas
Overview
Use Case Example
Setting Up Validation
Step 1: Define Your Schema
{
"type": "object",
"required": ["camera", "location", "quality"],
"properties": {
"camera": {
"type": "object",
"required": ["iso", "aperture"],
"properties": {
"iso": {"type": "number"},
"aperture": {"type": "string"},
"shutter_speed": {"type": "string"}
}
},
"location": {
"type": "object",
"required": ["lat", "lng"],
"properties": {
"lat": {"type": "number"},
"lng": {"type": "number"},
"address": {"type": "string"}
}
},
"quality": {
"type": "object",
"properties": {
"brightness": {"type": "number"},
"contrast": {"type": "number"}
}
}
}
}Step 2: Set Schema for Project
Step 3: Upload Images with Validation
Validation Options
Standard Validation
Strict Validation
Optimized Validation with Caching
Validating Existing Projects
Benefits
Common Schema Patterns
Simple Required Fields
Nested Structures
Optional Fields with Defaults
Complete Example
Best Practices
Requirements
Last updated