Skip to content

Commit 167ac19

Browse files
Copilothotlong
andauthored
fix: make handlerStatus optional to fix TS2741 build errors in DEFAULT_*_ROUTES constants
Agent-Logs-Url: https://github.com/objectstack-ai/spec/sessions/dd6873b1-bdbc-4914-9194-bcdcab8506d1 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent fff630b commit 167ac19

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/spec/src/api/plugin-rest-api.zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ export const RestApiEndpointSchema = z.object({
169169
* - `planned` – Declared in the protocol spec but not yet implemented.
170170
* @default 'implemented'
171171
*/
172-
handlerStatus: z.enum(['implemented', 'stub', 'planned']).default('implemented')
173-
.describe('Handler implementation status: implemented, stub, or planned'),
172+
handlerStatus: z.enum(['implemented', 'stub', 'planned']).optional()
173+
.describe('Handler implementation status: implemented (default if omitted), stub, or planned'),
174174
});
175175

176176
export type RestApiEndpoint = z.infer<typeof RestApiEndpointSchema>;

0 commit comments

Comments
 (0)