mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05: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
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
"required": ["email"],
|
"required": ["email"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": {
|
"name": {
|
||||||
"type": ["null", "string"],
|
"type": ["string", "null"],
|
||||||
"maxLength": 191,
|
"maxLength": 191,
|
||||||
"pattern": "^([^,]|$)"
|
"pattern": "^([^,]|$)"
|
||||||
},
|
},
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
"format": "email"
|
"format": "email"
|
||||||
},
|
},
|
||||||
"note": {
|
"note": {
|
||||||
"type": ["null", "string"],
|
"type": ["string", "null"],
|
||||||
"minLength": 0,
|
"minLength": 0,
|
||||||
"maxLength": 2000
|
"maxLength": 2000
|
||||||
},
|
},
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
"enum": ["true", "false", "TRUE", "FALSE", ""]
|
"enum": ["true", "false", "TRUE", "FALSE", ""]
|
||||||
},
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"type": "string"
|
"type": ["string", "null"]
|
||||||
},
|
},
|
||||||
"created_at": {
|
"created_at": {
|
||||||
"type": ["string", "null"],
|
"type": ["string", "null"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue