Chapter 3: Lab: Apply the Attribute Pattern

I am confused as to what I am doing wrong. I have tried numerous k and v value types and still get errors. I have rewatched the lecture and I am still unsure as to what I am doing wrong.

This is my current attempt.
{
“_id”: “”,
“title”: “”,
“artist”: “”,
“location”: “”,
“on_display”: “”,
“in_house”: “”,
“events”: [
{ “k” : “date_acquisition”, “v” : “” },
{ “k” : “loaned_to”, “v” : “” },
{ “k” : “loaned_date”, “v” : “” }
]
}

And I am still receiving errors. Specifically these for the code above.
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.1.v: events.1.v must be one of the following:
events.2.k: events.2.k must be one of the following:

Please read Formatting code and log snippets in posts and update your post. We are missing the critical parts between < and >.

I figured it out so I am moving on. Thanks anyway.

1 Like