Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An operation without a return schema should default to a Stream/byte[] response type. #546

Closed
darrelmiller opened this issue Aug 27, 2021 · 4 comments · Fixed by #1471
Closed
Assignees
Labels
enhancement New feature or request fixed generator Issues or improvements relater to generation capabilities.

Comments

@darrelmiller
Copy link
Member

darrelmiller commented Aug 27, 2021

openapi: 3.0.3
info:
  title: app that calls graph and gets the me profile
  version: 1.0.0
paths:
  /me:
    get:
      responses:
        200: 
          description: Success!

Currently kiota returns this error:

could not find operation return type Get \me

AB#10904

@darrelmiller darrelmiller added the enhancement New feature or request label Aug 27, 2021
@baywet
Copy link
Member

baywet commented Aug 30, 2021

related #221 #134

@baywet baywet self-assigned this Aug 30, 2021
@baywet baywet added this to the GA milestone Aug 30, 2021
@baywet baywet added the generator Issues or improvements relater to generation capabilities. label Aug 30, 2021
@baywet baywet added this to Kiota Feb 18, 2022
@baywet baywet moved this to Todo in Kiota Feb 18, 2022
@baywet
Copy link
Member

baywet commented Mar 17, 2022

@darrelmiller I'm guessing that an operation described with only a 204 response should return void in that case, not an empty stream, correct?

@baywet baywet moved this from Todo to In Progress in Kiota Mar 30, 2022
@baywet
Copy link
Member

baywet commented Mar 30, 2022

related to #302 where anything that's not a known mime type will be treated as stream. Planning to tackle both issues together.

@baywet baywet added the fixed label Mar 31, 2022
@baywet
Copy link
Member

baywet commented Mar 31, 2022

fixed via #1471

Repository owner moved this from In Progress to Done in Kiota Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed generator Issues or improvements relater to generation capabilities.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants