OpenAPITools / OpenAPITools/openapi-generator
[REQ] [csharp-netcore] Add support oneof/anyof in the error model.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
ApiException.ErrorContent return string? not waiting object model when responses content schema is "oneOf".
Tested on latest(09-03-2021) main branch.




Please Add de-serialise and return oneOf model object.
Please help to make temporary solution for make de-serialisation to model after fetch ApiException.ErrorContent in string Type.
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
The issue names ApiException.ErrorContent as the entry point; first locate its C# implementation and trace how response schemas using oneOf or anyOf are represented. No file or test is specified, so completion should be verified by a focused error-response case that returns the appropriate model object instead of a string.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, openapi
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100