Yamale
Yamale copied to clipboard
Check if a key present in map
properties: caseID: type: string description: some description detailed_goal: type: string description: some description for goal context: type: string description: some description for context
This is my data , here i want to validate if map has key context , we want to check only if context is present , rest keys are dynamic and may change, We want to validate only context key is present , rest keys can be anything,
properties: map(key=regex('context'))
Currently I am using this , but validation fails as it has other keys , (as other keys are dynamic we can't have static value )