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:
committed by
Alex Myers
parent
fc08340d74
commit
816970fdff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user