OAI / Arazzo-Specification

The Arazzo Specification - A Tapestry for Deterministic API Workflows
https://spec.openapis.org/arazzo/latest.html
Apache License 2.0
190 stars 37 forks source link

runtime expression validation #221

Open jeremyfiel opened 2 months ago

jeremyfiel commented 2 months ago

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

handrews commented 1 month ago

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

adamaltman commented 2 weeks ago

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