Implement comprehensive data validation using Pydantic models and validators.
Create Pydantic models for: [DESCRIBE YOUR DATA] Data to validate: ```json [PASTE SAMPLE JSON] ``` Validation requirements: - Required fields: [LIST] - Optional fields: [LIST] - Custom validations: [DESCRIBE RULES] - Nested objects: [YES/NO] Provide: 1. Pydantic model definitions 2. Field types and constraints 3. Custom validators (@validator) 4. Root validators 5. Pre/post validators 6. Optional and default values 7. Nested model handling 8. Generic models 9. Model inheritance 10. JSON schema generation 11. Serialization options 12. Error handling and messages 13. Performance optimization
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[DESCRIBE YOUR DATA][PASTE SAMPLE JSON][LIST][DESCRIBE RULES]