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

Online Swagger Editor - Missing C# model properties #5231

Open
trentsteel84 opened this issue Sep 25, 2024 · 0 comments
Open

Online Swagger Editor - Missing C# model properties #5231

trentsteel84 opened this issue Sep 25, 2024 · 0 comments

Comments

@trentsteel84
Copy link

Q&A (please complete the following information)

  • OS: Win 11
  • Browser: Chrome
  • Version: 127.0.6533.120
  • Method of installation: online editor at editor.swagger.io
  • Swagger-Editor version: It doesn't say
  • Swagger/OpenAPI version: OpenAPI 3.0.1

Describe the bug you're encountering

When using https://editor.swagger.io/ or https://editor-next.swagger.io/ when I try to generate any of the C# code (Generate Server - aspnetcore, Generate Client - csharp and Generate Client - csharp-dotnet2), they all provide code that is missing a lot of the definition output for a specific definition file I'm trying to use.
The definition I'm using is: https://xch.transporeon.com/carrier_interface/openapi/v1/swagger.json

To reproduce...

Steps to reproduce the behavior:

  1. Go to either online editor
  2. Use the following definition - https://xch.transporeon.com/carrier_interface/openapi/v1/swagger.json (you might need to provide it as a file)
  3. Use any of the 3 C# generated outputs mentioned
  4. View the downloaded Transports model file

Expected behavior

When viewing the Transport model file, you will see that most of the model properties (compared to the definition file) are missing for some reason, such as assigned_carrier_id

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