Uploaded image for project: 'mod-graphql'
  1. mod-graphql
  2. MODGQL-119

Investigate keeping JSON Schema link annotations separate

    XMLWordPrintable

Details

    • Task
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.3.0
    • None

    Description

      At present, mod-graphl's gathering of related record (e.g. the holdings records associated with an instance, and the item records associated with those holdings) is driven by extensions to the JSON Schemas describing the links as "virtual fields": see

      There is some disagreement over whether this is the right approach. Some people feel that these links are, fundamentally, part of the schema, so they belong in the JSON Schema. Others feel that they are not, and should be recorded (in machine-readable form) elsewhere.

      To keep both options open, I will investigate to what extent it's possible to maintain the link fields in a separate JSON-Schema files, and merge them at run-time with the core schemas. If that works well, it gives us a path to split the link fields out from the core schemas down the line if we decide that's what we want.

      I hope to come up with the example code showing how this would be done.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                mike Mike Taylor
                mike Mike Taylor
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases