@intisy/bayonet
    Preparing search index...

    Function assertManifest

    • Validates a manifest against the schema, throwing the first problem as a plugin error.

      Parameters

      • manifest: unknown

        the parsed plugin.json tree to validate

      Returns unknown

      the same manifest, unchanged, once it has been validated

      A caller that names no vocabulary is held to an empty one, so a bare well-known id counts as squatting: its caller is a host, which knows its own vocabulary.

    • Validates a manifest, treating the given ids as the bare service ids any plugin may register.

      Parameters

      • manifest: unknown

        the parsed plugin.json tree to validate

      • wellKnownServices: string[]

        the bare service ids this host accepts without a namespace

      Returns unknown

      the same manifest, unchanged, once it has been validated