Skip to content

[Bug] Incorrect form serialization with an object #476

@rotoclap

Description

@rotoclap

Title

Environment

  • Python Version 3.13.2
  • kiota-abstractions version: 1.9.3
  • OS: Windows 11 24H2

Describe the bug
The form serialization writer adds a = character at the beginning of the content request when a object is serialized.

To Reproduce
Steps to reproduce the behavior:

Download this project. based on the quickstart page. The YML file is slightly modified to use application/x-www-form-urlencoded. The post() method of PostsRequestBuilder class is modified to print the request content.

Create a virtual environment, type pip install -e . and run the main.py file.

Expected behavior
The content request should be start with body=... instead of =body=...

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Triage 🔍

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions