-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Issue #10593 Fix nullable property implemented with oneOf construct #10602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e668aea
0a43e25
9d9c2ea
3978ee0
0825ed6
d7c4fdc
c3f4006
687dbf9
f4043c9
b535f32
7dee4c1
242c846
b2b434c
0a2512e
3c7586a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ import java.io.Serializable | |
| /** | ||
| * | ||
| * | ||
| * @param propertyName | ||
| * @param propertyName30 | ||
| * @param propertyName31 | ||
| * @param nonNullableProperty | ||
|
|
@@ -38,6 +39,9 @@ import java.io.Serializable | |
|
|
||
| data class ModelWithNullableObjectProperty ( | ||
|
||
|
|
||
| @Json(name = "propertyName") | ||
| val propertyName: PropertyType? = null, | ||
|
|
||
| @Json(name = "propertyName30") | ||
| val propertyName30: PropertyType? = null, | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,12 @@ import { | |
| * @interface ModelWithNullableObjectProperty | ||
| */ | ||
| export interface ModelWithNullableObjectProperty { | ||
|
||
| /** | ||
| * | ||
| * @type {PropertyType} | ||
|
||
| * @memberof ModelWithNullableObjectProperty | ||
| */ | ||
| propertyName?: PropertyType; | ||
| /** | ||
| * | ||
| * @type {PropertyType} | ||
|
|
@@ -66,6 +72,7 @@ export function ModelWithNullableObjectPropertyFromJSONTyped(json: any, ignoreDi | |
| } | ||
| return { | ||
|
|
||
| 'propertyName': !exists(json, 'propertyName') ? undefined : PropertyTypeFromJSON(json['propertyName']), | ||
| 'propertyName30': !exists(json, 'propertyName30') ? undefined : PropertyTypeFromJSON(json['propertyName30']), | ||
| 'propertyName31': !exists(json, 'propertyName31') ? undefined : PropertyTypeFromJSON(json['propertyName31']), | ||
| 'nonNullableProperty': !exists(json, 'nonNullableProperty') ? undefined : string | numberFromJSON(json['nonNullableProperty']), | ||
|
|
@@ -82,6 +89,7 @@ export function ModelWithNullableObjectPropertyToJSON(value?: ModelWithNullableO | |
| } | ||
| return { | ||
|
|
||
| 'propertyName': PropertyTypeToJSON(value.propertyName), | ||
| 'propertyName30': PropertyTypeToJSON(value.propertyName30), | ||
| 'propertyName31': PropertyTypeToJSON(value.propertyName31), | ||
| 'nonNullableProperty': string | numberToJSON(value.nonNullableProperty), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the result for java