@@ -2100,6 +2100,8 @@ export class DefaultsService {
2100
2100
* @param parameterOptionalStringWithNoDefault This is a optional string with no default
2101
2101
* @param parameterStringWithDefault This is a string with default
2102
2102
* @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
2103
2105
* @throws ApiError
2104
2106
*/
2105
2107
public static callToTestOrderOfParams(
@@ -2109,6 +2111,8 @@ export class DefaultsService {
2109
2111
parameterOptionalStringWithNoDefault?: string,
2110
2112
parameterStringWithDefault: string = 'Hello World!',
2111
2113
parameterStringWithEmptyDefault: string = '',
2114
+ parameterStringNullableWithNoDefault?: string | null,
2115
+ parameterStringNullableWithDefault: string | null = null,
2112
2116
): CancelablePromise<void> {
2113
2117
return __request({
2114
2118
method: 'PUT',
@@ -2120,6 +2124,8 @@ export class DefaultsService {
2120
2124
'parameterStringWithDefault': parameterStringWithDefault,
2121
2125
'parameterStringWithEmptyDefault': parameterStringWithEmptyDefault,
2122
2126
'parameterStringWithNoDefault': parameterStringWithNoDefault,
2127
+ 'parameterStringNullableWithNoDefault': parameterStringNullableWithNoDefault,
2128
+ 'parameterStringNullableWithDefault': parameterStringNullableWithDefault,
2123
2129
},
2124
2130
});
2125
2131
}
@@ -4095,7 +4101,7 @@ exports[`v3 should generate: ./test/generated/v3/models/SimpleStringWithPattern.
4095
4101
/**
4096
4102
* This is a simple string
4097
4103
*/
4098
- export type SimpleStringWithPattern = string;"
4104
+ export type SimpleStringWithPattern = string | null ;"
4099
4105
`;
4100
4106
4101
4107
exports[`v3 should generate: ./test/generated/v3/schemas/$ArrayWithArray.ts 1`] = `
@@ -4984,6 +4990,7 @@ exports[`v3 should generate: ./test/generated/v3/schemas/$SimpleStringWithPatter
4984
4990
/* eslint-disable */
4985
4991
export const $SimpleStringWithPattern = {
4986
4992
type: 'string',
4993
+ isNullable: true,
4987
4994
maxLength: 64,
4988
4995
pattern: '^[a-zA-Z0-9_]*$',
4989
4996
} as const;"
@@ -5185,6 +5192,8 @@ export class DefaultsService {
5185
5192
* @param parameterOptionalStringWithNoDefault This is a optional string with no default
5186
5193
* @param parameterStringWithDefault This is a string with default
5187
5194
* @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
5188
5197
* @throws ApiError
5189
5198
*/
5190
5199
public static callToTestOrderOfParams(
@@ -5194,6 +5203,8 @@ export class DefaultsService {
5194
5203
parameterOptionalStringWithNoDefault?: string,
5195
5204
parameterStringWithDefault: string = 'Hello World!',
5196
5205
parameterStringWithEmptyDefault: string = '',
5206
+ parameterStringNullableWithNoDefault?: string | null,
5207
+ parameterStringNullableWithDefault: string | null = null,
5197
5208
): CancelablePromise<void> {
5198
5209
return __request({
5199
5210
method: 'PUT',
@@ -5205,6 +5216,8 @@ export class DefaultsService {
5205
5216
'parameterStringWithDefault': parameterStringWithDefault,
5206
5217
'parameterStringWithEmptyDefault': parameterStringWithEmptyDefault,
5207
5218
'parameterStringWithNoDefault': parameterStringWithNoDefault,
5219
+ 'parameterStringNullableWithNoDefault': parameterStringNullableWithNoDefault,
5220
+ 'parameterStringNullableWithDefault': parameterStringNullableWithDefault,
5208
5221
},
5209
5222
});
5210
5223
}
@@ -5879,8 +5892,8 @@ export class TypesService {
5879
5892
parameterDictionary: any,
5880
5893
parameterEnum: 'Success' | 'Warning' | 'Error' | null,
5881
5894
parameterNumber: number = 123,
5882
- parameterString: string = 'default',
5883
- parameterBoolean: boolean = true,
5895
+ parameterString: string | null = 'default',
5896
+ parameterBoolean: boolean | null = true,
5884
5897
parameterObject: any = null,
5885
5898
id?: number,
5886
5899
): CancelablePromise<number | string | boolean | any> {
0 commit comments