From f0daccdb28723927ba0ede8278d5ab4ece81f347 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 20 Oct 2026 11:21:27 +0300 Subject: [PATCH] Migrate to Pydantic 2 for LNbits 1.7.0 --- config.json | 3 ++- views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index ee20315..b683949 100644 --- a/config.json +++ b/config.json @@ -1,8 +1,9 @@ { "name": "Build your own!", + "version": "1.0.6", "short_description": "Extension building guide", "tile": "/example/static/bitcoin-extension.png", - "min_lnbits_version": "1.0.0", + "min_lnbits_version": "1.7.0", "donate": "donate@legend.lnbits.com", "contributors": [ { diff --git a/views.py b/views.py index 8a2844f..8e7c95b 100644 --- a/views.py +++ b/views.py @@ -15,5 +15,5 @@ async def index( user: User = Depends(check_user_exists), ): return template_renderer(["example/templates"]).TemplateResponse( - request, "example/index.html", {"user": user.json()} + request, "example/index.html", {"user": user.model_dump_json()} )