Skip to content

Static local contexts need to be kept in sync. #112

Open

Description

@davidlehn

The static contexts in this library need to be kept in sync with upstream contexts. How should this be accomplished?

Contexts:

One approach would be to run a github action check, probably on PRs and periodically (weekly?). In a recent PR I used diff, curl, and jq to compare what this module serves and the live dereferenced resources:
#111

I don't know what would happen if this reported diffs that were not desired in this package. It would be good to at least know.

Activity

  1. davidlehn commented on Dec 18, 2021

    @davidlehn
    MemberAuthor

    Two other options to at least help with comparisons. Instead of inline data in JS, inline the JSON direct:

    module.exports =
    /* BEGIN CONTEXT */
    {
      "@context": ...
      "foo": ...
    }
    /* END CONTEXT */
    ;

    Or put the contexts in webpack/node loader friendly .json files and require() them. I think that would work with the current structure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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