Skip to content

Commit 7579d34

Browse files
Fix TODO
Remove redundant TODO when `schema` is null, as the HACK already accounts for that scenario.
1 parent ae4066f commit 7579d34

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/Swashbuckle.AspNetCore.SwaggerGen/XmlComments/XmlCommentsExampleHelper.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#if NET10_0_OR_GREATER
2-
using System;
32
using System.Text.Json;
43
using System.Text.Json.Nodes;
54
#endif
@@ -15,16 +14,10 @@ public static JsonNode Create(
1514
OpenApiSchema schema,
1615
string exampleString)
1716
{
18-
if (schema is null)
19-
{
20-
// TODO
21-
}
22-
2317
var isStringType =
2418
schema?.ResolveType(schemaRepository) == JsonSchemaTypes.String &&
2519
!string.Equals(exampleString, "null");
2620

27-
2821
if (isStringType)
2922
{
3023
return JsonValue.Create(exampleString);

0 commit comments

Comments
 (0)