Skip to content

Commit 963f49f

Browse files
tighten types and nested schema
1 parent bb7646b commit 963f49f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/meteor/app/api/server/v1/commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const commandsEndpoints = API.v1.get(
3636
401: validateUnauthorizedErrorResponse,
3737
200: ajv.compile<{
3838
command: Pick<SlashCommand, 'clientOnly' | 'command' | 'description' | 'params' | 'providesPreview'>;
39+
success: true;
3940
}>({
4041
type: 'object',
4142
properties: {
@@ -49,6 +50,7 @@ const commandsEndpoints = API.v1.get(
4950
providesPreview: { type: 'boolean' },
5051
},
5152
required: ['command', 'providesPreview'],
53+
additionalProperties: false,
5254
},
5355
success: {
5456
type: 'boolean',

0 commit comments

Comments
 (0)