Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17049

Allow $ref and $schema keywords to support JSON Schema management

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Trivial - P5
    • Resolution: Duplicate
    • 2.6.7, 3.0.0-rc6
    • None
    • JavaScript, Querying, Usability
    • None

    Description

      JSON Schema requires two fields to include the $ prefix.

      First is the $schema keyword that defines the version and URI of the schema to be stored.

      Second is the $ref used to describe pointers to additional schema data.

      More info on JSON Schema is available here: http://json-schema.org/documentation.html

      As JSON Schema is becoming a more heavily used tool for JSON data management

      As JSON is requested for config file support SERVER-16819
      And JSON Schema validation as well SERVER-3536

      I see it as a useful exception to the no $ prefix error and it could even be useful to allow $ref resolution and caching in future (as a separate issue).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbennett@uecomm.com.au Marcel Bennett
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: