Refactor json schema validation to use ActiveModel validation

`HashWithIndifferentAccess` not needed here, so I've removed it from the code.