File tree Expand file tree Collapse file tree
fern/products/sdks/generators/csharp/changelog Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments