From 48e8370a46492e38e36cb88687d46085953f0ffd Mon Sep 17 00:00:00 2001 From: bolbol Date: Tue, 10 Nov 2026 02:28:30 +0000 Subject: [PATCH] feat(api): ajout endpoint GET /schema pour recuperation du schema JSON (perso-2026-11-012) --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index 3233f7e..71aee42 100644 --- a/main.py +++ b/main.py @@ -47,6 +47,11 @@ def get_themes(): all_themes = themes.list_themes() return {"themes": all_themes} +@app.get("/schema") +def get_schema(): + """Renvoie le schéma JSON de validation.""" + return validator.load_schema() + @app.post("/validate") def validate_endpoint(req: ValidateRequest): """Valide une source JSON et renvoie des erreurs précises et localisées."""