// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

import { Schema } from "../schema.ts";
import { binary, merge, omap, pairs, set, timestamp } from "../_type/mod.ts";
import { CORE_SCHEMA } from "./core.ts";

/**
 * Default YAML schema. It is not described in the YAML specification.
 */
export const DEFAULT_SCHEMA: Schema = new Schema({
  explicit: [binary, omap, pairs, set],
  implicit: [timestamp, merge],
  include: [CORE_SCHEMA],
});

/**
 * Default YAML schema. It is not described in the YAML specification.
 *
 * @deprecated This will be removed in 1.0.0. Use {@link DEFAULT_SCHEMA} instead.
 */
export const def = DEFAULT_SCHEMA;

// denoCacheMetadata={"headers":{"age":"654389","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","access-control-expose-headers":"*","x-jsr-backend":"modules","cf-cache-status":"HIT","alt-svc":"h3=\":443\"; ma=86400","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=%2FxSRxp0miu1LNPs%2F6zgz4F7jjF9YmaHz3ND%2BIXrSctWzL9XU0xIuzPShTkYiS5d4mmPie2xWKMLa5ufAzVTj4ZZYRGQjAv0R1LPK56%2F4kSXNqYgTUziiJOY%3D\"}]}","date":"Tue, 28 Jul 2026 12:31:15 GMT","x-content-type-options":"nosniff","set-cookie":"__cf_bm=ij6CY3zWC_qvjGayUC49_UYbj7Ywzyrlk3AOVzevAs4-1785241875.2056155-1.0.1.1-mvC2OXaVfYH1lfKSvRcyHpHP4YtCNVzMan5k.uzABDI.9s9QRxTglo_BuJNIqFKFvQXYKUx4PlKTB8XOT4I.uhzgG6lQfteY7lNm.IKTnGaI8sHa7v2u8tOwVL9h1auq; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","accept-ranges":"bytes","access-control-allow-origin":"*","x-robots-tag":"noindex","vary":"Origin","cross-origin-resource-policy":"cross-origin","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","content-length":"897","etag":"\"ffa4a2fcd05d34281bc8bbe66f06f94b\"","cache-control":"public, max-age=31536000, immutable","content-type":"text/typescript","server":"cloudflare","cf-ray":"a223e657fb2f7db6-LAX"},"url":"https://jsr.io/@std/yaml/0.224.3/schema/default.ts","time":1785241875}