Skip to content

add support for non-wrapped collections responses #467

@baywet

Description

@baywet

I've had a few more attempts in the last three weeks and still not working. I've had different errors over this period .. with today's being different again.

This is the latest error(s): (sorry the images are so wide)

image

image

Note that I've just pulled 1.0.4 for one of the packages.

dotnet.csproj

<Project Sdk="Microsoft.NET.Sdk">

  <ItemGroup>
      <PackageReference Include="Microsoft.Kiota.Authentication.Azure" Version="1.0.3" />
      <PackageReference Include="Microsoft.Kiota.Serialization.Json" Version="1.0.3" />
      <PackageReference Include="Microsoft.Kiota.Http.HttpClient" Version="1.0.4" />
  </ItemGroup>

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net5.0</TargetFramework>
  </PropertyGroup>

</Project>

and the client was generated with latest code from main branch, which I just pulled down about 15 mins ago.

Thoughts? I'm wondering if this is my fault, now?

Originally posted by @PureKrome in #135 (comment)

Note: this is due to the fact that Microsoft Graph always wraps collections in response objects, but not all APIs do that. The Http Core interface needs a new method returning enumerable of parsable (and maybe one for primitives too?). And the generation logic needs to be updated to switch the method based on the collection kind.
AB#10607

Metadata

Metadata

Assignees

Labels

CsharpPull requests that update .net codeJavaTypeScriptPull requests that update Javascript codefixedtype:bugA broken experience

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions