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

fix: correctly fill plugins with arbitrary map fields #258

Merged
merged 3 commits into from
Jan 12, 2023

Commits on Dec 22, 2022

  1. fix: correctly fill plugins with arbitrary map fields

    Kong plugin schemas support different type of fields,
    including maps. Moreover, these can either be arbitrary
    maps, or maps with their own subschema.
    
    go-kong already supports well the second case, but it
    falls short with arbitrary maps. An example of arbitrary
    map field is the `custom_fields_by_lua` from the `http-log`
    plugin, which is defined as follows:
    
    ```
    {
      "custom_fields_by_lua": {
        "keys": {
          "len_min": 1,
          "type": "string"
        },
        "type": "map",
        "values": {
          "len_min": 1,
          "type": "string"
        }
      }
    }
    ```
    
    This commit makes sure that go-kong is able to correctly
    handle such schemas as well.
    GGabriele committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    6c81ce5 View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2023

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

Commits on Jan 12, 2023

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