# Error Messages

### Schema Validation Errors

| Error Message               | Possible Cause                | Solutions                         |
| --------------------------- | ----------------------------- | --------------------------------- |
| "Model name is required"    | Missing model definition      | Add `model: YourModel` to YAML    |
| "Field type is required"    | Missing field type            | Specify type for each field       |
| "Invalid enum options"      | Empty enum options            | Add options array for enum fields |
| "Invalid relationship type" | Wrong relationship definition | Use supported relationship types  |

### Generation Errors

| Error Message                | Possible Cause     | Solutions                         |
| ---------------------------- | ------------------ | --------------------------------- |
| "Failed to write model file" | Permission issues  | Check directory permissions       |
| "Stub file not found"        | Missing stub files | Publish package assets            |
| "Directory not writable"     | Permission issues  | Set correct directory permissions |
