Skip to content

Commit

Permalink
Merge pull request #2164 from Hyperkid123/missing-spec-id
Browse files Browse the repository at this point in the history
fix(config-utils): add ID to required list of direct nav items
  • Loading branch information
Hyperkid123 authored Jan 30, 2025
2 parents 988f8f1 + 0588a25 commit 1ddc43f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
}
},
"required": [
"id",
"title"
],
"additionalProperties": false
Expand Down
2 changes: 2 additions & 0 deletions packages/config-utils/src/feo/validate-frontend-crd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ describe('Validate FrontEnd CRD', () => {
const mixedNavItem = {
title: 'A mixed nav item',
href: '/foo/bar',
id: 'test-id',
segmentRef: {
segmentId: 'test-segment',
frontendName: 'test-frontend',
},
};
const validDirectNavItem = {
title: 'A valid nav item',
id: 'valid-id',
href: '/foo/bar',
};
const validNavSegment = {
Expand Down

0 comments on commit 1ddc43f

Please sign in to comment.