OpenAPITools / OpenAPITools/openapi-generator

[REQ] [csharp-netcore] Add support oneof/anyof in the error model.

Open
#8,936 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.