1.16.0

(feat): Add read-only and writeable additional properties for request and response types.

Example:

1var request = new FooRequest
2{
3 Id = "123",
4 AdditionalProperties =
5 {
6 ["extra1"] = new { value = 42 },
7 ["extra2"] = DateTime.Now,
8 ["extra3"] = 99
9 }
10};
11
12var response = await client.Foo.CreateAsync(request);
13
14Dictionary<string, JsonElement> jsonElements = response.AdditionalProperties.ToJsonElementDictionary();
15Dictionary<string, int> extra1 = jsonElements["extra1"].Deserialize<Dictionary<string, int>>();
16DateTime extra2 = jsonElements["extra2"].GetDateTime();
17int extra3 = jsonElements["extra3"].GetInt32();

To enable this feature, configure experimental-additional-properties: true in the config section of your C# generator in generators.yml. This will become the default in the future.