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.
2 parents 398f1a2 + 8bb1a19 commit a4ea02fCopy full SHA for a4ea02f
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