We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1df21ae commit 8bb1a19Copy full SHA for 8bb1a19
src/Microsoft.OpenApi/Writers/OpenApiWriterBase.cs
@@ -393,9 +393,9 @@ private bool IsScopeType(ScopeType type)
393
/// <param name="name">property name</param>
394
protected void VerifyCanWritePropertyName(string name)
395
{
396
- if (string.IsNullOrWhiteSpace(name))
+ if (name == null)
397
398
- throw Error.ArgumentNullOrWhiteSpace(nameof(name));
+ throw Error.ArgumentNull(nameof(name));
399
}
400
401
if (Scopes.Count == 0)
0 commit comments