Fix az-property-type for oas3
This commit is contained in:
Родитель
4c58c61d8a
Коммит
cf220b36b8
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче