validate residual schemas separately with $ref and allOf