diff --git a/DotPrompt.Tests/DotPrompt.Tests.csproj b/DotPrompt.Tests/DotPrompt.Tests.csproj
index 02ba079..bd81673 100644
--- a/DotPrompt.Tests/DotPrompt.Tests.csproj
+++ b/DotPrompt.Tests/DotPrompt.Tests.csproj
@@ -10,9 +10,9 @@
-
+
-
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
@@ -35,6 +35,9 @@
Always
+
+ Always
+
diff --git a/DotPrompt.Tests/Extensions/OpenAi/OpenAiExtensionsTests.cs b/DotPrompt.Tests/Extensions/OpenAi/OpenAiExtensionsTests.cs
index a894be0..c1c513c 100644
--- a/DotPrompt.Tests/Extensions/OpenAi/OpenAiExtensionsTests.cs
+++ b/DotPrompt.Tests/Extensions/OpenAi/OpenAiExtensionsTests.cs
@@ -1,3 +1,4 @@
+using System.Reflection;
using DotPrompt.Extensions.OpenAi;
using OpenAI.Chat;
@@ -105,13 +106,10 @@ public void ToOpenAiChatCompletionOptions_WithJsonSchemaFormat_ReturnsAValidOpti
const string expectedSchema = """{"type":"object","required":["field1"],"properties":{"field1":{"type":"string","description":"An example description for the field"},"field2":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}""";
- var jsonSchemaProperty = options.ResponseFormat.GetType().GetProperty("JsonSchema");
- var jsonSchemaValue = jsonSchemaProperty!.GetValue(options.ResponseFormat);
+ var jsonSchemaValue = GetInternalProperty