microsoft / microsoft/winget-cli-restsource
OpenApi definition: autorest
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 317
- Forks
- 79
- PR merge metrics
- No merged PRs in 30d
Description
Brief description of your issue
I get an error when trying generate api client using openapi definition and autorest.
autorest --csharp --input-file="https://raw.githubusercontent.com/microsoft/winget-cli-restsource/main/documentation/WinGet-1.0.0.yaml" --output-folder="1.0" --clear-output-folder
Modeler/MissingArrayElementType | Array schema 'schemas:85' is missing schema for items
I see different errors for each openapi schema versions (1.0, 1.1, 1.4).
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 documentation/WinGet-1.0.0.yaml and reproduce the issue using the Autorest command in the report. Compare the reported errors across the OpenAPI schema versions mentioned, then verify that generating the C# client no longer reports MissingArrayElementType or the corresponding schema errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100