The term "YAML Schema" is a bit of unfortunate history.
It's not the YAML version of a JSON Schema.
In my opinion it needs to be renamed because it's not a schema in the typical
sense of the word.
The term has been part of the YAML spec since the beginning.
Let's use the term "YAML-Schema" instead of "YAML Schema" to be clear that this
is not a typical schema applied to a YAML file.
Typically a schema is a set of rules that are used to validate data.
A YAML-Schema is a set of rules about how untagged nodes are implicitly tagged
during the loading process.
In May 2024, 4 of us met in Berlin.
One of the things we did was to write a list of best practices for YAML.
We came up with a list of 40 or so things that we all agreed on.
In functional programming, currying is a technique where a function that takes
multiple arguments is called with fewer arguments than it takes and returns a
function that takes the remaining arguments.
In Clojure and YS, the partial function is used to create a curried function.
Well tests are mostly data.
Inputs and outputs for some code you want to test.
Code is usually in functions, and functions usually have names and names are
just strings and strings are just data.
YAML is a great format for data.
YS is YAML with code (expressed as YAML data).
So it seems like YS should be a great language for writing tests in.
And it is.