@maschinenlesbar.org/reisewarnungen-cli
    Preparing search index...

    Function assertContentId

    • Check a content id before it becomes a path segment. Content ids are numeric (the keys of list(), the id of summaries()), so only ASCII digits pass: "", "." and ".." would otherwise reach the list endpoint or its parent directory (URL dot-segment normalisation), and the upstream reads a leading integer leniently (226768x returns 226768's country). Throws ReiseValidationError (a ReiseError), like every other rejected input; a number (226768) is refused with a message that says it must be a string. The echoed value is cut at 500 characters.

      Parameters

      • contentId: string

      Returns void