Skip to main content

Module base_metadata

Module base_metadata 

Source
Expand description

Metadata fields every entity carries regardless of type.

The loader prepends type, created_date, last_modified and appends tags to each type’s declared metadata_fields. Authors never write these in YAML — redeclaring a base key is a load-time error.

Canonical frontmatter order on write: type, created_date, last_modified, <type-specific>, tags.

Constants§

BASE_KEYS
Every base metadata key. Used by the loader to reject YAML redeclarations and by JSON-Schema generation to surface the implicit fields.

Functions§

is_base_key
prefix_fields
Fields that appear before any type-specific metadata on disk.
suffix_fields
Fields that appear after type-specific metadata on disk.