🐛 fix body parse treating null not as undefined (except for icons/avatars)
This commit is contained in:
+22
-41
@@ -26,8 +26,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"date_of_birth": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
"type": "string"
|
||||
},
|
||||
"gift_code_sku_id": {
|
||||
"type": "string"
|
||||
@@ -713,22 +712,13 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"target_user_id": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"target_type": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"validate": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"max_age": {
|
||||
"type": "integer"
|
||||
@@ -2539,7 +2529,10 @@
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"channels": {
|
||||
"type": "array",
|
||||
@@ -2551,10 +2544,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"system_channel_id": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"rules_channel_id": {
|
||||
"type": "string"
|
||||
@@ -2820,10 +2810,7 @@
|
||||
]
|
||||
},
|
||||
"description": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"features": {
|
||||
"type": "array",
|
||||
@@ -2844,19 +2831,13 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"public_updates_channel_id": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"afk_timeout": {
|
||||
"type": "integer"
|
||||
},
|
||||
"afk_channel_id": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"preferred_locale": {
|
||||
"type": "string"
|
||||
@@ -2869,16 +2850,16 @@
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
},
|
||||
"guild_template_code": {
|
||||
"type": "string"
|
||||
},
|
||||
"system_channel_id": {
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
"type": "string"
|
||||
},
|
||||
"rules_channel_id": {
|
||||
"type": "string"
|
||||
@@ -5718,7 +5699,10 @@
|
||||
"type": "string"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string"
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
@@ -6241,10 +6225,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"accent_color": {
|
||||
"type": [
|
||||
"null",
|
||||
"integer"
|
||||
]
|
||||
"type": "integer"
|
||||
},
|
||||
"banner": {
|
||||
"type": [
|
||||
|
||||
Reference in New Issue
Block a user