Skip to content

Distinguish between prescribe and match semantics #9

Description

@dsebastien

Having the ability to express detection rules (what makes a note match this type) and prescription rules (what a note of this type MUST have) would be valuable.

Example:

match:       # Detection: how to recognize existing notes
  where:
    tags:
      contains: meeting

prescribe:   # Enforcement: what valid notes must include
  tags:
    - meeting
    - pkm
  fields_present:
    - meeting_date

Currently, match serves double duty. A note can match by tag but the type also wants to enforce additional tags. These are different concerns: match is for discovery, prescribe is for validation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions