target / goalert

Open source on-call scheduling, automated escalations, and notifications so you never miss a critical alert
https://goalert.me
Apache License 2.0
2.17k stars 230 forks source link

expr: use scalar GraphQL types to handle validation #3849

Closed mastercactapus closed 2 months ago

mastercactapus commented 2 months ago

Description: Adds validation for Expr expressions in various APIs by switching from string to scalar types with defined parsers/validators.

Describe any introduced API changes: Type changes are breaking but JSON-compatible, all changes are behind the univ-keys experimental flag.

Additional Info: Existing API calls will require proper expressions & syntax.