Skip to content

Commit

Permalink
Escapse . in property name for Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
vishrutshah committed Jun 23, 2016
1 parent a6aa047 commit cd769c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AutoRest/Generators/Ruby/Ruby/RubyCodeNamer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ private IType NormalizeCompositeType(CompositeType compositeType)
foreach (var property in compositeType.Properties)
{
property.Name = GetPropertyName(property.GetClientName());
if (property.SerializedName != null)
if (property.SerializedName != null && !property.WasFlattened())
{
property.SerializedName = property.SerializedName.Replace("\\", "\\\\");
property.SerializedName = property.SerializedName.Replace(".", "\\\\.");
}
property.Type = NormalizeTypeReference(property.Type);
}
Expand Down

0 comments on commit cd769c3

Please sign in to comment.