Skip to content

Commit b719b82

Browse files
The Ultclaude
andcommitted
fix(angular): correct default-tag identity check and test housekeeping
Use raw tag === DefaultTag comparison instead of camelTag === DefaultTag so user-defined tags like 'Default' or 'DEFAULT' do not incorrectly inherit untagged operations into their generated file. Also add the required index signature to CircularItems in doc.test.ts to fix the typecheck CI failure, and reorder utils.test.ts imports alphabetically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9518ffa commit b719b82

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/angular/src/utils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
createRouteRegistry,
1212
generateAngularTitle,
1313
getDefaultSuccessType,
14+
getRelevantVerbOptionsForTag,
15+
getSchemaOutputTypeRef,
1416
isDefined,
1517
isMutationVerb,
1618
isPrimitiveType,
1719
isRetrievalVerb,
1820
isZodSchemaOutput,
19-
getRelevantVerbOptionsForTag,
20-
getSchemaOutputTypeRef,
2121
} from './utils';
2222

2323
// ---------------------------------------------------------------------------

packages/angular/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const getRelevantVerbOptionsForTag = (
159159

160160
const camelTag = camel(tag);
161161
const includeUntaggedOperations =
162-
camelTag === DefaultTag &&
162+
tag === DefaultTag &&
163163
allVerbOptions.some((verbOption) => verbOption.tags.length === 0);
164164

165165
return allVerbOptions.filter(

packages/core/src/utils/doc.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('jsDoc', () => {
4646

4747
it('stops traversing circular item schemas', () => {
4848
interface CircularItems {
49+
[key: string]: unknown;
4950
items?: CircularItems;
5051
maxLength: number;
5152
type: string;

0 commit comments

Comments
 (0)