Skip to content

Commit fc990a0

Browse files
address the comments
1 parent 0e70c41 commit fc990a0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

tools/spectral/ipa/rulesets/IPA-126.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ rules:
1414
- Title Case means each word starts with an uppercase letter, and the rest are lowercase
1515
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-126-tag-names-should-use-title-case'
1616
severity: warn
17-
given: $.tags[*]
17+
given: $.tags[?(@.name && @.name.length > 0)]
1818
then:
1919
function: 'IPA126TagNamesShouldUseTitleCase'

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ const RULE_NAME = 'xgen-IPA-126-tag-names-should-use-title-case';
66

77
export default (input, options, { path }) => {
88
const tagName = input.name;
9-
if (!tagName || tagName.trim().length === 0) {
10-
return;
11-
}
12-
139
if (hasException(input, RULE_NAME)) {
1410
collectException(input, RULE_NAME, path);
1511
return;

0 commit comments

Comments
 (0)