Skip to content

Commit 51f81ee

Browse files
cotticlaudecursoragent
authored
Simplify redundant SourceGenerationContext qualifier (#3576)
main's lint is still failing: dotnet format --verify-no-changes also flags the IDE0002 "name can be simplified" hints in ContentDateEnrichmentTests. SourceGenerationContext is already in scope via the Elastic.Documentation.Serialization using, so drop the full qualifier. This was meant to ship with #3575 but missed the squash-merge. Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 7621149 commit 51f81ee

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests-integration/Elastic.ContentDateEnrichment.IntegrationTests/ContentDateEnrichmentTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ await _transport.PutAsync<StringResponse>(
111111

112112
var options = new IngestChannelOptions<DocumentationDocument>(_transport, typeContext, indexNameOverride: indexNameOverride)
113113
{
114-
SerializerContext = Elastic.Documentation.Serialization.SourceGenerationContext.Default
114+
SerializerContext = SourceGenerationContext.Default
115115
};
116116
return new IngestChannel<DocumentationDocument>(options);
117117
}
@@ -325,7 +325,7 @@ public async Task ScriptedUpsert_WithFullDocument_ContentLastUpdatedValue()
325325
Hash = "testhash123",
326326
ContentBodyHash = "contenthash123"
327327
};
328-
var serializedDoc = JsonSerializer.Serialize(doc, Elastic.Documentation.Serialization.SourceGenerationContext.Default.DocumentationDocument);
328+
var serializedDoc = JsonSerializer.Serialize(doc, SourceGenerationContext.Default.DocumentationDocument);
329329

330330
// Index via scripted upsert (same as HashedBulkUpdate)
331331
await IndexFullDocumentViaScriptedUpsert(index, doc.Url, serializedDoc);
@@ -554,7 +554,7 @@ private async Task IndexDocumentsDirectly(string index, params (string url, stri
554554
Hash = contentHash,
555555
ContentBodyHash = contentHash
556556
};
557-
var serialized = JsonSerializer.Serialize(doc, Elastic.Documentation.Serialization.SourceGenerationContext.Default.DocumentationDocument);
557+
var serialized = JsonSerializer.Serialize(doc, SourceGenerationContext.Default.DocumentationDocument);
558558
await IndexFullDocumentViaScriptedUpsert(index, url, serialized);
559559
}
560560
}

0 commit comments

Comments
 (0)