Skip to content

[Feature request] Get raw string from a dynamic config #40

Description

@dsyang

I have a nested json value as a dynamic config and would like to deserialize it into a kotlin data class of my own definition. However, right now the sdk automatically parses the raw config value into a nested map.

I'd love a getRawValue(): String method for dynamic configs so I can deserialize it myself!

Example dynamic config:

{
  "resource": [
    { "host": "cdn.jsdelivr.net" },
  ],
  "image": [
    { "host": "raw.githubusercontent.com" },
    { "host": "user-images.githubusercontent.com" },
  ],
  "frame": [
    { "host": "www.google.com", "pathPrefixes": ["/maps/embed"] },
    { "host": "maps.google.com", "pathPrefixes": ["/maps/embed", "/maps"] },
    { "host": "youtube.com", "pathPrefixes": ["/embed"] },
    { "host": "streamable.com", "pathPrefixes": ["/e"] },
  ],
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions