-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
I generated a Jellyfin client for the stable jellyfin spec with the following command:
oapi-codegen -package jellyfin -generate types,client jellyfin-openapi-stable.json > jellyfin_api.go
However, oapi-codegen stopped during formatting of the code with the message:
./jellyfin_api.go:105172:68: expected ':', found CamelCase (and 10 more errors)
The offending code looks like this:
case rsp.Header.Get("Content-Type") == "application/json; profile="CamelCase"" && rsp.StatusCode == 200:
var dest BaseItemDtoQueryResult
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.ApplicationjsonProfileCamelCase200 = &destAs you can see the content type string was not escaped.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working