-
-
Notifications
You must be signed in to change notification settings - Fork 232
Open
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:
Lines 174 to 180 in c7a8a79
| // Guess a name for this patch operation based on the GET operation. | |
| var name string | |
| parts := casing.Split(get.OperationID) | |
| if len(parts) > 1 && (strings.ToLower(parts[0]) == "get" || strings.ToLower(parts[0]) == "fetch") { | |
| parts = parts[1:] | |
| } | |
| name = casing.Join(parts, "-") |
This makes all auto generated patch-routes use a different naming schema as any other route.
Metadata
Metadata
Assignees
Labels
No labels