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
>openapi-generator generate -g csharp-netcore -i openapi.yaml --library httpclient -o out/requestBody_with_oneOf/ --model-package Model --api-package Api
>cd out/requestBody_with_oneOf
>dotnet build --configuration Release
produces:
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(299,34): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(36,27): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(311,83): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(67,61): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(47,52): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(79,86): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(356,74): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Api\DefaultApi.cs(369,123): error CS0246: The type or namespace name 'UNKNOWN_BASE_TYPE' could not be found (are you missing a using directive or an assembly reference?) [C:\Projects\ssh_clone\try-for-openapi-issue\requestBody_with_oneOf\src\Org.OpenAPITools\Org.OpenAPITools.csproj]
Bug Report Checklist
Description
When the requestBody has
oneOf
properties, then the client is generated withUNKNOWN_BASE_TYPE
as a request parameter.openapi-generator version
master @ e600f7d
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
produces:
Related issues/PRs
None that I could find.
Suggest a fix
@wing328 @Blackclaws @shibayan @lucamazzanti @devhl-labs @jfeltesse-mdsol
The text was updated successfully, but these errors were encountered: