Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C#] Interfaces created for OneOf not implemented #12351

Open
andymarshallseas opened this issue Mar 6, 2024 · 0 comments
Open

[C#] Interfaces created for OneOf not implemented #12351

andymarshallseas opened this issue Mar 6, 2024 · 0 comments

Comments

@andymarshallseas
Copy link

Description

When I try to generate the C# files for the OAS spec from here (raw), the interfaces generated for the OneOf sections do not have implementations.

image
image
image

This interface has no implementations, so I cannot create a valid request.

Strangely, the interface created is not prefixed with I.

Have I misconfigured something? Am I using the codegen tool incorrectly? Is the OAS not well-structured?

Swagger-codegen version

3.0.54

Swagger declaration file content or url

https://digital.nhs.uk/restapi/oas/324177

Command line used for generation

java -jar .\swagger-codegen-cli.jar generate -i https://digital.nhs.uk/restapi/oas/324177 -l csharp

Steps to reproduce
  1. Run command above.
  2. Navigate to IO.Swagger.Model.OneOfR4PrepareBodyEntryItems
@andymarshallseas andymarshallseas changed the title [C#] Interfaces created for OneOf not imlemented [C#] Interfaces created for OneOf not implemented Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant