pyln-testing: Fix for disabled schema check

In a previous [commit](https://github.com/ElementsProject/lightning/pull/8065/commits), I mistakenly removed the `lightning-` replacement logic from the base name also. This commit restores that functionality to re-enable schema checks.

Changelog-None.
This commit is contained in:
ShahanaFarooqui 2025-02-12 20:05:05 -08:00 committed by Rusty Russell
parent 36b3883215
commit 6bcc05ac34

View file

@ -459,7 +459,7 @@ def jsonschemas():
schemas = {}
for fname in schemafiles:
if fname.endswith('.json'):
base = fname.replace('.json', '')
base = fname.replace('lightning-', '').replace('.json', '')
# Request is 0 and Response is 1
schemas[base] = _load_schema(os.path.join('doc/schemas', fname))
return schemas