google / cel-spec

Common Expression Language -- specification and binary representation
https://cel.dev
Apache License 2.0
2.78k stars 222 forks source link

Proper JSON Type #211

Open TristonianJones opened 2 years ago

TristonianJones commented 2 years ago

In CEL, JSON values are treated as the DYN type which means they could possess any type supported within CEL; however, this is not true. JSON is significantly more restrictive than DYN and treating it as such would greatly improve type-checking to catch potential numeric comparison issues.