I am trying to validate below object but it gives error on validation -
{
"_id": "<objectId>",
"title": "<string>",
"artist": "<string>",
"location": "<string>",
"on_display": "<bool>",
"in_house": "<bool>",
"events": [
{"k": "date_acquisition", "v":"<date>"},
{ "k": "moma", "v": "<date>"},
{ "k": "louvres", "v": "<date>"}
]
}
Errors :-
events.0.k: events.0.k must be one of the following:
events.1.k: events.1.k must be one of the following:
events.2.k: events.2.k must be one of the following:
I am not sure for this error, can someone please help me with this error