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

[FEATURE] JsonPath configuration #2994

Open
mingshl opened this issue Sep 26, 2024 · 0 comments
Open

[FEATURE] JsonPath configuration #2994

mingshl opened this issue Sep 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mingshl
Copy link
Collaborator

mingshl commented Sep 26, 2024

Is your feature request related to a problem?
Checking in ml-commons repo, there are some classes, using JsonPath packages, and in JsonPath, there are some options to config json path differently, referring here.

Options:

  1. DEFAULT_PATH_LEAF_TO_NULL
    This option makes JsonPath return null for missing leafs.
  2. ALWAYS_RETURN_LIST
    This option configures JsonPath to return a list even when the path is definite.
  3. SUPPRESS_EXCEPTIONS
    This option makes sure no exceptions are propagated from path evaluation.
  4. REQUIRE_PROPERTIES
    This option configures JsonPath to require properties defined in path when an indefinite path is evaluated.

What solution would you like?
Now that is using default configuration, but if required for different use case, we should add open parameters for users to config using the JsonPath differently.

@mingshl mingshl added enhancement New feature or request untriaged labels Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants