You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env, _ := cel.NewEnv(
// Add cel.Container() option for 'google.rpc.context.AttributeContext'
cel.Container("google.rpc.context.AttributeContext.Request"),
cel.Types(requestType),
// Later, add cel.Variable() options for 'jwt' as a map(string, Dyn) type
// and for 'now' as a timestamp.
// cel.Variable("now", cel.TimestampType),
// cel.Variable("jwt", cel.MapType(cel.StringType, cel.DynType)),
)
What
In the codelab https://codelabs.developers.google.com/codelabs/cel-go#9 the code snippet as follows:
In this repository, the code example differs https://github.com/google/cel-go/blob/master/codelab/solution/codelab.go#L247
How
AttributeContext.Request
OR
cel.Container("google.rpc.context.AttributeContext")
The text was updated successfully, but these errors were encountered: