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

Kiota python generator code to set error_map uses undefined variable #1999

Closed
mikekistler opened this issue Nov 25, 2022 · 1 comment · Fixed by #2004
Closed

Kiota python generator code to set error_map uses undefined variable #1999

mikekistler opened this issue Nov 25, 2022 · 1 comment · Fixed by #2004
Assignees
Labels
Python type:bug A broken experience

Comments

@mikekistler
Copy link
Member

Follow-on to issue microsoft/kiota-http-python#32, I created a 400 response with the same content as the default response and regenerated the client. Now the code for SortAndFilterRequestBuilder::get does not build as it contains an undefined variable o_data_error:

image

@baywet baywet added type:bug A broken experience Python labels Nov 25, 2022
@baywet
Copy link
Member

baywet commented Nov 25, 2022

Thanks for reporting this. This is caused because the value is hardcoded instead of reading the "namespace" name from the code DOM.
I had left a comment on a recent PR after it was merged for it to be fixed.
@samwelkanda can you fix this when you have a couple of minutes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Python type:bug A broken experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants