Azure / Azure/azure-functions-host

"dataType" property does not apply to HTTP request body

Open
#4,106 1 comment 0 reactions 0 assignees View on GitHub
area: out-of-proc breaking-change
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

The "dataType" property in function.json does not apply for HTTP bindings. One could very reasonably expect "dataType" to be applied to the HTTP body (instead of relying on HTTP headers that are either set on the client-side or via proxies / API Management).

Note that confusion also lies in the fact that we need to add information to documentation: https://github.com/MicrosoftDocs/azure-docs/issues/24702

Contributor guide

Open the contributing guide

Research direction

Start by reviewing HTTP binding handling and the function.json dataType property, then trace how the HTTP request body’s type is currently determined from headers. Define the intended behavior and acceptance cases for applying dataType to the body, and consult the linked Azure Docs issue for the documentation impact.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.