swagger-api / swagger-api/swagger-codegen-generators

swagger codegen generating typed models

Open
#1,010 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
299
Forks
439
PR merge metrics
No merged PRs in 30d

Description

When I'm using editor.swagger.io model is created correctly

image

but on using swagger codegen generator its generating typed model

image

java -jar swagger-codegen-cli-2.4.13.jar generate -l csharp -i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/merchant-fulfillment-api-model/merchantFulfillmentV0.json --api-package Api.MerchantFulFillment --model-package Models.MerchantFulFillment --additional-properties -DmodelTests=false -DapiTests=false -DpackageName='AmazonSPAPI.Sdk'

what can be done to resolve this issue?

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

Start by reproducing the C# generation command against the linked merchantFulfillmentV0.json model and compare its output with the model produced by editor.swagger.io. Trace the generator options affecting typed models; done means the CLI output matches the expected model structure without the reported typing discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, tooling
Issue type
Bug
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.