Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Add culture invariant to convert of float values
  • Loading branch information
iozcelik committed Nov 5, 2023
1 parent d3469b5 commit d9b18d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static string NormalizeMimeType(KeyValuePair<string, float> mimeType)
}
private static string NormalizeMimeType(string key, float value)
{
return $"{key};q={value}";
return FormattableString.Invariant($"{key};q={value}");
}
///<inheritdoc/>
public bool Remove(string item)
Expand Down
2 changes: 1 addition & 1 deletion src/Kiota.Builder/KiotaBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ codeType.TypeDefinition is CodeClass codeClass &&
return (modelType, obsoleteComposedType);
}
}
else
else if (modelType is null)
{
string returnType;
if (operation.Responses.Any(static x => noContentStatusCodes.Contains(x.Key)))
Expand Down

0 comments on commit d9b18d6

Please sign in to comment.