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:
@@ -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)
|
app = FastAPI(title="Checklist Inteligente API", version=BACKEND_VERSION)
|
||||||
|
|
||||||
# S3/MinIO configuration
|
# S3/MinIO configuration
|
||||||
|
|||||||
@@ -119,7 +119,8 @@ class QuestionBase(BaseModel):
|
|||||||
# Scale: {"type": "scale", "min": 1, "max": 5, "step": 1, "labels": {"min": "Muy malo", "max": "Excelente"}}
|
# Scale: {"type": "scale", "min": 1, "max": 5, "step": 1, "labels": {"min": "Muy malo", "max": "Excelente"}}
|
||||||
# Text: {"type": "text", "multiline": true, "max_length": 500}
|
# Text: {"type": "text", "multiline": true, "max_length": 500}
|
||||||
order: int = 0
|
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
|
max_photos: int = 3
|
||||||
requires_comment_on_fail: bool = False
|
requires_comment_on_fail: bool = False
|
||||||
send_notification: bool = False
|
send_notification: bool = False
|
||||||
|
|||||||
Reference in New Issue
Block a user