I have a json schema validate function something like following
private void ValidateJsonSchema<T>(string jsonData)
{
var schema = JsonSchema.FromType<T>();
var errors = schema.Validate(jsonData);
}
the param jsonData is the content of the response, but there is sometimes it will be an array like following
[
{
"id": "123",
"title": "abc"
},
{
"id": "456",
"title": "def"
}
]
so how can I handle this?