danielgtaylor / danielgtaylor/huma

autopatch: Use "huma.GenerateOperationID" to generate operation ID

Open
#914 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.4k
Forks
285
Avg merge
40m
Merged PRs (30d)
1

Description

We overwrite `huma.GenerateOperationID` to use camel-case instead of the default kabab-case.

`autopatch` currently doesn't rely on `huma.GenerateOperationID` to generate the operation ID. Instead, the operation ID is generated in kebab-case-naming, always: https://github.com/danielgtaylor/huma/blob/c7a8a7965d84e4aded17671da32bea8c69e4201e/autopatch/autopatch.go#L174-L180

This makes all auto generated patch-routes use a different naming schema as any other route.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.