Skip to content

Commit 6bcc05a

Browse files
ShahanaFarooquirustyrussell
authored andcommitted
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.
1 parent 36b3883 commit 6bcc05a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pyln-testing/pyln/testing/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def jsonschemas():
459459
schemas = {}
460460
for fname in schemafiles:
461461
if fname.endswith('.json'):
462-
base = fname.replace('.json', '')
462+
base = fname.replace('lightning-', '').replace('.json', '')
463463
# Request is 0 and Response is 1
464464
schemas[base] = _load_schema(os.path.join('doc/schemas', fname))
465465
return schemas

0 commit comments

Comments
 (0)