mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix several type issues with the api docs (#14016)
`nullable` is no longer a valid type, and types also can't be an empty string, so just bringing a number of issues with types in compliance with the openapi spec.
This commit is contained in:
@@ -48,13 +48,13 @@
|
||||
"type": "string"
|
||||
},
|
||||
"last_seen_age": {
|
||||
"type": ""
|
||||
"type": ["number", "null"]
|
||||
},
|
||||
"last_emailed_age": {
|
||||
"type": ""
|
||||
"type": ["number", "null"]
|
||||
},
|
||||
"created_at_age": {
|
||||
"type": ""
|
||||
"type": ["number", "null"]
|
||||
},
|
||||
"trust_level": {
|
||||
"type": "integer"
|
||||
|
||||
@@ -39,13 +39,13 @@
|
||||
"type": "string"
|
||||
},
|
||||
"last_seen_age": {
|
||||
"type": ""
|
||||
"type": ["number", "null"]
|
||||
},
|
||||
"last_emailed_age": {
|
||||
"type": ""
|
||||
"type": ["number", "null"]
|
||||
},
|
||||
"created_at_age": {
|
||||
"type": ""
|
||||
"type": ["number", "null"]
|
||||
},
|
||||
"trust_level": {
|
||||
"type": "integer"
|
||||
@@ -163,7 +163,7 @@
|
||||
"type": "integer"
|
||||
},
|
||||
"bounce_score": {
|
||||
"type": ""
|
||||
"type": ["integer", "null"]
|
||||
},
|
||||
"reset_bounce_score_after": {
|
||||
"type": ["string", "null"]
|
||||
|
||||
Reference in New Issue
Block a user