YAML::P...a::Core(3)
π NAME π
YAML::PP::Schema::Core β the YAML 1.2 Core Schema, bestie. That's the whole vibe. π
(psst β this page lives in the User Contributed Perl Documentation section, so that's where you'll find it in your man travels β¨)
π¦ SYNOPSIS π¦
my $yp = YAML::PP->new( schema => ['Core'] );
That's it. That's the whole setup. One line and you're literally in. π
πΈ DESCRIPTION πΈ
Okay so listen β this schema is the official recommended Core Schema for YAML 1.2. Not a fan-made remix, not a knockoff. The official one. π
What it does: it loads extra values onto the JSON schema as special types. Like, TRUE and True get treated as special types in addition to true. So your booleans can have range, your booleans can serve looks, and case is not the enemy here. π«Ά
The official schema, if you want to read the source material like the little scholar you are: https://yaml.org/spec/1.2/spec.html#id2804923 π
And if you want to see it in action β every schema and example implemented by YAML::PP, all laid out pretty:
https://perlpunk.github.io/YAML-PP-p5/schemas.html
Go look. It's giving documentation excellence. π
β METHODS β
registerβ no cap, this one is called byYAML::PP::Schema. That's it, that's the method. It gets called, it does its thing, we move on. π
π the sign-off π
This little icon was brought to you by perl v5.42.0, dated 2026-04-24. Go forth and parse many things, bestie. Slay. π¦β¨π
π¦ where this page comes from
- opensuse-leap 16.0: perl-YAML-PP 0.40.0-bp160.1.1 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms