private IEnumerable<string> GetRequiredProperties(JsonSchemaModel schema) { if (schema == null || schema.Properties == null) { return Enumerable.Empty<string>(); } return schema.Properties.Where(p => p.Value.Required).Select(p => p.Key); } }