Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -381,7 +381,7 @@ def guardar_transaccion():
|
|
381 |
|
382 |
class SubcategoriaCreate(BaseModel):
|
383 |
nombre_categoria: str
|
384 |
-
tipo:
|
385 |
subcategorias: List[str]
|
386 |
|
387 |
@app.route("/subcategorias", methods=["POST"])
|
|
|
381 |
|
382 |
class SubcategoriaCreate(BaseModel):
|
383 |
nombre_categoria: str
|
384 |
+
tipo: str # Validaci贸n estricta
|
385 |
subcategorias: List[str]
|
386 |
|
387 |
@app.route("/subcategorias", methods=["POST"])
|