microsoft / microsoft/kiota-ruby
Error when posting an object
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 5
- Forks
- 8
- Avg merge
- 11h 9m
- Merged PRs (30d)
- 24
Description
/home/jasonjoh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/microsoft_kiota_abstractions-0.13.0/lib/microsoft_kiota_abstractions/request_information.rb:101:in
set_content_from_parsable': undefined local variable or methodthis' for #<MicrosoftKiotaAbstractions::RequestInformation:0x00007feeaa6523e0 @headers=#<MicrosoftKiotaAbstractions::RequestHeaders:0x00007feeaa6523b8 @headers={"Accept"=>["application/json"], "Content-Type"=>["application/json"]}>, @query_parameters={}, @path_parameters={"baseurl"=>"https://jsonplaceholder.typicode.com"}, @url_template="{+baseurl}/posts{?userId*,title*}", @http_method=:POST> (NameError)this.content = writer.get_serialized_content(); ^^^^
I believe this should be changed to:
@content = writer.get_serialized_content();
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 in lib/microsoft_kiota_abstractions/request_information.rb at line 101, where set_content_from_parsable raises the NameError while posting an object. Reproduce the POST request and verify that content is assigned without the undefined this reference. Done means the object can be posted without this error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100