ALBANY, N.Y. — New York students who haven't been vaccinated against measles and other diseases are waiting to hear if they can go back to school.

The state requires all students be vaccinated, but until recently made an exception for those whose parents objected on religious grounds.

Some of those parents are now challenging the change in court, saying it will keep 26,000 children out of school and daycare.

On Wednesday, lawyers from the state and Children's Health Defense will argue the issue before a judge in Albany.

Lawmakers did away with the non-medical exemptions in June following the biggest measles outbreak in more than 25 years. More than 1,000 cases have been confirmed in New York, the majority of them in New York City.

RELATED: Five confirmed measles cases reported in Wyoming County

RELATED: New York State passes bill banning religious exemptions for vaccine mandates