Uploaded image for project: 'Technical Advisory Board'
  1. Technical Advisory Board
  2. TAB-1504

2.5 Integer representation? STIX Part 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: STIX Version 2.0 CSPRD01
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Style

    • Proposal:
      Hide

      State the allowable number range rather than implying it. No points for puzzling a reader, even slightly.

      Show
      State the allowable number range rather than implying it. No points for puzzling a reader, even slightly.

      Description

      2.5 Integer reads in part:

      *****
      The integer data type represents a whole number. Unless otherwise specified, all integers MUST be capable of being represented as a signed 64-bit value. Additional restrictions MAY be placed on the type as described where it is used.
      *****

      Is there some reason to not use the specification from RFC7159?

      [-(2**53)+1, (2**53)-1]

      I agree it means the same thing but why force the reader to consider what representation as a 64-bit value means? Additional restrictions are always possible, not necessary to state that here.

      BTW, do you allow greater numbers than [-(2**53)+1, (2**53)-1] ? If not, then its completely unnecessary.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              patrick Patrick Durusau
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: