Skip to content

Conversation

@RyanMetcalfeInt8
Copy link

Ref: CVS-176081

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for nested maps in load_config parsing by introducing recursive handling of JSON objects up to 8 levels deep. The change refactors inline map parsing logic into a dedicated function that can handle nested object structures.

Key Changes:

  • Introduced recursive ParseInnerMap function to handle nested JSON objects
  • Added maximum nesting depth limit of 8 levels with validation
  • Replaced inline parsing code with call to the new helper function

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@RyanMetcalfeInt8
Copy link
Author

@MayureshV1 -- Please review / merge. Thanks!

Copy link

@MayureshV1 MayureshV1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

inner_map[inner_key] = std::move(inner_inner_map);
} else {
LOGS_DEFAULT(WARNING) << "Unsupported JSON value type for key: " << inner_key << ". Skipping key.";
LOGS_DEFAULT(WARNING) << "This will become an error in a future OpenVINO Execution Provider release.";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we are discussing this, but is there a reason why this is logged out?

Copy link

@ankitm3k ankitm3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I hope this has been tested thoroughly, only caveat I see is the recursion call is restricted to 8 levels, this needs to be documented if the user passes more than 8 then he would run into exception. @RyanMetcalfeInt8

Copy link

@MayureshV1 MayureshV1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@MayureshV1 MayureshV1 merged commit fa68db1 into intel:ovep-develop Nov 7, 2025
3 of 5 checks passed
Copy link

@gblong1 gblong1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants