Skip to content

Draft a specification? #210

@jsmorph

Description

@jsmorph

I thought I'd create an issue for any on-going discussion:

As we've mentioned here and sort of in #57, it might be good to have some sort of specification for the pattern language. The current documentation is of course an excellent source, but adding something more formal is appealing (to me).

Ideally the specification is flexible enough to support something like feature flags ("shellstyle not supported" or whatever). Good test cases: Evolution of capabilities here (for example: pre-exists and post-exists specs) and similarly for Event Ruler.

This table from the EventBridge docs is of course helpful:

image

A potentially interesting twist is having the specification(s) not tied to specific event rendering languages (like JSON or protobuf), but that goal seems like a stretch with questionable net worth at this point.

Thoughts? Any appetite for something like this?

References

  1. https://github.com/timbray/quamina/blob/main/PATTERNS.md
  2. https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html
  3. https://github.com/aws/event-ruler/blob/main/README.md
  4. https://en.wikipedia.org/wiki/Comparison_of_regular_expression_engines
  5. https://www.rfc-editor.org/rfc/rfc8259.html
  6. https://jsontypedef.com/
  7. https://json-schema.org/ (but I'm personally not a huge fan)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions