mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Fixed member import csv validator for labels
no issue - Labels can have a null value when there is none defined in the imported file. Such records fails for "string" type in JSON schema
This commit is contained in:
parent
c9cc19cb74
commit
6ca51eae29
@ -11,7 +11,7 @@
|
||||
"required": ["email"],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": ["null", "string"],
|
||||
"type": ["string", "null"],
|
||||
"maxLength": 191,
|
||||
"pattern": "^([^,]|$)"
|
||||
},
|
||||
@ -22,7 +22,7 @@
|
||||
"format": "email"
|
||||
},
|
||||
"note": {
|
||||
"type": ["null", "string"],
|
||||
"type": ["string", "null"],
|
||||
"minLength": 0,
|
||||
"maxLength": 2000
|
||||
},
|
||||
@ -31,7 +31,7 @@
|
||||
"enum": ["true", "false", "TRUE", "FALSE", ""]
|
||||
},
|
||||
"labels": {
|
||||
"type": "string"
|
||||
"type": ["string", "null"]
|
||||
},
|
||||
"created_at": {
|
||||
"type": ["string", "null"],
|
||||
|
Loading…
Reference in New Issue
Block a user