swagger-api / swagger-api/swagger-codegen-generators
swagger codegen generating typed models
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

but on using swagger codegen generator its generating typed model

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