Skip to content

Migrate to Pydantic 2 for LNbits 1.7.0 - #2

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

Use the existing notification API so errors and success messages render, and type the Xero payload and payment filters.

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 (1 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:32
@motorina0
motorina0 merged commit ab3cbe6 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