I am generating ACR using new generator, in the generated code, I saw this method was generated in ContainerRegistryPrivateEndpointConnectionData class:
internal static ContainerRegistryPrivateEndpointConnectionData DeserializeContainerRegistryPrivateEndpointConnection(JsonElement element, ModelReaderWriterOptions options)
but we are invoking the method using a different name, which causes compilation errors:
array.Add(ContainerRegistryPrivateEndpointConnectionData.DeserializeContainerRegistryPrivateEndpointConnectionData(item, options));
I saw our visitor is implemented to both change the name of the type, and the name of the deserialization method.
But I suspect that when this RP is generating, we somehow touched its serialization provider first therefore its serialization method has the wrong name already.
maybe when we change the serialization provider of this type, we should call Reset to refresh everything?