Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-875

Use of $ref for referencing elements in a JSON Schema

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL JSON
    • Labels:
      None
    • Environment:

      [Proposed]

    • Proposal:
      Hide

      1) Always use $ref to reference a named type (complex, entity, typedef, enum)
      2) We use odata paths to reference entity sets and singletons
      3) For functions and actions, use $ref

      Show
      1) Always use $ref to reference a named type (complex, entity, typedef, enum) 2) We use odata paths to reference entity sets and singletons 3) For functions and actions, use $ref

      Description

      Should we use $ref to reference the identify of something that must be externally defined (i.e., the function in a functionimport or entity type of an entity set or base term in a term)?

      In places where we choose $ref: should additional keywords that refine/decorate the use of the referenced element be placed next to $ref within the reference object, or should the reference be wrapped in an "allOf":[

      {"$ref":"..."}

      ] construct and the additional keywords be placed next to allOf?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mikep Michael Pizzo (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: