specification icon indicating copy to clipboard operation
specification copied to clipboard

Added a new `until` property to `any` event consumption strategies

Open cdavernas opened this issue 1 year ago • 2 comments
trafficstars

Please specify parts of this PR update:

  • [x] Specification
  • [x] Schema
  • [x] Examples
  • [ ] Extensions
  • [ ] Use Cases
  • [ ] Community
  • [ ] CTK
  • [ ] Other

Discussion or Issue link:

Closes #992

What this PR does:

Added a new until property to any event consumption strategies

Additional information:

We need to find a smart way to forbid an until event consumption strategy to itself define the until property.

cdavernas avatar Aug 28 '24 12:08 cdavernas

@matthias-pichler Any suggestion on how to achieve the following in a brief, concise fashion?

We need to find a smart way to forbid an until event consumption strategy to itself define the until property.

cdavernas avatar Aug 28 '24 12:08 cdavernas

@matthias-pichler Any suggestion on how to achieve the following in a brief, concise fashion?

We need to find a smart way to forbid an until event consumption strategy to itself define the until property.

Hmm we could do it with allOf

until:
  oneOf:
    - type: string
    - allOf:
        - $ref: #/$defs/eventConsumptionStrategy
        - type: object
          properties:
            until: false

matthias-pichler avatar Sep 05 '24 14:09 matthias-pichler

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 22 '24 00:11 github-actions[bot]