src/Utility/Validate/Check/AbstractCheck.php
protected function addFieldsToSchema(array $schema, string $module): array
    {
        if (isset($schema['definitions']['fieldName'])) {
            $fields = Utility::getRealModuleFields($module, false);
            if (!empty($fields)) {
                $schema['definitions']['fieldName']['enum'] = $fields;
            }
        }

        return $schema;
    }
protected function addFieldsToSchema(array $schema, string $module): array
    {
        if (isset($schema['definitions']['fieldName'])) {
            $fields = Utility::getRealModuleFields($module, false);
            if (!empty($fields)) {
                $schema['definitions']['fieldName']['enum'] = $fields;
            }
        }

        return $schema;
    }
protected function addFieldsToSchema ( array $ schema , string $ module ) : array { if ( isset ( $ schema [ 'definitions' ] [ 'fieldName' ] ) ) { $ fields = Utility :: getRealModuleFields ( $ module , false ) ; if ( ! empty ( $ fields ) ) { $ schema [ 'definitions' ] [ 'fieldName' ] [ 'enum' ] = $ fields ; } } return $ schema ; }
Add fields from migration config to schema.

@param mixed[] $schema Schema.
@param string $module Module name
@return string[] Schema.
Add fields from migration config to schema .