// 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 { map, seq, str } from "../_type/mod.ts";

/**
 * Standard YAML's failsafe schema.
 *
 * @see {@link http://www.yaml.org/spec/1.2/spec.html#id2802346}
 */
export const FAILSAFE_SCHEMA: Schema = new Schema({
  explicit: [str, seq, map],
});

/**
 * Standard YAML's failsafe schema.
 *
 * @see {@link http://www.yaml.org/spec/1.2/spec.html#id2802346}
 *
 * @deprecated This will be removed in 1.0.0. Use {@link FAILSAFE_SCHEMA} instead.
 */
export const failsafe = FAILSAFE_SCHEMA;

// denoCacheMetadata={"headers":{"x-robots-tag":"noindex","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=knk1QdVk9EuDU6gIhJdjD2erOl5KqRfJ6OuRyh1jsridjxRmpSAx1JPuqizONMMUoD%2FYJsKL%2BqzHqHMm%2BvTDbZDoKIEJV1kwvNzlfXHF8KBFsLQ6Tb%2Fc1x4%3D\"}]}","content-length":"832","cross-origin-resource-policy":"cross-origin","cf-ray":"a223e657fb347db6-LAX","x-jsr-backend":"modules","content-type":"text/typescript","cache-control":"public, max-age=31536000, immutable","access-control-allow-origin":"*","accept-ranges":"bytes","vary":"Origin","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","date":"Tue, 28 Jul 2026 12:31:15 GMT","cf-cache-status":"HIT","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=86400","etag":"\"a33baa0fd9415f69952b19f13d4e8bd1\"","set-cookie":"__cf_bm=QLDGOHLU9mEy0ZIL3V74sqZ94.aEEYIi6lJ9CiGIU.Q-1785241875.2066715-1.0.1.1-vzNcuNWsCik3A33RfCk8yVhAC5JVLAQiQCFSHwbOo4grBnI_hC8HiOP1RHLf9AhVDA5XrEEzj.Y8eMqm25Yy3AgTJ_UyCf7KUa8Lsy9XtcZ1bxxOV1UnEk5kB9cbO8Df; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","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';","age":"46611","server":"cloudflare","access-control-expose-headers":"*"},"url":"https://jsr.io/@std/yaml/0.224.3/schema/failsafe.ts","time":1785241875}