Skip to content

Commit 40cb256

Browse files
committed
Apply PR kepano#68: fix invalid filter schema example in obsidian-bases
2 parents ac93987 + 9b736ba commit 40cb256

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

skills/obsidian-bases/SKILL.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ Base files use the `.base` extension and contain valid YAML.
2222
# Global filters apply to ALL views in the base
2323
filters:
2424
# Can be a single filter string
25-
# OR a recursive filter object with and/or/not
26-
and: []
27-
or: []
28-
not: []
25+
# OR a recursive filter object with exactly ONE key: and, or, or not
26+
and:
27+
- 'status == "active"'
28+
- not:
29+
- 'file.hasTag("archived")'
2930

3031
# Define formula properties that can be used across all views
3132
formulas:
@@ -52,8 +53,9 @@ views:
5253
groupBy: # Optional: group results
5354
property: property_name
5455
direction: ASC | DESC
55-
filters: # View-specific filters
56-
and: []
56+
filters: # View-specific filters follow the same rules
57+
and:
58+
- 'status == "active"'
5759
order: # Properties to display in order
5860
- file.name
5961
- property_name

0 commit comments

Comments
 (0)