Skip to content

Specifying target context doesn't work unless format also specified #1

@rossburton

Description

@rossburton

First, thanks for forking j2cli. I filed an issue with the upstream repo but that is dead now so I thought I'd file it here :)

A lot of the times that I could use j2cli the input JSON isn't a dictionary but is a plain array, for example the output from GitLab's pipeline API is an array of dictionaries.

Currently, this causes j2cli to error out. Maybe j2cli could detect that the top-level object is a list not a dict and pass it as a named variable (data?) in the environment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions