Skip to content

Commit

Permalink
pyln-testing: Removing the lightning- prefix check for schema files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ShahanaFarooqui authored and endothermicdev committed Feb 7, 2025
1 parent fc08340 commit 816970f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/pyln-testing/pyln/testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 816970f

Please sign in to comment.