Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for struct tag name overrides in native types #941

Commits on May 13, 2024

  1. 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
    ```
    patrickpichler committed May 13, 2024
    Configuration menu
    Copy the full SHA
    c71f11f View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. fixup! Add support for struct tag name overrides in native types

    Make struct tag parsing opt-in
    patrickpichler committed May 14, 2024
    Configuration menu
    Copy the full SHA
    f53dbb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3253aa3 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    9ffd7ea View commit details
    Browse the repository at this point in the history