Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- Extensions can have independent versions and only increment when released -->
<Version>3.0.0$(VersionSuffix)</Version>
<ExtensionsVersion>5.0.0-beta.2$(VersionSuffix)</ExtensionsVersion> <!-- WebJobs.Extensions -->
<CosmosDBVersion>4.1.0$(VersionSuffix)</CosmosDBVersion>
<CosmosDBVersion>4.1.1$(VersionSuffix)</CosmosDBVersion>
<HttpVersion>3.2.0$(VersionSuffix)</HttpVersion>
<MobileAppsVersion>3.0.0$(VersionSuffix)</MobileAppsVersion>
<SendGridVersion>3.0.3$(VersionSuffix)</SendGridVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public Task<ITriggerBinding> TryCreateAsync(TriggerBindingProviderContext contex

Type documentType = CosmosDBTriggerAttributeBindingProviderGenerator.GetParameterType(context.Parameter);

if (typeof(JArray).IsAssignableFrom(documentType))
if (typeof(JArray).IsAssignableFrom(documentType)
|| typeof(JObject[]).IsAssignableFrom(documentType))
{
documentType = typeof(JObject); // When binding to JArray, use JObject as contract.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ public static void Func3([CosmosDBTrigger("%aDatabase%", "%aCollection%", Connec
{
}

public static void Func4([CosmosDBTrigger("%aDatabase%", "%aCollection%", Connection = "CosmosDBConnectionString")] JObject[] docs)
{
}

public static IEnumerable<ParameterInfo[]> GetParameters()
{
var type = typeof(ValidCosmosDBTriggerBindingsWithAppSettings);
Expand All @@ -611,7 +615,8 @@ public static IEnumerable<ParameterInfo[]> GetParameters()
{
new[] { GetFirstParameter(type, "Func1") },
new[] { GetFirstParameter(type, "Func2") },
new[] { GetFirstParameter(type, "Func3") }
new[] { GetFirstParameter(type, "Func3") },
new[] { GetFirstParameter(type, "Func4") }
};
}
}
Expand Down Expand Up @@ -648,6 +653,10 @@ public static void Func2([CosmosDBTrigger("aDatabase", "aCollection")] JArray do
{
}

public static void Func4([CosmosDBTrigger("aDatabase", "aCollection")] JObject[] docs)
{
}

public static void Func3([CosmosDBTrigger("aDatabase", "aCollection", LeaseDatabaseName = "aDatabase", LeaseContainerName = "aLeaseCollection")] IReadOnlyList<dynamic> docs)
{
}
Expand All @@ -660,7 +669,8 @@ public static IEnumerable<ParameterInfo[]> GetParameters()
{
new[] { GetFirstParameter(type, "Func1") },
new[] { GetFirstParameter(type, "Func2") },
new[] { GetFirstParameter(type, "Func3") }
new[] { GetFirstParameter(type, "Func3") },
new[] { GetFirstParameter(type, "Func4") }
};
}
}
Expand All @@ -675,6 +685,10 @@ public static void Func2([CosmosDBTrigger("%aDatabase%-test", "%aCollection%-tes
{
}

public static void Func4([CosmosDBTrigger("%aDatabase%-test", "%aCollection%-test")] JObject[] docs)
{
}

public static void Func3([CosmosDBTrigger("%aDatabase%-test", "%aCollection%-test", LeaseDatabaseName = "%aDatabase%-test")] IReadOnlyList<dynamic> docs)
{
}
Expand All @@ -687,7 +701,8 @@ public static IEnumerable<ParameterInfo[]> GetParameters()
{
new[] { GetFirstParameter(type, "Func1") },
new[] { GetFirstParameter(type, "Func2") },
new[] { GetFirstParameter(type, "Func3") }
new[] { GetFirstParameter(type, "Func3") },
new[] { GetFirstParameter(type, "Func4") }
};
}
}
Expand Down