tests: add missing type params to expected schema

This commit is contained in:
Stevan Freeborn
2024-07-01 10:49:46 -05:00
parent 0562c0c1aa
commit 5fa85b7e8b
@@ -29,13 +29,14 @@ public class JsonSchemaGeneratorTests
{
["age"] = new JsonObject()
{
["type"] = "integer",
["description"] = string.Empty
}
},
["required"] = new JsonArray(),
};
var testMethod = (int age) => age;
var testMethod = (int age = 0) => age;
var function = new AnthropicFunction(testMethod.Method);
var schema = JsonSchemaGenerator.GenerateInputSchema(function);
@@ -53,6 +54,7 @@ public class JsonSchemaGeneratorTests
{
["name"] = new JsonObject()
{
["type"] = "string",
["description"] = string.Empty
}
},
@@ -80,6 +82,7 @@ public class JsonSchemaGeneratorTests
{
["Person's Age"] = new JsonObject()
{
["type"] = "integer",
["description"] = "The age of the person."
}
},