dist/@ajsf/core/esm2015/lib/shared/json-schema.functions.js
/**
 * 'fixRequiredArrayProperties' function
 *
 * Fixes an incorrectly placed required list inside an array schema, by moving
 * it into items.properties or additionalItems.properties, where it belongs.
 *
 * //   schema - allOf schema object
 * //  - converted schema object
 */
'fixRequiredArrayProperties' function
Fixes an incorrectly placed required list inside an array schema, by moving
it into items.properties or additionalItems.properties, where it belongs.

allOf schema object
- converted schema object
' fixRequiredArrayProperties ' function Fixes an incorrectly placed required list inside an array schema by moving it into items . properties or additionalItems . properties where it belongs . allOf schema object - converted schema object
function fixRequiredArrayProperties(schema) {
    if (schema.type === 'array' && isArray(schema.required)) {
        const itemsObject = hasOwn(schema.items, 'properties') ? 'items' :
            hasOwn(schema.additionalItems, 'properties') ? 'additionalItems' : null;
        if (itemsObject && !hasOwn(schema[itemsObject], 'required') && (hasOwn(schema[itemsObject], 'additionalProperties') ||
            schema.required.every(key => hasOwn(schema[itemsObject].properties, key)))) {
            schema = cloneDeep(schema);
            schema[itemsObject].required = schema.required;
            delete schema.required;
        }
    }
    return schema;
}
function fixRequiredArrayProperties ( schema ) { if ( schema . type === 'array' && isArray ( schema . required ) ) { const itemsObject = hasOwn ( schema . items , 'properties' ) ? 'items' : hasOwn ( schema . additionalItems , 'properties' ) ? 'additionalItems' : null ; if ( itemsObject && ! hasOwn ( schema [ itemsObject ] , 'required' ) && ( hasOwn ( schema [ itemsObject ] , 'additionalProperties' ) || schema . required . every ( key => hasOwn ( schema [ itemsObject ] . properties , key ) ) ) ) { schema = cloneDeep ( schema ) ; schema [ itemsObject ] . required = schema . required ; delete schema . required ; } } return schema ; }
'fixRequiredArrayProperties' function
 Fixes an incorrectly placed required list inside an array schema, by moving
 it into items.properties or additionalItems.properties, where it belongs.
' fixRequiredArrayProperties ' function Fixes an incorrectly placed required list inside an array schema by moving it into items . properties or additionalItems . properties where it belongs .