Bug 38099 - Add schemas and validation to YAML based system preferences
Summary: Add schemas and validation to YAML based system preferences
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-04 17:52 UTC by Kyle M Hall (khall)
Modified: 2024-10-04 17:53 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall (khall) 2024-10-04 17:52:32 UTC
Like XML, there exist YAML Schema standards for validating not just the syntax of a string of YAML, but structure of the YAML as well. Unlike XML, it is not part of the YAML spec and there are multiple solutions such as https://metacpan.org/pod/Data::Rx and https://metacpan.org/pod/Kwalify

It would be nice to user one of these schema implementations to validate the correctness of any given yaml bases system preference.