feat(clinic): enforce maximum gallery image limit of 5 and update validation logic

This commit is contained in:
hamed
2026-06-19 01:15:27 +03:30
parent dd1ca98cb4
commit e7be54b84e
3 changed files with 45 additions and 7 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ Create a new clinic.
| `longitude` | float | ❌ | Longitude for map |
| `state` | string | ❌ | Province name |
| `city` | string | ❌ | City name |
| `image_clinic` | object[] | ❌ | Gallery images `[{url: "..."}]` |
| `image_clinic` | object[] | ❌ | Gallery images `[{url: "..."}]`**max 5**; more returns `ERR_VALIDATION_001` (422) |
| `clinic_logo` | string | ❌ | Logo URL |
| `doctors` | string[] | ❌ | Doctor UUIDs to associate |
| `specialties` | integer[] | ❌ | Specialty IDs |