Skip to content

Migrate to Pydantic 2 for LNbits 1.7.0 - #1

Merged
motorina0 merged 2 commits into
mainfrom
pydantic2
Oct 30, 2026
Merged

motorina0 merged 2 commits into
mainfrom
pydantic2

Conversation

@motorina0

Copy link
Copy Markdown
Contributor

Makes Orders compatible with the Pydantic 2 models in LNbits 1.7.0 and sets min_lnbits_version to 1.7.0. Updates validation, serialization, and current LNbits API usage where needed.

Depends on the core Pydantic 2 migration: lnbits/lnbits#4253.

Validation used the local LNbits Pydantic 2 checkout and FakeWallet:

  • make all passed.
  • make test passed (3 tests).
  • Authenticated home page returned HTTP 200 and rendered in the browser.
  • Config JSON validation and git diff --check passed after the metadata updates.

The published LNbits package was not used for these checks; this PR targets the upcoming 1.7.0 core.

@motorina0
motorina0 marked this pull request as ready for review October 30, 2026 07:10
@motorina0
motorina0 merged commit 6cdfa97 into main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant