import { schema } from '@kbn/config-schema' ; import { isRuntimeField } from '../../../common/util/runtime_field_utils' ; export const runtimeMappingsSchema = schema . object ( { } , { unknowns : 'allow' , validate : ( v ) => { if ( Object . values ( v ) . some ( ( o ) => ! isRuntimeField ( o ) ) ) { return 'Invalid runtime field' ; } } , } ) ;