Skip to content

Online Swagger Editor - Missing C# model properties #5231

Open
@trentsteel84

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions