microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.18k stars 320 forks source link

[Connectors] Unable to process api-version when it is 'preview' - Unsupported param with OpenApi type Microsoft.OpenApi.Any.OpenApiDateTime, key = api-version #2142

Open LucGenetier opened 8 months ago

LucGenetier commented 8 months ago

Azure OpenAI Service connector "operationId": "ChatCompletion"

      {
        "name": "api-version",
        "in": "query",
        "required": true,
        "type": "string",
        "default": "2023-03-15-preview",
        "x-ms-visibility": "advanced",
        "description": "The API version for this REST call to Azure OpenAI. Must be 2023-03-15-preview or later",
        "x-ms-summary": "Azure OpenAI API Version (must be 2023-03-15-preview or later)"
      },

When loading this swagger file, we get the following error [ERROR] Function ChatCompletion: Unsupported param with OpenApi type Microsoft.OpenApi.Any.OpenApiDateTime, key = api-version

LucGenetier commented 7 months ago

210 functions are impacted

select * from Functions where NotSupportedReason = 'Unknown default value type Microsoft.OpenApi.Any.OpenApiDateTime, Unsupported param with OpenApi type Microsoft.OpenApi.Any.OpenApiDateTime, key = x-ms-api-version' and Category = 'Aapt-Ppc_ConnectorFunction' -- 'Baseline_ConnectorFunction' and BuildId = ( select top 1 BuildId from Connectors order by BuildId desc)