Open peombwa opened 2 years ago
It is a modelerfour issue. Transfer it to autorest.
Duplicate of #4303, is this a demand from services? I did brings this up in autorest scrum a while back and there wasn't much interest in supporting it in the generators without a real demand.
@timotheeguerin, yes, this is a demand from a service. MS Graph API supports GET /deviceManagement/microsoft.graph.getRoleScopeTagsByIds(ids=["1","2","3"])
, which can only be described with a parameter object of Content.application/json
. See the discussion in https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/902#issuecomment-1069133352.
AutoREST.PowerShell fails with
error | Error: Plugin modelerfour reported failure
when the parameter object of an operation containscontent
property:Repro Steps
content
. e.g., DeviceManagement.Functions.yml.Expected behavior
AutoREST.PowerShell should generate a command for
/deviceManagement/microsoft.graph.getRoleScopeTagsByIds(ids={ids})
that makesGET /deviceManagement/microsoft.graph.getRoleScopeTagsByIds(ids=["1","2","3"])
request.According to the OpenAPI spec: