Yamale icon indicating copy to clipboard operation
Yamale copied to clipboard

Check if a key present in map

Open nirupbbnk opened this issue 1 year ago • 1 comments

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 )

nirupbbnk avatar Nov 23 '23 11:11 nirupbbnk