How make rule for complex objects on python #97
Unanswered
ewertonsantanams
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You'd need to use a lot of list comprehension to search through the elements to match what you're looking for and then check if the resulting array is empty or not. |
Beta Was this translation helpful? Give feedback.
0 replies
-
First of all, thank you very much for your time and dedication to the library, and for taking the time to answer my questions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ZeroSteiner and contributors, how are you?
I’m starting to use the library for a business rule validation project based on objects described by JSON, but they are more complex JSON objects, and I haven’t found a way or example for such a scenario. In this case, I want to validate if the "GroupId" in Reservations[].Instances[].SecurityGroups[].GroupId is exactly the same as the one in the following JSON:
How should I build my rule to validate this scenario?
P.S: This is an ChatGPT generated JSON without any private data.
Beta Was this translation helpful? Give feedback.
All reactions