dist/@ajsf/core/esm2015/lib/shared/json-schema.functions.js
/**
 * 'combineAllOf' function
 *
 * Attempt to convert an allOf schema object into
 * a non-allOf schema object with equivalent rules.
 *
 * //   schema - allOf schema object
 * //  - converted schema object
 */
'combineAllOf' function
Attempt to convert an allOf schema object into
a non-allOf schema object with equivalent rules.

allOf schema object
- converted schema object
' combineAllOf ' function Attempt to convert an allOf schema object into a non - allOf schema object with equivalent rules . allOf schema object - converted schema object
function combineAllOf(schema) {
    if (!isObject(schema) || !isArray(schema.allOf)) {
        return schema;
    }
    let mergedSchema = mergeSchemas(...schema.allOf);
    if (Object.keys(schema).length > 1) {
        const extraKeys = Object.assign({}, schema);
        delete extraKeys.allOf;
        mergedSchema = mergeSchemas(mergedSchema, extraKeys);
    }
    return mergedSchema;
}
function combineAllOf ( schema ) { if ( ! isObject ( schema ) || ! isArray ( schema . allOf ) ) { return schema ; } let mergedSchema = mergeSchemas ( ... schema . allOf ) ; if ( Object . keys ( schema ) . length > 1 ) { const extraKeys = Object . assign ( { } , schema ) ; delete extraKeys . allOf ; mergedSchema = mergeSchemas ( mergedSchema , extraKeys ) ; } return mergedSchema ; }
'combineAllOf' function
 Attempt to convert an allOf schema object into
 a non-allOf schema object with equivalent rules.
' combineAllOf ' function Attempt to convert an allOf schema object into a non - allOf schema object with equivalent rules .