fix: javascript handles nulls in an incredibly stupid way.

This commit is contained in:
Matt Kilgore
2024-10-05 15:38:31 -04:00
parent 5d3698d0d8
commit c6158e7c9e
7 changed files with 67 additions and 49 deletions

View File

@@ -2210,8 +2210,7 @@
"type": "string"
},
"purchasePrice": {
"type": "string",
"example": "0"
"type": "number"
},
"purchaseTime": {
"description": "Purchase",
@@ -2227,8 +2226,7 @@
"type": "string"
},
"soldPrice": {
"type": "string",
"example": "0"
"type": "number"
},
"soldTime": {
"description": "Sold",
@@ -2316,8 +2314,7 @@
"type": "string"
},
"purchasePrice": {
"type": "string",
"example": "0"
"type": "number"
},
"quantity": {
"type": "integer"
@@ -2405,7 +2402,9 @@
"maxLength": 255
},
"purchasePrice": {
"type": "number"
"type": "number",
"x-nullable": true,
"x-omitempty": true
},
"purchaseTime": {
"description": "Purchase",
@@ -2422,7 +2421,9 @@
"type": "string"
},
"soldPrice": {
"type": "number"
"type": "number",
"x-nullable": true,
"x-omitempty": true
},
"soldTime": {
"description": "Sold",