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:

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
- https://github.com/timbray/quamina/blob/main/PATTERNS.md
- https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html
- https://github.com/aws/event-ruler/blob/main/README.md
- https://en.wikipedia.org/wiki/Comparison_of_regular_expression_engines
- https://www.rfc-editor.org/rfc/rfc8259.html
- https://jsontypedef.com/
- https://json-schema.org/ (but I'm personally not a huge fan)
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 ("
shellstylenot supported" or whatever). Good test cases: Evolution of capabilities here (for example: pre-existsand post-existsspecs) and similarly for Event Ruler.This table from the EventBridge docs is of course helpful:
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