Closed aej closed 1 year ago
I discovered this using the Hubspot companies API (https://api.hubspot.com/api-catalog-public/v1/apis/crm/v3/objects/companies)
In some cases the operationId contains {...}. Eg: "delete-/crm/v3/objects/companies/{companyId}_archive"
operationId
{...}
"delete-/crm/v3/objects/companies/{companyId}_archive"
Open API generator will then generate code like
@spec delete__crm_v3_objects_companies_{company_id}_archive(String.t(), keyword) :: :ok | {:error, binary} def delete__crm_v3_objects_companies_{company_id}_archive(companyId, opts \\ []) do ...
which won't compile since its invalid elixir.
Hi @aej, thank you for this report! I have some code in #9 that should resolve it. If you have a chance, can you check and see if it works for you?
Just tested it out and it works!
Resolved by #9. Thank you! ❤️
I discovered this using the Hubspot companies API (https://api.hubspot.com/api-catalog-public/v1/apis/crm/v3/objects/companies)
In some cases the
operationId
contains{...}
. Eg:"delete-/crm/v3/objects/companies/{companyId}_archive"
Open API generator will then generate code like
which won't compile since its invalid elixir.