Skip to content

Shared Lists not found for deeply nested v3 schemas #14

@a6b8

Description

@a6b8

Problem

#findListsDir only checked 2 directory levels (sibling + parent) when searching for the _lists/ directory. v3.0.0 schemas are nested 5+ levels deep, so shared lists were never found.

Symptom

Moralis OHLCV calls return HTTP 400 because evmChains shared list is not loaded. The chain alias ETHEREUM_MAINNET is sent directly instead of being converted to eth.

Root Cause

// Old: only 2 levels
const siblingDir = join( dirname( filePath ), '_lists' )
const parentDir = join( dirname( dirname( filePath ) ), '_lists' )

Fix

Traverse up to 10 directory levels using Array.from().reduce() pattern. Short-circuits on first match or filesystem root.

Test

461/461 CLI tests pass after fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions