// 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 { bool, float, int, nil } from "../_type/mod.ts";
import { FAILSAFE_SCHEMA } from "./failsafe.ts";

/**
 * Standard YAML's JSON schema.
 *
 * @see {@link http://www.yaml.org/spec/1.2/spec.html#id2803231}
 *
 * @deprecated This will be removed in 1.0.0. Use {@link JSON_SCHEMA} instead.
 */
export const JSON_SCHEMA: Schema = new Schema({
  implicit: [nil, bool, int, float],
  include: [FAILSAFE_SCHEMA],
});

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