Skip to content

Commit baa0eab

Browse files
committed
fix: allow operationId in handler.yml
1 parent 6374a3a commit baa0eab

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
@@ -5,6 +5,7 @@ export const httpTrigger = $object({
55
http: $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 /.'),
8+
operationId: $string().optional().describe('The operation ID for the route.'),
89

910
authorizer: $object({
1011
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
@@ -16,6 +16,10 @@ export interface HttpTrigger {
1616
* The HTTP path for the route. Must start with / and must not end with /.
1717
*/
1818
path: string
19+
/**
20+
* The operation ID for the route.
21+
*/
22+
operationId?: string | undefined
1923
/**
2024
* The authorizer to use for the route, this overrides the default authorizer.
2125
*/

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

+4
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@
161161
"type": "string",
162162
"description": "The HTTP path for the route. Must start with / and must not end with /."
163163
},
164+
"operationId": {
165+
"type": "string",
166+
"description": "The operation ID for the route."
167+
},
164168
"authorizer": {
165169
"type": "object",
166170
"description": "The authorizer to use for the route, this overrides the default authorizer.",

0 commit comments

Comments
 (0)