OpenAPITools / OpenAPITools/openapi-generator
[CSHARP] Is dotnetstandard 1.3 really supported ?
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Hello,
I want to generate a client targeting dotnetstandard 1.3, using the targetFramework property of the CSharp generator. Maybe I'm missing something but the following code template is not compatible with the dotnetstandard 1.x specification. The GetMethod property is only available for netstandard version > 2.0
We could potentially use conditionnal #if directives to support the 1.x specification.
Am I missing something ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with modules/openapi-generator/src/main/resources/csharp/modelOneOf.mustache around line 262 and review how the CSharp generator handles the targetFramework property. Generate a client targeting dotnetstandard 1.3 and compare the generated code with the dotnetstandard 1.x API specification. Done means the generated client is compatible with that target, or the issue is confirmed as unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100