@@ -2100,6 +2100,8 @@ export class DefaultsService {
21002100 * @param parameterOptionalStringWithNoDefault This is a optional string with no default
21012101 * @param parameterStringWithDefault This is a string with default
21022102 * @param parameterStringWithEmptyDefault This is a string with empty default
2103+ * @param parameterStringNullableWithNoDefault This is a string that can be null with no default
2104+ * @param parameterStringNullableWithDefault This is a string that can be null with default
21032105 * @throws ApiError
21042106 */
21052107 public static callToTestOrderOfParams(
@@ -2109,6 +2111,8 @@ export class DefaultsService {
21092111 parameterOptionalStringWithNoDefault?: string,
21102112 parameterStringWithDefault: string = 'Hello World!',
21112113 parameterStringWithEmptyDefault: string = '',
2114+ parameterStringNullableWithNoDefault?: string | null,
2115+ parameterStringNullableWithDefault: string | null = null,
21122116 ): CancelablePromise<void> {
21132117 return __request({
21142118 method: 'PUT',
@@ -2120,6 +2124,8 @@ export class DefaultsService {
21202124 'parameterStringWithDefault': parameterStringWithDefault,
21212125 'parameterStringWithEmptyDefault': parameterStringWithEmptyDefault,
21222126 'parameterStringWithNoDefault': parameterStringWithNoDefault,
2127+ 'parameterStringNullableWithNoDefault': parameterStringNullableWithNoDefault,
2128+ 'parameterStringNullableWithDefault': parameterStringNullableWithDefault,
21232129 },
21242130 });
21252131 }
@@ -4095,7 +4101,7 @@ exports[`v3 should generate: ./test/generated/v3/models/SimpleStringWithPattern.
40954101/**
40964102 * This is a simple string
40974103 */
4098- export type SimpleStringWithPattern = string;"
4104+ export type SimpleStringWithPattern = string | null ;"
40994105`;
41004106
41014107exports[`v3 should generate: ./test/generated/v3/schemas/$ArrayWithArray.ts 1`] = `
@@ -4984,6 +4990,7 @@ exports[`v3 should generate: ./test/generated/v3/schemas/$SimpleStringWithPatter
49844990/* eslint-disable */
49854991export const $SimpleStringWithPattern = {
49864992 type: 'string',
4993+ isNullable: true,
49874994 maxLength: 64,
49884995 pattern: '^[a-zA-Z0-9_]*$',
49894996} as const;"
@@ -5185,6 +5192,8 @@ export class DefaultsService {
51855192 * @param parameterOptionalStringWithNoDefault This is a optional string with no default
51865193 * @param parameterStringWithDefault This is a string with default
51875194 * @param parameterStringWithEmptyDefault This is a string with empty default
5195+ * @param parameterStringNullableWithNoDefault This is a string that can be null with no default
5196+ * @param parameterStringNullableWithDefault This is a string that can be null with default
51885197 * @throws ApiError
51895198 */
51905199 public static callToTestOrderOfParams(
@@ -5194,6 +5203,8 @@ export class DefaultsService {
51945203 parameterOptionalStringWithNoDefault?: string,
51955204 parameterStringWithDefault: string = 'Hello World!',
51965205 parameterStringWithEmptyDefault: string = '',
5206+ parameterStringNullableWithNoDefault?: string | null,
5207+ parameterStringNullableWithDefault: string | null = null,
51975208 ): CancelablePromise<void> {
51985209 return __request({
51995210 method: 'PUT',
@@ -5205,6 +5216,8 @@ export class DefaultsService {
52055216 'parameterStringWithDefault': parameterStringWithDefault,
52065217 'parameterStringWithEmptyDefault': parameterStringWithEmptyDefault,
52075218 'parameterStringWithNoDefault': parameterStringWithNoDefault,
5219+ 'parameterStringNullableWithNoDefault': parameterStringNullableWithNoDefault,
5220+ 'parameterStringNullableWithDefault': parameterStringNullableWithDefault,
52085221 },
52095222 });
52105223 }
@@ -5879,8 +5892,8 @@ export class TypesService {
58795892 parameterDictionary: any,
58805893 parameterEnum: 'Success' | 'Warning' | 'Error' | null,
58815894 parameterNumber: number = 123,
5882- parameterString: string = 'default',
5883- parameterBoolean: boolean = true,
5895+ parameterString: string | null = 'default',
5896+ parameterBoolean: boolean | null = true,
58845897 parameterObject: any = null,
58855898 id?: number,
58865899 ): CancelablePromise<number | string | boolean | any> {
0 commit comments