Arazzo-Specification icon indicating copy to clipboard operation
Arazzo-Specification copied to clipboard

runtime expression validation

Open jeremyfiel opened this issue 1 year ago • 3 comments
trafficstars

Is there a common runtime expression validation format or regex out in the wild? I tried the googles, but nothing comes up.

jeremyfiel avatar Jul 30 '24 18:07 jeremyfiel

@jeremyfiel you could use abnf-to-regexp to generate one.

handrews avatar Jul 31 '24 21:07 handrews

ChatGPT proposes this:

^\$(?:url|method|statusCode|(?:request|response|message)\.(?:header\.[!#$%&'*+\-.^_`|~0-1]+|query\.[A-Za-z0-9_.-]+|path\.[A-Za-z0-9_.-]+|body(?:#(?:[^\/~]|~[01])*) )|inputs\.[A-Za-z0-9_.-]+|outputs\.[A-Za-z0-9_.-]+|steps\.[A-Za-z0-9_.-]+|workflows\.[A-Za-z0-9_.-]+|sourceDescriptions\.[A-Za-z0-9_.-]+|components\.[A-Za-z0-9_.-]+|components\.parameters\.[A-Za-z0-9_.-]+)$

Not confident in that. Also, not confident what CHAR should mean (here it is limited to alphanumeric and _.- characters.

See #253

adamaltman avatar Sep 14 '24 21:09 adamaltman

Hi @jeremyfiel.

There is now https://github.com/swaggerexpert/arazzo-runtime-expression, Arazzo Runtime Expressions parser, validator and extractor. Hope you and others find it useful.

char0n avatar Feb 17 '25 21:02 char0n