nfdi4plants / arc-validate

Home of all the tools and libraries to create and run validation of ARCs
https://nfdi4plants.github.io/arc-validate/
MIT License
3 stars 2 forks source link

Investigate typed metadata for validation packages #98

Closed kMutagene closed 2 months ago

kMutagene commented 2 months ago

Currently, validation packages contain their metadata as yaml frontmatter.

This is suboptimal once that metadata is relevant for the output generated by the ARCExpect API (e.g. package name or version might not match).

kMutagene commented 2 months ago

As of https://github.com/nfdi4plants/arc-validate-package-registry/commit/0049cf9cc79780312db8f51d7d4cb2ddcd8142d4 it is now possible to extract metadata inside a package from the frontmatter.

See also https://github.com/nfdi4plants/arc-validate-package-registry?tab=readme-ov-file#frontmatter-bindings.

This should be implemented in ARCExpect via the Execute API functions accepting ValidationPackageMetadata (or even directly the frontmatter string) to determine folder naming and use defaults for badge text and run summary. Note that now #95 can now also include full package metadata easily.