This commit is contained in:
Mike Kistler 2023-07-05 07:24:29 -05:00
Родитель 4c58c61d8a
Коммит cf220b36b8
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -508,8 +508,8 @@ rules:
message: Property should have a defined type.
severity: warn
resolved: false
# Exclude properties that contains allOf to avoid false positives.
given: $..properties[?(@object() && @.$ref == undefined && @.allOf == undefined)]
# Exclude properties that contains allOf or oneOf or anyOf to avoid false positives.
given: $..properties[?(@object() && @.$ref == undefined && @.allOf == undefined && @.oneOf == undefined && @.anyOf == undefined)]
then:
field: type
function: truthy