Invalid YAML Metadata

I have the following YAML header in my notes but it generates an “Invalid YAML” error in preview.

---
Type: [[Notes]]
Tags: [[Stanford University]] [[Completed]] [[Swift]] [[SwiftUI]] [[Coding]] [[Course]]
Source: https://cs193p.sites.stanford.edu
---

I can’t figure out what is invalid.
Thanks for your help.

The problem is in the way you put multiple values in the field Tags. You need to use one of the rules:

Field: [Object1, Object2, Object3]
Tags: [[[Stanford University]], [[Completed]], [[Swift]], [[SwiftUI]], [[Coding]], [[Course]]]

or

Field:
  - Object1
  - Object2
  - Object3
Tags:
  - [[Stanford University]]
  - [[Completed]]
  - [[Swift]]
  - [[SwiftUI]]
  - [[Coding]]
  - [[Course]]
2 Likes

Oh thanks, I had finally figured out the second syntax but I didn’t know the first one which is easier.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.