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:
2025-12-04 11:30:22 -03:00
parent 9ed41c9ee4
commit 9de059e9ca
2 changed files with 3 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ def extract_pdf_text_smart(pdf_content: bytes, max_chars: int = None) -> dict:
}
BACKEND_VERSION = "1.1.1"
BACKEND_VERSION = "1.1.2"
app = FastAPI(title="Checklist Inteligente API", version=BACKEND_VERSION)
# S3/MinIO configuration

View File

@@ -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