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 by YAML::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