feat(mint): remove deprecated v0 HTTP API#957
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #957 +/- ##
==========================================
+ Coverage 74.92% 75.37% +0.45%
==========================================
Files 111 110 -1
Lines 12065 11941 -124
==========================================
- Hits 9040 9001 -39
+ Misses 3025 2940 -85 ☔ View full report in Codecov by Sentry. |
|
CI failed tests shows error current workspace file ends at line 767 and has no line 779 |
title: "Accidental Revert of Pydantic List String DoS Protection during Deprecated API Removal"
|
Signed-off-by: b-l-u-e <8102260+blue@users.noreply.github.com>
e49be1a to
84a8dd1
Compare
Here is what was done for #953 - remove deprecated mint v0 API:
Removed
cashu/mint/router_deprecated.py- root-level routes (/info,/keys,/mint,/melt,/split,/check,/restore, etc.) that duplicated the old pre-v1 surface.tests/mint/test_mint_api_deprecated.py- already fully skipped; removed.tests/fuzz/test_fuzz_mint_api_deprecated.py- fuzzing only the removed routes; removed.Mint app
cashu/mint/app.py- mounts only the v1router(no deprecated router). The file on disk already matched this after the edits.Settings
debug_mint_only_deprecatedremoved fromcashu/core/settings.py. It only toggled “deprecated-only” vs “v1 + deprecated”; with v0 gone it has no use.Tests & helpers
tests/helpers.py- droppedis_deprecated_api_only.debug_mint_only_deprecated/is_deprecated_api_onlywere simplified (always exercise v1 behavior, or drop obsoleteskipif/pytest.skip).tests/mint/test_mint_melt.py- skip reason is now “only FakeWallet”; condition isnot is_fakeonly.CI / docs
.github/workflows/tests.yml,ci.yml,tests_redis_cache.yml- removedmint-only-deprecatedinput, matrix dimension, andDEBUG_MINT_ONLY_DEPRECATEDenv.CONTRIBUTING.md- removed the “V0 API only” /DEBUG_MINT_ONLY_DEPRECATEDsubsection.Not removed
*_deprecatedmodels incashu/core/models.pyandPostMeltResponse_deprecatedusage incashu/wallet/v1_api.pystay for interoperability with older mint JSON, not for serving the removed routes.