Skip to content

AsyncAPI 2.x.y - validation of runtime expression #2281

Open
@char0n

Description

@char0n

We are currently not able to validate runtime expression. Ideally using already existing tool is ideal, but if we cannot find one we can still write one. I have created the parser and validator library here: https://github.com/char0n/asyncapi-runtime-expression

Implementation will apply for AsyncAPI 2.x.y and possibly also for AsyncAPI 1.x.y.


The runtime expression is defined by the following ABNF syntax.

expression = ( "$message" "." source )
source = ( header-reference | payload-reference )
header-reference = "header" ["#" fragment]
payload-reference = "payload" ["#" fragment]
fragment = a JSON Pointer [RFC 6901](https://tools.ietf.org/html/rfc6901)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions