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."""