swagger-api / swagger-api/swagger-codegen
[Powershell] nullable used for arrays
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
#9032 ### Description
Powershell Array Types are generated as System.Nullable[Int64[]] which is not working because arrays in Powershell / .Net ... are anyhow nullable, so the language does not allow this.
Swagger-codegen version
current master
Swagger declaration file content or url
At any api endpoint where the model contains an array.
Command line used for generation
vanilla powershell code generation
Steps to reproduce
vanilla powershell code generation
Suggest a fix/enhancement
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 with the vanilla PowerShell generator and the petstore.yaml fixture mentioned in the issue, then review pull request #9750 for the proposed fix. Done means generated PowerShell models no longer use nullable wrappers around array types and the petstore generation case succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100