sparse-intern-71089
11/14/2022, 2:23 PMechoing-dinner-19531
11/14/2022, 2:53 PM-
makes it a yaml array of one object, so you probably want something like:
"users", new object[] { new { user = "foo", pass = "bar" } }
bright-flag-46266
11/14/2022, 3:00 PMAn unhandled exception has occurred while executing the request.
System.InvalidOperationException: <>f__AnonymousType21`2[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea
7798e],[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] is not a supported argument type.
bright-flag-46266
11/14/2022, 3:01 PMbright-flag-46266
11/14/2022, 3:06 PM"users", new InputList<object>()
{
(Input<object>) new {user = "foo", pass = "bar"},
}
in case there were some special handling around listsechoing-dinner-19531
11/14/2022, 3:07 PMvar bytes = System.Text.Json.JsonSerializer.SerializeToUtf8Bytes(new { user = "foo", pass = "bar"});
var obj = System.Text.Json.JsonDocument.Parse(bytes).RootElement;
Might be a nicer way of doing that, but that at least should give back a JsonElement to pass in.ancient-pillow-66484
02/16/2023, 4:05 PMworried-city-86458
03/06/2023, 6:28 PM