-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for struct tag name overrides in native types (#941)
* Add support for struct tag name overrides in native types In order to customize how to fields of native types can be accessed via CEL, struct tag support has been added. It is now possible to provide a struct field tag, that will act as the name for the corresponding field Here an example ``` type Person struct { Name string Age int `cel:"age"` } ``` and here is how to access the `Age` field from CEL: ``` person.age ``` * fixup! Add support for struct tag name overrides in native types Make struct tag parsing opt-in * fixup! Add support for struct tag name overrides in native types Add docs * fixup! Add support for struct tag name overrides in native types
- Loading branch information
1 parent
3841093
commit f7b83ae
Showing
2 changed files
with
317 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.