Skip to content

Commit 80b494c

Browse files
committed
update schema
1 parent 96bd124 commit 80b494c

File tree

3 files changed

+228
-1610
lines changed

3 files changed

+228
-1610
lines changed

setting/build.lua

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ local function copyWithNLS(t, callback)
2525
elseif type(v) == 'table' then
2626
v = copyWithNLS(v, callback)
2727
end
28+
nt[k] = v
2829
if type(k) == 'string' and k:sub(1, #'Lua.') == 'Lua.' then
30+
local shortKey = k:sub(#'Lua.' + 1)
2931
local ref = {
30-
['$ref'] = '#/properties/' .. k
32+
['$ref'] = '#/properties/' .. shortKey
3133
}
32-
addSplited(nt, k, ref)
33-
addSplited(nt, k:sub(#'Lua.' + 1), ref)
34+
addSplited(nt, shortKey, ref)
35+
nt[k] = nil
36+
nt[shortKey] = v
3437
end
35-
nt[k] = v
3638
end
3739
return nt
3840
end

0 commit comments

Comments
 (0)