Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
ajv /
dist /
vocabularies /
jtd /
Delete
Unzip
Name
Size
Permission
Date
Action
discriminator.d.ts
391
B
-rw-r--r--
2023-12-16 08:36
discriminator.js
2.72
KB
-rw-r--r--
2023-12-16 08:36
discriminator.js.map
2.63
KB
-rw-r--r--
2023-12-16 08:36
elements.d.ts
264
B
-rw-r--r--
2023-12-16 08:36
elements.js
949
B
-rw-r--r--
2023-12-16 08:36
elements.js.map
908
B
-rw-r--r--
2023-12-16 08:36
enum.d.ts
233
B
-rw-r--r--
2023-12-16 08:36
enum.js
1.7
KB
-rw-r--r--
2023-12-16 08:36
enum.js.map
1.65
KB
-rw-r--r--
2023-12-16 08:36
error.d.ts
529
B
-rw-r--r--
2023-12-16 08:36
error.js
893
B
-rw-r--r--
2023-12-16 08:36
error.js.map
716
B
-rw-r--r--
2023-12-16 08:36
index.d.ts
541
B
-rw-r--r--
2023-12-16 08:36
index.js
962
B
-rw-r--r--
2023-12-16 08:36
index.js.map
530
B
-rw-r--r--
2023-12-16 08:36
metadata.d.ts
254
B
-rw-r--r--
2023-12-16 08:36
metadata.js
810
B
-rw-r--r--
2023-12-16 08:36
metadata.js.map
787
B
-rw-r--r--
2023-12-16 08:36
nullable.d.ts
305
B
-rw-r--r--
2023-12-16 08:36
nullable.js
859
B
-rw-r--r--
2023-12-16 08:36
nullable.js.map
801
B
-rw-r--r--
2023-12-16 08:36
optionalProperties.d.ts
120
B
-rw-r--r--
2023-12-16 08:36
optionalProperties.js
436
B
-rw-r--r--
2023-12-16 08:36
optionalProperties.js.map
398
B
-rw-r--r--
2023-12-16 08:36
properties.d.ts
903
B
-rw-r--r--
2023-12-16 08:36
properties.js
6.17
KB
-rw-r--r--
2023-12-16 08:36
properties.js.map
5.62
KB
-rw-r--r--
2023-12-16 08:36
ref.d.ts
203
B
-rw-r--r--
2023-12-16 08:36
ref.js
2.59
KB
-rw-r--r--
2023-12-16 08:36
ref.js.map
2.38
KB
-rw-r--r--
2023-12-16 08:36
type.d.ts
509
B
-rw-r--r--
2023-12-16 08:36
type.js
2.64
KB
-rw-r--r--
2023-12-16 08:36
type.js.map
2.5
KB
-rw-r--r--
2023-12-16 08:36
union.d.ts
120
B
-rw-r--r--
2023-12-16 08:36
union.js
343
B
-rw-r--r--
2023-12-16 08:36
union.js.map
320
B
-rw-r--r--
2023-12-16 08:36
values.d.ts
261
B
-rw-r--r--
2023-12-16 08:36
values.js
1.79
KB
-rw-r--r--
2023-12-16 08:36
values.js.map
1.71
KB
-rw-r--r--
2023-12-16 08:36
Save
Rename
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const codegen_1 = require("../../compile/codegen"); const metadata_1 = require("./metadata"); const nullable_1 = require("./nullable"); const error_1 = require("./error"); const types_1 = require("../discriminator/types"); const error = { message: (cxt) => { const { schema, params } = cxt; return params.discrError ? params.discrError === types_1.DiscrError.Tag ? `tag "${schema}" must be string` : `value of tag "${schema}" must be in mapping` : (0, error_1.typeErrorMessage)(cxt, "object"); }, params: (cxt) => { const { schema, params } = cxt; return params.discrError ? (0, codegen_1._) `{error: ${params.discrError}, tag: ${schema}, tagValue: ${params.tag}}` : (0, error_1.typeErrorParams)(cxt, "object"); }, }; const def = { keyword: "discriminator", schemaType: "string", implements: ["mapping"], error, code(cxt) { (0, metadata_1.checkMetadata)(cxt); const { gen, data, schema, parentSchema } = cxt; const [valid, cond] = (0, nullable_1.checkNullableObject)(cxt, data); gen.if(cond); validateDiscriminator(); gen.elseIf((0, codegen_1.not)(valid)); cxt.error(); gen.endIf(); cxt.ok(valid); function validateDiscriminator() { const tag = gen.const("tag", (0, codegen_1._) `${data}${(0, codegen_1.getProperty)(schema)}`); gen.if((0, codegen_1._) `${tag} === undefined`); cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }); gen.elseIf((0, codegen_1._) `typeof ${tag} == "string"`); validateMapping(tag); gen.else(); cxt.error(false, { discrError: types_1.DiscrError.Tag, tag }, { instancePath: schema }); gen.endIf(); } function validateMapping(tag) { gen.if(false); for (const tagValue in parentSchema.mapping) { gen.elseIf((0, codegen_1._) `${tag} === ${tagValue}`); gen.assign(valid, applyTagSchema(tagValue)); } gen.else(); cxt.error(false, { discrError: types_1.DiscrError.Mapping, tag }, { instancePath: schema, schemaPath: "mapping", parentSchema: true }); gen.endIf(); } function applyTagSchema(schemaProp) { const _valid = gen.name("valid"); cxt.subschema({ keyword: "mapping", schemaProp, jtdDiscriminator: schema, }, _valid); return _valid; } }, }; exports.default = def; //# sourceMappingURL=discriminator.js.map