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

Define maximum length of namespace names and simple identifiers

    Details

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

      [Proposed]

      Description

      Currently the prose specification defines no limit for namespace names, and the CSDL schema definition limits them to 512 characters.
      Both the prose spec and the schema limit simple identifiers to 479 characters.

      Apparently the C# compiler accepts only 511 characters for both variable names and namespace names, so 512 is too long for namespaces, and 479 is oddly short for a simple identifier.

      JavaScript on the other hand has no limit for variable names.

        Attachments

          Activity

          Hide
          mikep Michael Pizzo (Inactive) added a comment -

          Perhaps suggest a maximum length for interoperability?

          Show
          mikep Michael Pizzo (Inactive) added a comment - Perhaps suggest a maximum length for interoperability?
          Hide
          ralfhandl Ralf Handl added a comment -

          Most people I talk to are concerned about payload size, so keeping propery names short is a benefit.

          How about 50 for SimpleIdentifier and 500 for Namespace? Or even go down to 30 and 300?

          Show
          ralfhandl Ralf Handl added a comment - Most people I talk to are concerned about payload size, so keeping propery names short is a benefit. How about 50 for SimpleIdentifier and 500 for Namespace? Or even go down to 30 and 300?
          Hide
          mikep Michael Pizzo (Inactive) added a comment -

          30 and 300 seem a bit arbitrary.
          SQL specifies 128 for a simple identifier; perhaps we should follow that.

          Show
          mikep Michael Pizzo (Inactive) added a comment - 30 and 300 seem a bit arbitrary. SQL specifies 128 for a simple identifier; perhaps we should follow that.
          Hide
          ralfhandl Ralf Handl added a comment -

          Let's haggle

          Show
          ralfhandl Ralf Handl added a comment - Let's haggle

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: