CloudEvents API accepts numbers for `time` property

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Done
    • Priority: L3 - Default
    • 3.0.0
    • Affects Version/s: 3.0.0
    • Component/s: backend
    • None

      Given:
      This event

      {
        "specversion": "1.0",
        "id": "1edc4160-74e5-4ffc-af59-2d281cf5aca411",
        "subject": "invoice",
        "source": "system",
        "type": "InvoiceReceived",
        "traceid": "id6",
        "time": 5
      }
      

      When:
      It is sent to the cloud events ingestion API

      Then:
      It is accepted and stored with a timestamp value of 5 seconds.

      Expected:
      It should get rejected as ionly string encoded timestamps in RFC3339 are valid

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: