Skip to content

JSON-LD should handle direct JSON-LD links #27

@StartAutomating

Description

@StartAutomating

A direct link to a JSON-LD file does not work as desired, because the current logic of the command assumes it will be embedded in a <script> tag.

# This should work, but currently does not.
JSONLD https://vocabulary.uncefact.org/unlocode-vocab-context.jsonld

There are a multitude of potential fixes for this. As we already support -As, the most straightforward way is to construct a match when we find json content. This would allow us to get back content in both object and embeddable formats.

🎩 hat tip to @AniTexs for pointing this out via PR (#26)

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