Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/node-red/node_modules/catharsis/lib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 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']
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.017 ]-- |