Skip to content

feat: expose schemaId on /policies/{id}/about entries#6022

Open
Pyatakov wants to merge 1 commit intodevelopfrom
claude/adoring-kowalevski-10010e
Open

feat: expose schemaId on /policies/{id}/about entries#6022
Pyatakov wants to merge 1 commit intodevelopfrom
claude/adoring-kowalevski-10010e

Conversation

@Pyatakov
Copy link
Copy Markdown
Contributor

@Pyatakov Pyatakov commented May 4, 2026

Description

  • Walk policy.config in getPolicyDocumentation to map block tag → options.schema and attach the resulting IRI to each alias entry as schemaId.
  • Reuse findBlocks from @guardian/common for the traversal; skip the walk entirely when there are no documented entries.
  • Add schemaId?: string to IPolicyDocumentationEntry.
  • Refresh docs/guardian/policy-api-documentation-and-dmrv-aliases.md with a note and a second response example covering the new field.

Walk policy.config to map block tag → options.schema and attach the
schema IRI to each alias entry returned by the documentation endpoint.

Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

Test Results

 32 files  ±0   64 suites  ±0   4m 2s ⏱️ -15s
 35 tests ±0   16 ✅ ±0  0 💤 ±0  19 ❌ ±0 
165 runs  ±0  146 ✅ ±0  0 💤 ±0  19 ❌ ±0 

For more details on these failures, see this check.

Results for commit 8ed5abc. ± Comparison against base commit 4fa0f13.

♻️ This comment has been updated with latest results.

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