Relative Content

Tag Archive for jsonvalidationjsonschemaajv

Json schema validation not working with multiple if else conditions

Hi I am pretty sure I am doing something wrong with my json schema, my usecase is that I add some elements to a table using documents and in this case the elements are added through name, value key pair. Now if the value of name is ‘name’ then it’s value pair should follow a regex validation, except for 1 particular scenario if the tableName where these are being added is header, in that case it should not follow this regex pattern.