Creating schemas to validate serialize and deserialize models