The above validations were redundant after implementing a correct json schema