Open ziyeqf opened 9 months ago
@ziyeqf this looks like a case of an invalid Swagger definition - the Swagger extension being used there (x-ms-format
) isn't valid i.e. defined in the list of autorest extensions?
Based on the naming here containing dfe
(datafactory extension?) - is this a DataFactory specific extension? It's previous value prior to this change appears to have been ignored - and it's undocumented, so it's unclear what the behavioural expectation is for this field?
@ziyeqf this looks like a case of an invalid Swagger definition - the Swagger extension being used there (
x-ms-format
) isn't valid i.e. defined in the list of autorest extensions?Based on the naming here containing
dfe
(datafactory extension?) - is this a DataFactory specific extension? It's previous value prior to this change appears to have been ignored - and it's undocumented, so it's unclear what the behavioural expectation is for this field?
By digging into the autorest.csharp
repo I think I understood a bit of x-ms-format
and dfe-*
....
It seems your assumption is correct, x-ms-format
is a superset of format
, added some extension.
And the dfe-
prefix is used to invovle the data factory
dependency into generated csharp project..
I'm not sure about these conclusion... This extension is not documented and I suspect it targets on the dotnet sdk.
Some references:
@ziyeqf indeed, thanks for the link to the C# SDK - I was chatting with @stephybun about this one recently as a part of getting the Data Factory items into hashicorp/go-azure-sdk
- I've opened https://github.com/hashicorp/pandora/issues/4026 to track fixing this in Pandora.
affected file: https://github.com/tombuildsstuff/kermit/blob/main/sdk/datafactory/2018-06-01/datafactory/models.go the struct used to be
interface{}
but a string map now:
while my testing results shows the response from the service is not
map[string]string
format:expression
to the headerheaders
in the response is :It broke users' existing resources: https://github.com/hashicorp/terraform-provider-azurerm/issues/24758
Noticed there was a Swagger change: https://github.com/Azure/azure-rest-api-specs/commit/97cefc844971fe445d9a294cf68e2adfd63852ac#diff-d5aa9217e2132932fec24cba8c2a103430c34ed925739a4529a0acd16483803aR8246
I'm assuming the sdk change was caused by the Swagger change, so an issue on the rest api is also opened: https://github.com/Azure/azure-rest-api-specs/issues/27816