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

Add support for handling additional properties in Form request #80

Closed
hamzamahmood opened this issue Nov 14, 2024 · 0 comments · Fixed by #81
Closed

Add support for handling additional properties in Form request #80

hamzamahmood opened this issue Nov 14, 2024 · 0 comments · Fixed by #81
Assignees
Labels
bug Something isn't working

Comments

@hamzamahmood
Copy link
Collaborator

Describe the bug
Currently, the additional properties in a model annotated with [JsonExtensionData] are not being flattened with the model's members when sent through the form.

Expected behavior
The properties set through the additional properties dictionary with [JsonExtensionData] should be flattened with the model's members when sent through the form.

To Reproduce
Steps to reproduce the bug:

  1. Create a model containing a Dictionary<string, object> property.
  2. Annotate the dictionary property with [JsonExtensionData].
  3. Make an API call with both form data and a body that includes an instance of this model.
  4. Send the request to the API server. Notice that, while the body contains the additional properties in a flattened structure, the form data sends the additional properties as a dictionary instead of flattening them.
@hamzamahmood hamzamahmood added the bug Something isn't working label Nov 14, 2024
@hamzamahmood hamzamahmood self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant