You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be a bug in OpenAPI Generator v7.12.0 and prior versions, where generated tests don't properly respect non-primitive types passed in the PATH.
Snippet of bad generated code:
func Test_tea_client_TEAProductAPIService(t *testing.T) {
configuration := tea_client.NewConfiguration()
apiClient := tea_client.NewAPIClient(configuration)
t.Run("Test TEAProductAPIService GetTeaProductByIdentifier", func(t *testing.T) {
t.Skip("skip test") // remove to run test
var productIdentifierType TypeProductIdentifierType
resp, httpRes, err := apiClient.TEAProductAPI.GetTeaProductByIdentifier(context.Background(), productIdentifierType).Execute()
require.Nil(t, err)
require.NotNil(t, resp)
assert.Equal(t, 200, httpRes.StatusCode)
})
var productIdentifierType TypeProductIdentifierType should be var productIdentifierType tea_client.TypeProductIdentifierType
See https://github.com/CycloneDX/transparency-exchange-api/actions/runs/14516836198/job/40727807660
The text was updated successfully, but these errors were encountered: