Skip to content

Commit e495644

Browse files
Update changelogs from fern repo (#5305)
Co-authored-by: dsinghvi <10870189+dsinghvi@users.noreply.github.com>
1 parent 1a48fc7 commit e495644

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## 2.64.2
2+
**`(fix):`** Dedup auth-derived headers in the generated client constructor when
3+
multiple auth schemes resolve to the same HTTP header name (for
4+
example, an oauth2 bearer scheme plus an apiKey-in-header scheme
5+
both named `Authorization`). Previously the constructor's
6+
`Dictionary<string, string>` collection initializer added the same
7+
key twice and threw `System.ArgumentException: An item with the
8+
same key has already been added` at runtime. Earlier auth schemes
9+
win, preserving the ordering established by the IR.
10+
11+
12+
**`(fix):`** Fix literal boolean auth-header values being emitted as `"True"` regardless
13+
of the configured value. The generated client constructor's auth-header
14+
dictionary tested the truthiness of the `Literal` discriminated-union
15+
object instead of reading its `boolean` field, so a literal `false` header
16+
incorrectly produced `"True"`.
17+
18+

0 commit comments

Comments
 (0)