// 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 { JSON_SCHEMA } from "./json.ts";

/**
 * Standard YAML's core schema.
 *
 * @see {@link http://www.yaml.org/spec/1.2/spec.html#id2804923}
 */
export const CORE_SCHEMA: Schema = new Schema({
  include: [JSON_SCHEMA],
});

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

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