mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-24 07:07:46 +01:00
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:
parent
36b3883215
commit
6bcc05ac34
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue