# Path parameter syntax in operation id breaks client generation tool nswag

**URL:** <https://community.hubspot.com/t/path-parameter-syntax-in-operation-id-breaks-client-generation-tool-nswag/68382>\
**Category:** APIs & Integrations\
**Created:** [November 2, 2022, 11:54am UTC](https://community.hubspot.com/t/path-parameter-syntax-in-operation-id-breaks-client-generation-tool-nswag/68382 "2022-11-02T11:54:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thulani](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@thulani](https://community.hubspot.com/u/thulani)\
**Post date:** [November 2, 2022, 11:54am UTC](https://community.hubspot.com/t/path-parameter-syntax-in-operation-id-breaks-client-generation-tool-nswag/68382/1 "2022-11-02T11:54:11Z")

</div>

The path parameter syntax in the operation id of the APIs breaks API client genaration tool nswag studio. For example the get deals by Id is defined as

`/crm/v3/objects/deals/{dealId}`

The operationId is defined as

`get-/crm/v3/objects/deals/{dealId}_getById`

The path parameter {dealId} in that name breaks the generation as this should be a text based name. Is there something that can be done about this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 3, 2022, 6:29pm UTC](https://community.hubspot.com/t/path-parameter-syntax-in-operation-id-breaks-client-generation-tool-nswag/68382/2 "2022-11-03T18:29:48Z")

</div>

Hey, @thulani 👋 From the HubSpot side, I do not have any documentation offering workarounds for your specific inquiry. Have you already tried reaching out to either Microsoft support or posting an issue via the repo itself?

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![thulani](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@thulani](https://community.hubspot.com/u/thulani)\
**Post date:** [November 10, 2022, 9:47am UTC](https://community.hubspot.com/t/path-parameter-syntax-in-operation-id-breaks-client-generation-tool-nswag/68382/3 "2022-11-10T09:47:11Z")

</div>

Thanks Jaycee. I have accepted this as a solution. However being a unique scenario it is unlikely to get much traction on the NSwag Studio repo (not mantained by Microsoft). I worked around this by overriding the templating that tool offers. This was however not ideal and there are many challenges that pop up from that as well, I do wish this could be addressed in the published specs instead.
