Validation Requirements
This document outlines validation requirements for the PokeDB editor system. Each entity type has specific rules for creating, updating, and deleting entries. All operations require authentication and editor role. Update/delete operations require data verification. All change requests follow a two-tier validation process:
- Format Validation - Basic type and format validation
- Content Validation - Business logic, data constraints, and content validation
Abilities
Damage Categories
Leveling Rates
Natures
Pokemon
Image Content Guidelines
All images uploaded through the editor system undergo automated content moderation to ensure appropriateness. Images must be relevant to Pokemon content and meet the following guidelines:
Appropriate Content
Inappropriate Content
Technical Requirements
Automated Moderation: All uploaded images are automatically scanned for inappropriate content. Images that fail moderation will be rejected with a clear error message. If you believe an image was incorrectly flagged, please contact the moderation team through the support channels.
Common Validation Rules
All Operations
Update/Delete Operations
Image Requirements
Text Content Rules
URL-Friendly Identifiers
All identifiers (or name fields for entities without identifiers) must be URL-friendly to ensure proper routing and URL generation. This validation applies to both CREATE and UPDATE operations.
URL-Friendly Format Rules:
- Only lowercase letters (a-z), numbers (0-9), and hyphens (-) are allowed
- Must start and end with alphanumeric characters
- No consecutive hyphens (--) allowed
- No spaces, underscores, or special characters
Examples:
Valid:
Invalid:
Applies to:
- Abilities: identifier field
- Damage Categories: identifier field
- Natures: identifier field
- Pokemon: identifier field (both National Pokedex and Forms)
Error Handling
The validation system provides detailed error messages including the specific field that failed, expected format, current invalid value, and suggested corrections.