Azure/azure-rest-api-specs

[BUG] AzDO Rest API providing invalid JSON Format

anumalasri opened this issue · 0 comments

API Spec link

https://learn.microsoft.com/en-us/rest/api/azure/devops/build/builds/list?view=azure-devops-rest-7.2

API Spec version

7.1, 7.2-preview.2, 7.2-preview.7, multiple

Describe the bug

Multiple APIs from AzDO Rest suite are responding with invalid JSON format where value of 'parameters' have embedded json in string with double quotes. Due to this, most of JSON client libraries like jq, json-parser are failing to pase given JSON. Hence causing issues to use Azure DevOps Rest APIs.

"parameters": "{"system.debug":"False"}",

JSON Spec: https://www.json.org/json-en.html

Please update rest api to provide correct JSON format.

Expected behavior

API Response must adhere to JSON Specificiation, so that json can be parsed correctly by JSON client libraries.

Actual behavior

Invalid JSON especially with parameters key failing to have correct JSON format.

Reproduction Steps

Create a Build definition and provide build parameters like system.debug and then call the given

Environment

No response