Skip to content

fix(okf): align required frontmatter keys with OKF SPEC §4.1#145

Open
passionworkeer wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
passionworkeer:fix/align-required-frontmatter-keys
Open

fix(okf): align required frontmatter keys with OKF SPEC §4.1#145
passionworkeer wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
passionworkeer:fix/align-required-frontmatter-keys

Conversation

@passionworkeer

Copy link
Copy Markdown

OKF v0.1 §4.1 explicitly states that only type is REQUIRED; title,
description, and timestamp are listed as Recommended. The reference
implementation treated all four as REQUIRED, so any spec-minimal bundle
whose concepts only declared type would be incorrectly rejected by
OKFDocument.validate().

This hurts programmatic producers in particular — they often have no
human-readable title / description available at generation time.

OKF v0.1 §4.1 explicitly states that only `type` is REQUIRED; `title`,
`description`, and `timestamp` are listed as Recommended. The reference
implementation treated all four as REQUIRED, so any spec-minimal bundle
whose concepts only declared `type` would be incorrectly rejected by
OKFDocument.validate().

This hurts programmatic producers in particular — they often have no
human-readable title/description available at generation time.

This PR is a rebase of upstream GoogleCloudPlatform#64 onto the post-GoogleCloudPlatform#129 `enrichment_agent`
→ `reference_agent` rename: change one constant, update the corresponding
test, and add a minimal-frontmatter acceptance test.
@google-cla

google-cla Bot commented Jun 25, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant