@maschinenlesbar.org/fim-portal-cli
    Preparing search index...

    Variable pathSegmentProblemConst

    pathSegmentProblem: Problem<string> = ...

    A path id (a FIM id, version, namespace, Leistungsschlüssel, language code, …) is a token (tokenProblem: not blank, no invisible or control character, no lone surrogate), sent trimmed and in NFC (normalizeToken). An empty last segment turns /api/v1/schemas/<id> into /api/v1/schemas/ (the search collection) and /api/v1/schemas/S1/<version> into the versions list, which the library would return as the requested object; an empty middle segment requests //. A / is refused too: the client percent-encodes it, but the server decodes %2F back to / before routing, so versions("S1/../S2") could fetch S2 and "S1/" pass for "S1"; no FIM id, version, key or code has one. ("." and "..", trimmed or not, pass encoding unchanged and are rejected by RequestEngine.buildUrl.)