Skip to content

Commit

Permalink
Merge branch 'main' into psiki/default-pagination-offset
Browse files Browse the repository at this point in the history
  • Loading branch information
petesiki authored Dec 16, 2024
2 parents d22511a + 00476af commit 488ff6a
Show file tree
Hide file tree
Showing 374 changed files with 9,199 additions and 1,077,246 deletions.
9 changes: 7 additions & 2 deletions generators/typescript/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.44.1] - 2024-12-16

- Fix: When there is an environment variable set, you do not need to pass in any parameters
to the client constructor.

## [0.44.0] - 2024-12-13

- Feature: Inline path parameters into request types by setting `inlinePathParameters` to `true` in the generator config.
Expand All @@ -25,8 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.43.1] - 2024-12-11

- Fix: When `noSerdeLayer` is enabled, streaming endpoints were failing to compile because
they assumed that the serialization layer existed. This is now fixed.
- Fix: When `noSerdeLayer` is enabled, streaming endpoints were failing to compile because
they assumed that the serialization layer existed. This is now fixed.

## [0.43.0] - 2024-12-11

Expand Down
2 changes: 1 addition & 1 deletion generators/typescript/sdk/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.44.0
0.44.1
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ export class GeneratedSdkClientClassImpl implements GeneratedSdkClientClass {
ts.factory.createIdentifier(optionsInterface.name)
)
)
)
),
initializer: optionsInterface.properties?.every((property) => property.hasQuestionToken)
? "{}"
: undefined
}
];
const readClientId =
Expand Down Expand Up @@ -1274,7 +1277,9 @@ export class GeneratedSdkClientClassImpl implements GeneratedSdkClientClass {
for (const header of this.authHeaders) {
const referenceToHeaderType = context.type.getReferenceToType(header.valueType);
const isOptional =
referenceToHeaderType.isOptional || !this.intermediateRepresentation.sdkConfig.isAuthMandatory;
referenceToHeaderType.isOptional ||
!this.intermediateRepresentation.sdkConfig.isAuthMandatory ||
header.headerEnvVar != null;
properties.push({
name: this.getOptionKeyForAuthHeader(header),
type: getTextOfTsNode(
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 488ff6a

Please sign in to comment.