kevins8
09/01/2020, 4:12 PMkevins8
09/01/2020, 4:12 PMkevins8
09/01/2020, 4:13 PMnamespace nodekevins8
09/01/2020, 4:13 PMnamespace has the property that it will match everything one level under itjojanaho
09/01/2020, 4:29 PMkevins8
09/01/2020, 4:30 PMkevins8
09/01/2020, 4:32 PM{namespace}/{instance-of-namespace} pattern. (eg. projects - you could enumerate every single project as a child in the schema or you could make project a namespace and call it a day)kevins8
09/01/2020, 4:32 PMpattern attribute to schemas, a namespace was the only way to do a * glob match using schemaskevins8
09/01/2020, 4:33 PMyml
id: project
namespace: true
is almost equivalent to
yml
id: project
pattern: project.*kevins8
09/01/2020, 4:34 PMchildOfDomainNamespace will apply if namespace is setkevins8
09/01/2020, 4:34 PMjojanaho
09/01/2020, 4:35 PMid: project without pattern or namespace, what would be the drawbackkevins8
09/01/2020, 4:36 PMidkevins8
09/01/2020, 4:36 PMyml
id: project
is equivalent to
yml
id: project
namespace: false
pattern: projectjojanaho
09/01/2020, 4:37 PMkevins8
09/01/2020, 4:37 PMyml
id: project
children:
- p1
- p2
- p3
-...jojanaho
09/01/2020, 4:38 PMkevins8
09/01/2020, 4:38 PMjournalsjojanaho
09/01/2020, 4:38 PMjojanaho
09/01/2020, 4:38 PMkevins8
09/01/2020, 4:39 PMkevins8
09/01/2020, 4:39 PMpattern attribute
yml
# schema for journals
# the following schema will match the follwoing
#
# journal
# journal.2020
# journal.2020.09
# journal.2020.09.12
# journal.2020.09.12.foo.md
version: 1
schemas:
- id: journal
title: journal
desc: ""
parent: root
children:
- year
- id: year
title: year
pattern: "[0-2][0-9][0-9][0-9]"
children:
- month
- id: month
title: month
pattern: "[0-9][0-9]"
children:
- day
- id: day
title: day
pattern: "[0-9][0-9]"
namespace: truejojanaho
09/01/2020, 4:41 PMjojanaho
09/01/2020, 4:42 PMkevins8
09/01/2020, 4:42 PMkevins8
09/01/2020, 4:42 PMkevins8
09/01/2020, 4:43 PMkevins8
09/01/2020, 4:43 PMkevins8
09/01/2020, 4:44 PMkevins8
09/01/2020, 4:44 PM