Skip to content

Commit c3a38a2

Browse files
address copilot comment
1 parent bf8fd9e commit c3a38a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/spectral/ipa/rulesets/functions/IPA119NoDefaultForCloudProviders.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export default (input, { propertyNameToLookFor, cloudProviderEnumValues }, { pat
1414
const propertyObject = resolveObject(oas, path);
1515
const fieldType = path[path.length - 2];
1616

17+
if(fieldType === 'parameters' && !propertyObject.schema) {
18+
return;
19+
}
20+
1721
if (hasException(propertyObject, RULE_NAME)) {
1822
collectException(propertyObject, RULE_NAME, path);
1923
return;

0 commit comments

Comments
 (0)