Skip to content

Commit f4c8dfb

Browse files
committed
fix(registry): rollback support legacy-api keywords
1 parent 3ba70ba commit f4c8dfb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/schema-registry/kw-api.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@ const NP_API_MEMBER = `${NP_API_INTERFACE.substring(0, NP_API_INTERFACE.length -
99

1010
export const SFRAPIDefinitionKeywords: readonly KeywordDefinition[] = [
1111
{
12-
keyword: 'apiInterface',
12+
keyword: ['interface', 'apiInterface'],
1313
metaSchema: { type: 'string', pattern: NP_API_INTERFACE },
1414
},
1515
{
16-
keyword: 'apiProperty',
16+
keyword: ['property', 'apiProperty'],
1717
metaSchema: { type: 'string', pattern: NP_API_PROP },
1818
},
1919
{
20-
keyword: 'apiMethod',
20+
keyword: ['method', 'apiMethod'],
2121
metaSchema: { type: 'string', pattern: NP_API_METHOD },
2222
},
2323
{
24-
keyword: 'apiMember',
24+
keyword: ['member', 'apiMember'],
2525
metaSchema: { type: 'string', pattern: NP_API_MEMBER },
2626
},
2727
] as const satisfies (KeywordDefinition & {
28-
keyword: keyof PickFieldsWithPrefix<Rec<unknown, SF_EXTRA_JSS_TAG_NAME>, 'api'>;
28+
keyword: [
29+
'api' | 'interface' | 'property' | 'method' | 'member', // <-- legacy names todo
30+
keyof PickFieldsWithPrefix<Rec<unknown, SF_EXTRA_JSS_TAG_NAME>, 'api'>,
31+
];
2932
})[];

0 commit comments

Comments
 (0)