We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759e8fb commit 09f8b6fCopy full SHA for 09f8b6f
script/core/diagnostics/missing-fields.lua
@@ -31,7 +31,7 @@ return function (uri, callback)
31
local class = vm.getGlobal('type', className)
32
---@cast class -nil
33
for _, set in ipairs(class:getSets(uri)) do
34
- if set.type == 'doc.class'
+ if set.type == 'doc.class'
35
and vm.docHasAttr(set, 'partial')
36
then
37
sortedDefs[className].isPartial = true
@@ -70,7 +70,8 @@ return function (uri, callback)
70
71
for _, field in ipairs(fields) do
72
if not field.optional
73
- and not vm.compileNode(field):isNullable() then
+ and not vm.compileNode(field):isNullable()
74
+ and field.type == "doc.field" then
75
local key = vm.getKeyName(field)
76
if not key then
77
local fieldnode = vm.compileNode(field.field)[1]
0 commit comments