mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-24 07:07:46 +01:00
pyln-testing: Removing the lightning-
prefix check for schema files
Currently, pyln tests fail if the `lightning-` prefix is removed from schema/*.json files. In this release, we will update pyln to remove its reliance on this prefix, and in the next release, we will remove the prefixes from the files as well. Changelog-None.
This commit is contained in:
parent
fc08340d74
commit
816970fdff
1 changed files with 2 additions and 2 deletions
|
@ -458,8 +458,8 @@ def jsonschemas():
|
|||
|
||||
schemas = {}
|
||||
for fname in schemafiles:
|
||||
if fname.startswith('lightning-') and fname.endswith('.json'):
|
||||
base = fname.replace('lightning-', '').replace('.json', '')
|
||||
if fname.endswith('.json'):
|
||||
base = fname.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