0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed validation error when creating new tag from PSM

refs #10438

- Expanded required fields for related tags to have either one of 'id', 'slug' or a 'name' field
This commit is contained in:
Nazar Gargol 2019-02-08 11:02:18 +00:00
parent 19643c75dd
commit 96cdde80b9

View file

@ -155,7 +155,11 @@
"maxLength": 24
}
},
"required": ["id"]
"oneOf": [
{"required": ["id"]},
{"required": ["name"]},
{"required": ["slug"]}
]
}
}
}