I was reading about the new dynamic schema support coming to PowerApps (https://powerapps.microsoft.com/en-us/blog/authoring-formulas-with-dynamic-schema-in-power-apps/ )
I assume this functionality is available to custom connectors too?
If I am writing my custom connector in ASP Net Core 3.1, using SwashBuckle, how do i configure my API to produce a swagger file that is correctly formatted to use this new feature?
I naively thought this was enough..but sadly not!
[HttpGet("DynamicJSON", Name = "DynamicJSON")]
[ProducesResponseType(typeof(object), StatusCodes.Status200OK)]
public IActionResult DynamicJSON()
{
var result = Enumerable.Range(0, 5).Select( (r) => new UndeclaredJSON()
{
Field1 = "ABC",
Field2 = "123"
});
return Ok(result);
}

Report
All responses (
Answers (