Control of generated operationId name for operations #4361
-
Is it possible to change the name that will be generated for a operation? I have the following setup: @route("/resources/subscribers/{fabric_subscriber_id}/sip_endpoints")
namespace FabricAPI.SubscriberSipEndpoints {
@tag("Subscriber SIP Endpoint")
@friendlyName("SIP Endpoints")
interface SIPEndpoints {
@doc("A list of Sip Endpoints of the Subscriber")
@friendlyName("List SIP Endpoints")
list(...FabricSubscriberID):
SubscriberSipEndpointListResponse |
StatusCode401 |
StatusCode404; This will generate as I would prefer for it to generate as I expected Is this currently possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
You can use I don't know if I have would have expected operationId to be used as a display name. |
Beta Was this translation helpful? Give feedback.
You can use
@operationId
to be explicit about this valuehttps://typespec.io/playground?c=aW1wb3J0ICJAdHlwZXNwZWMvb3BlbmFwaSI7Cgp1c2luZyBPcGVuQVBJOwoKCkBvcGVyYXRpb25JZCgiTXkgb3AgaWQiKQpvcCB0ZXN0KCk6IHZvaWQ7&e=%40typespec%2Fopenapi3&options=%7B%7D
I don't know if I have would have expected operationId to be used as a display name.
Does openapi
summary
property not get picked up here?