Skip to content

Commit ff841d5

Browse files
committed
refactor: add summary to http handler options
1 parent b4e633e commit ff841d5

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/definition/handler/events/http.schema.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const httpTrigger = $object({
66
method: $enum(['get', 'post', 'put', 'delete', 'patch', 'options', 'head']),
77
path: $string().describe('The HTTP path for the route. Must start with / and must not end with /.'),
88
operationId: $string().optional().describe('The operation ID for the route.'),
9+
summary: $string().optional().describe('The summary for the route.'),
910

1011
authorizer: $object({
1112
name: $string().describe('The name of the authorizer to use for the route.'),

src/definition/handler/events/http.type.ts

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export interface HttpTrigger {
2020
* The operation ID for the route.
2121
*/
2222
operationId?: string | undefined
23+
/**
24+
* The summary for the route.
25+
*/
26+
summary?: string | undefined
2327
/**
2428
* The authorizer to use for the route, this overrides the default authorizer.
2529
*/

src/definition/schemas/star-chart-handler.schema.json

+4
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
"type": "string",
166166
"description": "The operation ID for the route."
167167
},
168+
"summary": {
169+
"type": "string",
170+
"description": "The summary for the route."
171+
},
168172
"authorizer": {
169173
"type": "object",
170174
"description": "The authorizer to use for the route, this overrides the default authorizer.",

0 commit comments

Comments
 (0)