Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime expression validation #221

Open
jeremyfiel opened this issue Jul 30, 2024 · 2 comments
Open

runtime expression validation #221

jeremyfiel opened this issue Jul 30, 2024 · 2 comments

Comments

@jeremyfiel
Copy link

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

@handrews
Copy link
Member

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

@adamaltman
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants