v1.1.2 - Fix campo photo_requirement en schemas
BACKEND: - Agregado campo photo_requirement a QuestionBase schema - Ahora acepta valores: 'none', 'optional', 'required' - Permite crear/actualizar preguntas con configuración de adjuntos - Marcado allow_photos como DEPRECATED (mantener por compatibilidad) - Backend v1.1.2 FRONTEND: - Sin cambios (v1.2.4) - ya enviaba correctamente el campo
This commit is contained in:
@@ -119,7 +119,8 @@ class QuestionBase(BaseModel):
|
||||
# Scale: {"type": "scale", "min": 1, "max": 5, "step": 1, "labels": {"min": "Muy malo", "max": "Excelente"}}
|
||||
# Text: {"type": "text", "multiline": true, "max_length": 500}
|
||||
order: int = 0
|
||||
allow_photos: bool = True
|
||||
allow_photos: bool = True # DEPRECATED: mantener por compatibilidad
|
||||
photo_requirement: Optional[str] = 'optional' # none, optional, required
|
||||
max_photos: int = 3
|
||||
requires_comment_on_fail: bool = False
|
||||
send_notification: bool = False
|
||||
|
||||
Reference in New Issue
Block a user