fix: infer optional arguments in SDK methods (#97)

* fix: infer optional arguments in SDK methods

This change enables a flag that will cause the generator to infer when request and security arguments of SDK methods should be treated as optional. The rule is: if all fields of a request or security type are optional then an argument of that type will be marked as optional in methods.

* chore: regenerate sdk
This commit is contained in:
Georges Haidar
2024-05-08 06:27:25 +01:00
committed by GitHub
parent 9e50ee43ce
commit 26880ad4aa
17 changed files with 657 additions and 541 deletions

View File

@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.0.1",
sdkVersion: "0.26.1",
genVersion: "2.322.5",
userAgent: "speakeasy-sdk/typescript 0.26.1 2.322.5 0.0.1 dub",
sdkVersion: "0.27.0",
genVersion: "2.326.0",
userAgent: "speakeasy-sdk/typescript 0.27.0 2.326.0 0.0.1 dub",
} as const;