Updated how date is handled using anyOf.
Updated handling of number and string values using anyOf.