google / cel-spec

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

CEL spec is too protobuf centric? #217

Open jpbetz opened 2 years ago

jpbetz commented 2 years ago

We're using CEL in Kubernetes to integrate with OpenAPIv3 schema types. When providing developers with the CEL spec as reference, it's a bit difficult to explain how our "object with fields" type maps to CEL types, because the spec doesn't have a term for this type that is independent of protobuf. For now we say in our documentation that our "object with fields" type maps to "message", but this gets a bit confusing.

TristonianJones commented 2 years ago

Internally we've started shifting toward referring to protos as a specialized Struct, since it's a more generic term for an object with typed fields. Does this line up with your thinking as well?

jpbetz commented 2 years ago

Internally we've started shifting toward referring to protos as a specialized Struct, since it's a more generic term for an object with typed fields. Does this line up with your thinking as well?

Yes, "struct" would work well. It's probably my first choice. "object" is a bit of a problem for OpenAPI because it refers generically to all kinds of objects with fields (I.e "maps" and "structs").