json: nits
This commit is contained in:
parent
b816734c17
commit
51ca7cb863
2 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ class SchemaConverter:
|
||||||
self._refs[base_url] = target
|
self._refs[base_url] = target
|
||||||
|
|
||||||
if len(frag_split) == 1 or frag_split[-1] == '':
|
if len(frag_split) == 1 or frag_split[-1] == '':
|
||||||
return
|
return target
|
||||||
elif ref.startswith('#/'):
|
elif ref.startswith('#/'):
|
||||||
target = schema
|
target = schema
|
||||||
ref = f'{url}{ref}'
|
ref = f'{url}{ref}'
|
||||||
|
|
|
@ -103,7 +103,7 @@ export class SchemaConverter {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fragSplit.length === 1 || fragSplit[fragSplit.length - 1] === '') {
|
if (fragSplit.length === 1 || fragSplit[fragSplit.length - 1] === '') {
|
||||||
return;
|
return target;
|
||||||
}
|
}
|
||||||
} else if (ref.startsWith('#/')) {
|
} else if (ref.startsWith('#/')) {
|
||||||
target = schema;
|
target = schema;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue