microsoft / microsoft/winget-cli-restsource

OpenApi definition: autorest

Open
#193 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Docs
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.